procmail
[Top] [All Lists]

Re: Grab all headers as a variable

2001-08-01 10:38:23
* Kip Turk <kipt(_at_)wcc(_dot_)net> [010801 13:04]:
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.

Oops, you're right.  The following two examples *might* work:

1)
HEADERS=`formail -X ""`  # w/out the beginning pipe

2)
:0
{ HEADERS=`| formail -X ""` }

-- 
- Matt Dunford <> zoot(_at_)zotikos(_dot_)com ..
-. www.zotikos.com -- o,;-
        
"The greatest pleasure is to vanquish your enemies and chase them
before you, to rob them of their wealth and see those dear to them
bathed in tears, to ride their horses and clasp to your bosom their
wives and daughters."
  -- Gengis Khan
--
_______________________________________________
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>