procmail
[Top] [All Lists]

Re: Grab all headers as a variable

2001-08-01 10:10:45
On Wed, 1 Aug 2001, Matt Dunford wrote:

* Kip Turk <kipt(_at_)wcc(_dot_)net> [010725 18:13]:

I'd like to add the original headers when I warn a sender that I denied
their message due to a virus.  I know it's quite trivial to pass just the
headers, but I can't find a simple way to store them all.

Does something like this not work?

HEADERS=`| formail -X ""`

Not that I could find:

procmail: Executing "| formail -X """
/bin/bash: syntax error near unexpected token `|'
/bin/bash: -c: line 1: `| formail -X ""'

Trying to place it within the recipe would make HEADERS= my LASTFOLDER.
Outside the recipe gives the above error.  Seems to me the pipe won't work
as it's not actually pushing anything through formail in this case.

-- 
Kip Turk                                             spamdies(_at_)wcc(_dot_)net
Systems Administrator/Killer of Spam/Writer of Code/Penguin Proponent
West Central Net - tel: 915.234.5678 / 800.695.9016 fax: 915.656.0071
-.-. --- -.. . / -- --- -. -.- . -.-- --..-- / .... .- -.-. -.- . .-.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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