Sebastian Bernheim asked,
| I'm running procmail v3.11pre7 on a BSDI 4 machine. For some reason
| the FROM_MAILER expansion doesn't appear to be working as I would expect
| and I am hoping someone can tell me what I'm doing wrong:
|
| My RC file includes:
|
| :0:/tmp/sbern.procmail
| * ^FROM_MAILER(_dot_)*bozo(_at_)test(_dot_)com
| /dev/null
^FROM_MAILER is designed to match an entire header line, not just the field
name up to the colon. You really shouldn't have anything else in the
condition to the right of ^FROM_MAILER, and the same goes for ^FROM_DAEMON.
| But this is what I get in my procmail log when I send myself a message
| from that address:
|
| procmail: No match on "(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
)([^
|
]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?|daemon|mmdf|n?uuc
|
p|r(esponse|oot)|(bbs\.)?smtp|serv(ices?|er)|A(dmin(istrator)?|MMGR))(([^).!:a-z
| 0-9][-_a-z0-9]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$))(_dot_)*bozo(_at_)test(_dot_)com"
Exactly. Procmail is looking for one of those right sides, like "postmaster"
or "root" or "services" after the colon, so if the message is
"From: bozo(_at_)test(_dot_)com" without any of those words in there, the line
won't
contain a match to ^FROM_MAILER.
| Perhaps I am misunderstanding how the ^FROM_MAILER expansion is supposed
| to work?
Yes. It is supposed to match an entire header line and not parts of one,
so there should be nothing concatenated to it.