help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus: Stripping HTML/PDF/DOC parts from emails?


From: Andreas Röhler
Subject: Re: Gnus: Stripping HTML/PDF/DOC parts from emails?
Date: Sat, 13 Feb 2010 08:56:57 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Paul R wrote:
> Hi,
> 
> Nicolas> Hello, I relatively often get mails from people (probably
> Nicolas> a pandemic disease caused by using MS Outlook) who put more or
> Nicolas> less the same information in Text/HTML/PDF/DOC parts. Since
> Nicolas> I save almost all my email correspondence, I would like to
> Nicolas> strip the superfluous parts of those messages. Is there some
> Nicolas> way to do so in Gnus without editing the article by hand?
> 
> I am in the exact same situation. I am receiving more and more mail with
> a 1 line body like "cf attachment", and the real content in a word
> document attached. Therefore I would love to have some generic tools to
> manipulate mail contents. In this case, I would replace the whole mime
> part by the output of 'catdoc' of 'pdftotext' and save the mail in this
> form.
> 


Hi,

use occasionally a shell-script like

set "" `find ~/Mail/MY-Interesting-Folder/cur/ -type f`
    for i in $*; do
        echo 2 | metamail $i
        echo $i > ~/MY-OUTPUT-FOLDER/$i.txt

    done

Cheers

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]