I've got some recipes which look for list names. The following is a bit
ugly because I keep trying to add things to strip off stuff that simply
does not want to be stripped. At this point, the recipe has grown to:
:0
* ^\/(Mailing-List:.+(imp|horde|twig)-help@|\
Delivered-To:(_dot_)+(_at_)lists\(_dot_)securityfocus\(_dot_)com|\
Sender:.+((owner|admin|bounce)-[a-z0-9_-]+|[a-z0-9_-]+-(admin|owner|bounce)@[a-z0-9\.-]+))
* MATCH ?? ^[^:]+:[ ]+([a-z0-9 ]+<)?((owner|admin|bounce)-)?\/.*
* MATCH ?? ^[^a-z]*\/[^(_at_)]+
* MATCH ?? ^(owner-)?\/.+
{
LISTNAME="$MATCH"
}
LOG="LIST: $LISTNAME ($LISTTYPE)$NL"
But I'm getting VERBOSE logs that look like:
procmail: [25936] Sat Dec 21 23:42:05 2002
procmail: Assigning "MATCH="
procmail: Matched "Sender: owner-srh"
procmail: Match on
"^\/(Mailing-List:.+(imp|horde|twig)-help@|Delivered-To:(_dot_)+(_at_)lists\(_dot_)securityfocus\(_dot_)com|Sender:.+((owner|admin|bounce)-[a-z0-9_-]+|[a-z0-9_-]+-(admin|owner|bounce)@[a-z0-9\.-]+))"
procmail: Matched "owner-srh"
procmail: Match on "^[^:]+:[ ]+([a-z0-9 ]+<)?((owner|admin|bounce)-)?\/.*"
procmail: Matched "owner-srh"
procmail: Match on "^[^a-z]*\/[^(_at_)]+"
procmail: Matched "owner-srh"
procmail: Match on "^(owner-)?\/.+"
procmail: Assigning "LISTNAME=owner-srh"
procmail: Assigning "VERBOSE=off"
LIST: owner-srh
Why can't I get rid of the bloody "owner-"? What am I doing wrong?
Tnx. :)
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail