procmail
[Top] [All Lists]

Re: how to filter a complete from domain

2001-06-06 23:07:15
Thanks, I got it working now. Not exactly the way I want it to but at
least it's a start. Thanks.

Marc van Duivenvoorde

On Wed, 6 Jun 2001, Professional Software Engineering wrote:

At 13:29 2001-06-06 +0200, Marc Duivenvoorde wrote:
I'm trying to filter my email using procmail and I was wondering how to
filter a complete from domain. I've tried the following but it doesn't seem t
work

Have you considered setting VERBOSE=ON, and then checking the logs after a
few test messages?  This usually works wonders.

:0:
* ^TO_\/(marcd(_at_)ladot(_dot_)com)
/home/marcd/Mail/Ladot

Why are you using '\/' which is used to set $MATCH, which you are not
making use of ?

Why are you enclosing the address in parenthesis, which is used to
encapsulate OR'd strings, yet you are not OR'ing anything?

Does the mail folder exist (and why not use MAILDIR for the path spec?)?

:0:
* ^FROM_\/(.*ladot.com)
/home/marcd/Mail/Ladot

Same questions as above, but include:

Do you realize there is no "^FROM_" regexp macro (nor is there a ^FROM
macro)?  In effect, you are trying to match:

         FROM_.*ladot.com

It is pretty much a given that THIS recipe isn't going to do what you're
trying to accomplish.  Methinks a VERBOSE logfile would have clued you into
this mistake.  There's a good chance you're confusing this with
^FROM_DAEMON and ^FROM_MAILER, and believing that ^TO and ^TO_ have
counterparts, which they do not.

Arguably, a ^FROM macro that checks From:, From, Sender:, Resent-By:, etc,
for an address could be useful from time to time, but the need (and
standards of header use) is not nearly as clear cut as ^TO is.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.

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


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