* Alan Clifford <lists(_at_)clifford(_dot_)ac> [2004-10-09 10:54]:
I was expecting the ^FROM_DAEMON macro to pick this up:
From: Cron Daemon <alan(_at_)nard(_dot_)clifford(_dot_)ac>
but it didn't. Should it? Or am I misreading the regex?
^FROM_DAEMON is a complicated expression. It appears that the junk
before the <space>daemon must match this expression:
([^>]*[^((_dot_)%(_at_)a-z0-9])?
You nearly match it, but the 'n' in 'Cron' screws it up, because 'n'
is in a-z.
That's not to say other factors aren't also causing the mismatch.. ie,
if you were to remove the " Cron" entirely, then the string "daemon"
may need to be followed immediately by an '@'.
The intent of the ^FROM_DAEMON seems to expect to find one of the
predefined strings in the *username* part of the address. I don't
think you can get away with putting 'daemon' in the realname part
(assuming your objective is to get a match by only tampering with the
realname).
I would be tempted to try something like this:
From: "Daemon(_at_)cron" <alan(_at_)nard(_dot_)clifford(_dot_)ac>
But I have doubts about it. The '<' might block that attempt as well.
____________________________________________________________
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