procmail
[Top] [All Lists]

Re: formail question (-s and piping to tail)

2007-01-24 08:48:25
Dallman Ross wrote:

On Tue, Jan 23, 2007 at 08:01:03PM -0600, Gerald V. Livingston II wrote:

Can someone point out what's wrong with this?

formail <spambox -s formail -X X-Spam-Report: | tail -n +19 >> spamreport2

Well, quite a bit, actually. :-)

Ideas??

Why not test it at a shell prompt until it works?

But I'll save you some work:

  cat spambox | formail -zfx X-Spam-Report: -s | tail -n 19 >> spamreport2

No, I don't think that that's right either.

  formail -X X-Spam-Report: -s tail -n +19 < spambox >> spamreport2

if I understood Gerald correctly, and I'm wondering if the -e option to 
formail is needed too (if not, it slows things down).

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