procmail
[Top] [All Lists]

Re: deliver only the body to a file?

2006-10-10 23:07:38
Google Kreme schreef:
Dallman Ross:
Google Kreme:

  :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.

With overwriting (or actually: atomic over-renaming), without a lockfile
there are still problems: the one that starts last, doesn't have to
finish last.


 * From:(.*)someone(_at_)somewhere(_dot_)tld

The dot needs escaping. The .* doesn't need to be inside (), but it
stands out nicely this way.


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

Might be better though...

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

-- 
Groet, Ruud


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