pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
704 stars 163 forks source link

Handle calendar content of an email #777

Open joeda opened 9 years ago

joeda commented 9 years ago

Calendar entries are not handled at the moment. They look like this

--_000_8829A0A5DFB6FB4195BC72E26DEACC8601C1136AD89DKITMSXasdfe_
Content-Type: text/calendar; charset="utf-8"; method=REQUEST
Content-Transfer-Encoding: base64

base64encodedstuff
--_000_8829A0A5DFB6FB4195BC72E26DEACC8601C1136AD89DKITMSXasdfe--

in an email and contain iCalendar-data [1]. They could either be handled as a regular attachment for users to import them into their calendar or decoded and displayed, even though I think the former solution is preferrable since alot is not a PIM.

[1] https://en.wikipedia.org/wiki/ICalendar

jake-low commented 9 years ago

+1 on this.

You can't currently do this using .mailcap because alot always chooses exactly one of the text/* parts of a multipart message to process (last I checked the source code at least).

The simplest fix for this in my opinion is to give alot an option that when set to true would show all unrendered parts of a multipart message as attachments. That way you could save text/calendar parts to your calendar directory.

lucc commented 7 years ago

894 might be related, sadly I am a little stuck on the widgets stuff. I hope to pick it up soon though.