Lloyd Standish schreef:
The procmail log simply indicates that the second condition line is
not fulfilled.
Here is the recipe (CC_ contains the previously-extracted Cc header.
WL is "no"):
: 0
* ! WL ?? ^^yes^^
* ^From:([ ]$|$)|!^From:|^From:.*<>
{
WL="yes"
:0 fwh
| formail -I"Cc: (no from) ${CC_}"
}
At first I thought that you were giving the Cc: header field an invalid
value, but inserting a "(comment)" should cause no problems.
The '!' inside the condition can only be at the start.
: 0
* ! WL ?? ^^yes^^
* ! ^From:
{
WL = 'yes'
:0 fwh
| formail -I"Cc: (no from) ${CC_}"
}
will do what you asked, but from your recipe I see that you are not only
interested in a missing From: header field, but also try to detect
whether the From: header field is special.
WSP = ' ' # 2 characters: space & tab
OR = '9876543210^0'
:0
*$ ^Cc:.*\/[^$WSP].*
{ H_CC = "$MATCH" }
: 0
* ! WL ?? ^^yes^^
*$ $OR ! ^From:
*$ $OR ^From:[$WSP]*$
*$ $OR ^From:.*<>
{
WL = 'yes'
:0 fhw
| formail -I"Cc: (no from) ${H_CC}"
}
--
Grtz, Ruud
____________________________________________________________
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