I'm trying to construct a recipe to snag a specific pattern in the
Message-ID header line. A sample Message-ID looks like:
# Message-Id: <E1BO2fg-0002He-HQ(_at_)ocjnet(_dot_)com>
My recipe is:
A=[a-zA-Z0-9]
:0
* $ ^message-id:[ ]<$A$A$A$A$A$A$A-$A$A$A$A$A$A-$A$A
spam
I can't seem to isolate the "-". I've tried "\-", "\\-". [-], [\-]. I've
even tried assigning F="-" and including $F in the recipe.
Grep man pages state that a "-" included in a class should be placed last
inside the [], so I guess [-] would not be expected to work.
I appears to me that procmail is interpreting the hyphen as part of a
class, ie "include 7 (numberletters) through 6 (numberletters)" or
something similar.
- fleet -
PS: What gets caught in the sandbox (run against ~45Mb of backup messages
and using the $F version) is:
Message-Id: <E1BO2fg-0002He-HQ(_at_)ocjnet(_dot_)com>
Message-ID: <3420719457715040(_dot_)0VHV202436i(_at_)takas(_dot_)lt>
Message-ID: <000101c43a35$37caa07c$e43e752b(_at_)concentric(_dot_)com>
Message-ID: <4561374956674185(_dot_)9JH3372138182qfz(_at_)topmail(_dot_)de>
Message-Id:
<PM(_dot_)6720(_dot_)0464916981(_at_)pmweb5(_dot_)uk1(_dot_)bibliotech(_dot_)net>
PPS: Logfile is no help:
LOGFILE=$HOME/spamtest/spamtest.log
DEFAULT=$HOME/spamtest/
VERBOSE=on
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail