And then, since the headerfield names are still there (formail -X would
have kept them as well, but if you're not calling formail at all in order
to save the formail and shell calls, they'll certainly be there), you can
use procmail's internal parsing to extract SUBJ, TO, FROM, or whatever
other variables you want, and then use them in subsequent conditions.
Hm, this more or less seems to work. Ugh.
:0 H
SUBJ=| formail -fXsubject -Xfrom |perl -MEncode -ne 'print
encode("UTF8",decode("MIME-Header",$_))'
:0 ci
* SUBJ ?? Subject:\/.*
| echo "subject is $MATCH"
:0 ci
* SUBJ ?? From:\/.*
| echo "from is $MATCH"
____________________________________________________________
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