[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] message rewrite/fix up
From: |
Paul Fox |
Subject: |
Re: [Nmh-workers] message rewrite/fix up |
Date: |
Sun, 03 Feb 2013 14:40:09 -0500 |
david wrote:
> I've been getting text emails with only a text/html
> Content-Type, with no alternative text/plain part.
> Microsoft Exchange and Outlook have settings to do that:
>
> http://technet.microsoft.com/en-us/library/aa998896(v=exchg.65).aspx
> http://support.microsoft.com/kb/323195
>
> This is so annoying (/rude) that I'm finally going to cobble
> up a utility to rewrite a message. I've wanted that anyway
> so I can decode a message's parts and then grep, repl, forw,
> etc. I've been using a perl script to do that for years, so
> I never migrated to replyfilter. And it doesn't help with
> grep.
>
> I'm thinking of something that could traverse the parts of a
> message and do things such as:
>
> * move a solitary text/html into a multipart/alternative
> with a sibling text/plain, generated using what mhshow
> does
i feel like i also get html mail that isn't (or isn't properly)
mime-encoded at all -- i have to manually extract the entire body
and run elinks or firefox on that. of course i can't lay my hands
on such a message right now. so that would be similar to the
above, without the initial hint.
paul
>
> * decode base64 and Q-P parts
>
> * change Q-P (or base64) in a multipart C-T-E header to
> 7bit or 8bit, to address that problem we've heard about
> a few times recently
>
> * fix mismatched MIME boundaries
>
> Anything else? It looks like mhtest plus some of the
> functions in mhshow and mhstore could do this without
> too much trouble.
>
> David
>
> _______________________________________________
> Nmh-workers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/nmh-workers
=---------------------
paul fox, address@hidden (arlington, ma, where it's 23.9 degrees)