procmail
[Top] [All Lists]

Re: deliver only the body to a file?

2006-10-11 14:08:47

On Wed, 11 Oct 2006, Ruud H.G. van Tol wrote:

Google Kreme schreef:
Dallman Ross:
Google Kreme:

 [...]
[...]
 | sed '/^-- /,d' > myfile.txt

Might be better though...

ITYM:  | sed '/^-- /,$d' > myfile.txt

         Anyway it is dangerous because if you are talking about sign
         you must check NewLine after the space.  I saw weekly email
         journal that use "-- " as bullets for list of issues.  What
         about this one?

| sed '/^-- $/,$d' > myfile.txt

         Every new message will overwrite the previous myfile.txt, maybe
         you want it, if not you can append the text by using  ">>" instead
         of ">".

-- 
Udi

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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