procmail
[Top] [All Lists]

Re: how to convert NeXTMail text/enriched to plain text?

2004-06-17 08:33:32
"Gary Funck" <gary(_at_)intrepid(_dot_)com> wrote:

I'm receiving some e-mail that is sent from a NeXT Mail client.
The relevant headers appear as follows:

 MIME-Version: 1.0 (NeXT Mail 3.3 v148.2.1)
 Content-Type: text/enriched; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
[snip]
What Linux-resident filter would you recommend that will accept
text/enriched, and produce plain text?

metamail is your friend :

:0
* ^Content-Type: *text/enriched
{
    :0 fhw
    * ^Content-Type:.*charset=\/.*
    | formail -I Content-Type: -a "Content-Type: text/plain; charset=${MATCH}"

    :0 fbw
    | richtext -t -s ${MATCH}
}

not tested, but the idea is there.

Cyrille Lefevre.
-- 
home: mailto:cyrille(_dot_)lefevre(_at_)laposte(_dot_)net

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail