procmail
[Top] [All Lists]

Re: deliver only the body to a file?

2006-10-10 18:40:25
On 10 Oct 2006, at 17:58 , Dallman Ross wrote:
On Tue, Oct 10, 2006 at 04:57:36PM -0600, Google Kreme wrote:
:0
* From:(.*)someone(_at_)somewhere(_dot_)tld
* Subject:(.*)Some Special word
{
   :0b
   myfile.txt
}

1. Don't forget the lockfile!

Actually, I was wondering about that.  I guess this will Append to  
the file, as if it was a mailbox, not overwrite it.

2. No need to do it in two gestures (recipes).

Yeah, I realized that after I posted.

:0 b:
* From:(.*)someone(_at_)somewhere(_dot_)tld
* Subject:(.*)Some Special word
| sed '/^-- /,d' > myfile.txt

Might be better though...

-- 
My biggest problem is that Steve insists on serving PURPLE Kool Aid,  
and I don't like PURPLE <sip sip> Kool Aid.




____________________________________________________________
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>