[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] rebuilding a borked MIME multipart/ structure?
From: |
David Levine |
Subject: |
Re: [Nmh-workers] rebuilding a borked MIME multipart/ structure? |
Date: |
Tue, 21 Apr 2015 22:05:27 -0400 |
Valdis wrote:
> Outlook/Exchange sends a borked MIME structure for meeting invites, that
> is stacked like this:
>
> multipart/alternative
> text/html
> text/plain
> text/calendar
Per kre's observation, are you sure that isn't:
multipart/alternative
text/plain
text/html
text/calendar
> Which of course in any standard-compliant MUA will almost certainly do
> one of the first two and never bother looking at the third one.
Just to note that the git HEAD mhshow does render the text/calendar part.
> The simplest way to handle it in exmh is to beat it up while procmail has
> hold of it, to a better form:
>
> multipart/related
> multipart/alternative
> text/html
> text/plain
> text/calendar
>
> Any better ideas than applying BFI techniques to strip out the text/calendar,
> and then re-wrapping the result with a /related and repackaging?
Can exmh somehow handle the output of the latest nmh (mhshow)?
It also supports accept/decline/tentative replies to iCalendar
requests, though I don't know if you care about that.
> It doesn't look like mhfixmsg is able to do that sort of re-write...
No. It wouldn't be difficult. But per another of kre's observations,
the structure isn't necessarily incorrect. In fact, the ones I
receive are OK: all three parts have the same content but in varying
forms, in the proper order.
David