procmail
[Top] [All Lists]

Re: does this recipe make sense

2004-08-01 12:03:35
* Michelle Konzack <linux4michelle(_at_)freenet(_dot_)de> [2004-08-01 08:56]:

:0 c
* To:(_dot_)*enquiries(_at_)domain(_dot_)co(_dot_)uk
! user2(_at_)domain1(_dot_)com

If it is always in the To-Header. If not, you can use

:0 c
* TO(_dot_)*enquiries(_at_)domain(_dot_)co(_dot_)uk
! user2(_at_)domain1(_dot_)com

which fits To: Bcc: Cc:

You're missing an underscore.  To get more general coverage, it must
be written as:

  :0 c
  * ^TO_enquiries(_at_)domain(_dot_)co(_dot_)uk
  ! user2(_at_)domain1(_dot_)com

And in this case, the .* expression would be redundant.  Both rules
are also missing the caret, which would cause procmail to evaluate
cases where the string 'to:' occurs in other parts of the header.

____________________________________________________________
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

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