Now correct ical method (PUBLISH)

Fixed line length with sed
GMail: perfect ("Zum Kalender hinzufügen" button)
Thunderbird: perfect (Add event button)
Android: usable (2 attachments: invite.ics, noname.ics)
This commit is contained in:
Ludwig Behm 2020-12-16 07:36:59 +01:00 committed by Philipp Matthias Schäfer
parent b696d6ca3b
commit 58cdcd2171
2 changed files with 6 additions and 12 deletions

View file

@ -28,15 +28,16 @@ url_date=$(date_fmt +%Y%m%d)
script_path=$(readlink -f "$0")
source_directory=$(dirname "$script_path")
sed -e "s/#DTSTART#/$(date_fmt +%Y%m%dT%H%M%SZ "TZ=\"Europe/Berlin\" 20:00")/" \
sed -E \
-e "s/#DTSTART#/$(date_fmt +%Y%m%dT%H%M%SZ "TZ=\"Europe/Berlin\" 20:00")/" \
-e "s/#DTEND#/$(date_fmt +%Y%m%dT%H%M%SZ "TZ=\"Europe/Berlin\" 21:00")/" \
-e "s/#DTSTAMP#/$(date -u +%Y%m%dT%H%M%SZ)/" \
-e "s/#SUMMARY#/KrautSpace Plenum/" \
-e "s%#LOCATION#%${location}%" \
-e "s/#FROM#/${from}/g" \
-e "s/#REPLY_TO#/${replyto}/g" \
-e "s/#URLDATE#/${url_date}/g" \
invite.ics > /tmp/invite.ics
-e 's/(^[^ ].{73}|.{73})/\1\r\n /g' \
"$source_directory/invite.ics" > /tmp/invite.ics
sed -e "s/PROSEDATE/$prose_date/g" \
-e "s/URLDATE/$url_date/g" \