procmail
[Top] [All Lists]

Re: Mixed domains

2004-05-01 15:23:14
On Sat, May 01, 2004 at 05:18:42PM -0400, fleet(_at_)teachout(_dot_)org wrote:
On Sat, 1 May 2004, Professional Software Engineering wrote:


At 10:29 2004-05-01 -0400, fleet(_at_)teachout(_dot_)org wrote:
I received a message with the included (below) header.  It tripped the
recipe I have requiring Message-ID domains to match From domains:


:0 # MSGID-01: "Free-Mail" domains with non-matching message-id
* ^From:.*@(.*\.|)\/(altavista\.com|\
                      msn\.com|\
                      ... list of others)
* $ ! ^Message-Id:.*@(.*\.|)$MATCH
spam

Well, actually, the recipe worked as it was supposed to.  The From domain
@msn.com didn't match the Message-ID: domain @hotmail.com so the message
wound up in the spam folder.

JFTR, hotmail and msn use interchangeable mail servers, so in an ideal
situation, the message you posted headers for shouldn't have failed.

I think this answers the question I was trying to ask.  You're saying that
it's possible (even probable) that the msn.com and hotmail.com domains
could both appear in the same message?  That kind of invalidates my
recipe! :) (At least with respect to those two domains.)

Yes.  I have a recipe that applies a similar heuristic, though the
algorithm is entirely different.  But, yeah, I discovered a long time
ago that hotmail and msn share servers sometimes. :-)

I'd quote the match string in the final condition, and write it
a bit differently.  And I assign a var for the various domains, which
I call $HOTHOO.  :-)

Something like this, maybe:

 HOTHOO = "(altavista|msn|hotmail|yahoo)[.]com"

 :0:
 * $   ^From:(_dot_)*[(_at_)(_dot_)]\/$HOTHOO
 * $ ! ^Message-ID:.*@(.*\<)?$\MATCH
 spam

-- 
dman
 

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>