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:
parent
9334c01c8c
commit
8fcf6d8897
2 changed files with 6 additions and 12 deletions
|
@ -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" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue