On Jan 6, 2006, at 11:44 AM, Mr Duck wrote:
First, it's missing the file locking.
It's usually not that big a deal, and I use Maildir, so lucking
is ... so not needed. :)
Second, escaping of the @ is not necessary.
It also doesn't hurt.
Remembering which characters need it, and which don't, in which
context, makes my head throb.
Which is never a good thing.
I had originally written the recipe w/o the ?? stuff,
but since that doesn't seem to make
any difference in the effectiveness of the recipe,
It adds a needless level of confusion.
IMHO only, of course.
Thirdly, adding the square brackets to the Received match
will only complicate the matching process.
Sometimes, you really want to match for those brackets, especially if
someone else is trying something cute.
I just habitually put them in.
Sorry if that disturbs you.
Well, since the
regexp match process is linear, my understanding is that it will
find the first Received line,
Which was my point.
The un-!-ed rule will match ANY Received: header that contains that
Negation can become an issue, though.
I was musing, I think, to determine if it would potentially
try all three Received lines to check for a valid match, or if
once it said "yes this is it - it is a match" then that was all
I think I see the problem.
It's not what you think.
The problem is, the un-negated rule doesn't match the first line it
sees, so the negation matches.
It's ugly, but there it is.
Aloha mai Nai`a!
"Please have your Internet License http://kapu.net/~mjwise/
and Usenet Registration handy..."
procmail mailing list Procmail homepage: http://www.procmail.org/