[kronolith] how to import *.ics calendar entries from a multipart mime email received with IMP into KRONOLITH

Michael J Rubinsky mrubinsk at horde.org
Tue Mar 1 16:58:22 UTC 2016


Quoting Christoph Haas <chhaas-ml at ukbw.de>:

> Hello,
>
> I am looking for a conveniant way for importing calendar-entries  
> (*.ics-files), that are part of a multipart-mime-email, out of IMP  
> into KRONOLITH. Since Google was not my friend, I have to ask here ...
>
> When I click on the calendar-attachment, is just a window with the  
> plaintext VCALENDAR-entry shown, instead of import to KRONOLITH.
>
> This is for example common with ticket-booking-emails from "Deutsche  
> Bahn", or other traveling services, airlines etc.
> They attach a *.pdf-file with the ticket, an *.ics-file with the  
> traveling plan, a plaintext and a html text:
>
> Subject: =?UTF-8?Q?Buchungsbest=C3=A4tigung_(Auftrag_ABC123)?=
> MIME-Version: 1.0
> Content-Type: multipart/mixed;
> 	boundary="----=_Part_1266891_1638770165.1456756571410"
>
> ------=_Part_1266891_1638770165.1456756571410
> Content-Type: application/octet-stream; name=ABC123.pdf
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename=ABCD123.pdf
>
> [...]
>
> ------=_Part_1266891_1638770165.1456756571410
> Content-Type: text/plain; charset=ISO8859-15;
> 	name=BAHN_Fahrplan_20160301.ics

This is why it is displaying as plain text. It is declared as  
text/plain type. For icalendar data, this needs to be text/calendar.


> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: attachment; filename=BAHN_Fahrplan_20160301.ics
>
> BEGIN:VCALENDAR
> X-LOTUS-CHARSET:UTF-8
> VERSION:2.0
> PRODID:http://www.bahn.de
> METHOD:PUBLISH
> BEGIN:VTIMEZONE
> TZID:Europe/Berlin
> X-LIC-LOCATION:Europe/Berlin
> BEGIN:DAYLIGHT
> TZOFFSETFROM:+0100
> TZOFFSETTO:+0200
> TZNAME:CEST
> DTSTART:19700329T020000
> RRULE:FREQ=3DYEARLY;INTERVAL=3D1;BYDAY=3D-1SU;BYMONTH=3D3
> END:DAYLIGHT
> BEGIN:STANDARD
> TZOFFSETFROM:+0200
> TZOFFSETTO:+0100
> TZNAME:CET
> DTSTART:19701025T030000
> RRULE:FREQ=3DYEARLY;INTERVAL=3D1;BYDAY=3D-1SU;BYMONTH=3D10
> END:STANDARD
> END:VTIMEZONE
> BEGIN:VEVENT
> UID:bahn20160301072200
> CLASS:PUBLIC
> SUMMARY:Stuttgart -> Karlsruhe
> DTSTART;TZID=3DEurope/Berlin:20160301T072200
> DTEND;TZID=3DEurope/Berlin:20160301T091500
> DTSTAMP:20160229T153600Z
> DESCRIPTION:Reise: Stuttgart nach Karlsruhe [...] www.bahn.de
> END:VEVENT
> END:VCALENDAR
>
> ------=_Part_1266891_1638770165.1456756571410
> Content-Type: multipart/alternative;
> 	boundary="----=_Part_1266892_1332390380.1456756571411"
>
> ------=_Part_1266892_1332390380.1456756571411
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
>
> [...]
>
>
>
> Sure I can save the *.ics-file to my harddisc and afterwards import  
> this file. But this is not really conveniant.
>
> Is there a way to import the calendar-entry _directly_?
>
> Thanks!
> Christoph.
>
> -- 
> Christoph Haas
> email: chhaas-ml at ukbw.de
>
> -- 
> kronolith mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5751 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/kronolith/attachments/20160301/ced4a635/attachment.bin>


More information about the kronolith mailing list