nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] rebuilding a borked MIME multipart/ structure?

2015-04-21 21:05:44
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

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>