procmail
[Top] [All Lists]

Re: Dump email from specific sender

2000-08-16 13:11:03
Thank you very much to Matt and Sean for their prompt responses.  They
helped quite a bit.

Mike O.

-----Original Message-----
From: Professional Software Engineering 
<PSE-L(_at_)mail(_dot_)professional(_dot_)org>
To: procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE 
<procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE>
Date: Wednesday, August 16, 2000 3:37 PM
Subject: Re: Dump email from specific sender


What are the differences between:
* ^From(_dot_)*(_at_)moneymailer(_dot_)com

This catches either the From: header, or the From header (note no quote),
which is the envelope sender.  The most common example of the difference is
mailing lists -- the From: is the person who sent the message to the list,
whereas the From (when YOU get it), is the list mailer (and also has date
info at the end of the line).

* ^From:(_dot_)*(_at_)moneymailer(_dot_)com

This catches only the From: header (what you see in a mailer as the From:)

------- and -------
* ^From*(_at_)moneymailer(_dot_)com

Time for you to pick up a text on RegExps I think.  The '*' says "match
zero or more of the previous character.  In this case, that'd be 'm', and
nothing else.  '.' is a wildcard for 'any character', so ".*" matches any
sequence of characters.  The proper way to do the .com thing, BTW, is
'\.com', though for most instances, it wouldn't make a big difference
(well, you could get mail from "user(_at_)moneymailerxcom(_dot_)net", and an 
unescaped
dot would match that domain - as I said, in most instances, it isn't likely
to make a difference -- but you should get in the habit of escaping it
where you actually want a DOT).

Anyway, the above regexp would match things like the following:

Frommmmm(_at_)moneymailer(_dot_)com
From(_at_)moneymailerxcom(_dot_)net

It WOULD NOT match:

From: someuser(_at_)moneymailer(_dot_)com




_______________________________________________
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>