procmail
[Top] [All Lists]

Piping into a variable

2000-12-07 14:38:54

Looking through the archive, I found examples of setting a variable's value
using extract and $MATCH:

* ^Subject:.*\/[^         ].*
      { SUBJECT=$MATCH }

But the man page implies that using the following format will also work:

SUBJECT=| formail -xSubject:

I realize that this will also give me a leading space, but I'm not concered
about that. The following doesn't seem to work for me though:

:0
1=| formail -xTo:
2=| formail -r
3=| formail -xSubject:
| perl ./tester.pl "$1" "$2" "$3"

Any insights as to what newbie mistake I'm making?

Steve Cochran
_______________________________________________
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>