procmail
[Top] [All Lists]

Re: forwarding all addresses from a domain

2003-07-18 08:43:32
As it was written on Jul 16, thus Pablo spake unto the Procmail list:

Pablo:  Date: Wed, 16 Jul 2003 13:42:02 -0700
Pablo:  From: Pablo <pabloc(_at_)amazingmail(_dot_)com>
Pablo:  To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Pablo:  Subject: forwarding all addresses from a domain
Pablo:
Pablo:  Sorry if this is a triple post, as I was not getting a replay from the 
list
Pablo:  if it had been confirmed
Pablo:
Pablo:  -----Original Message-----
Pablo:  From: Pablo [mailto:pabloc(_at_)amazingmail(_dot_)com]
Pablo:  Sent: Wednesday, July 16, 2003 1:24 PM
Pablo:  To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Pablo:  Subject: forwarding all addresses from a domain
Pablo:
Pablo:  Please excuse the fact that I am totally new at procmail, but I am 
trying to
Pablo:  filter down the list of e-mails that would go to my phone. But one 
problem I
Pablo:  have is I need a way to copy all the mail from people at a domain, and
Pablo:  inversely all the users with a certain username regardless of domain.
Pablo:
Pablo:
Pablo:  Right now I am trying something on these lines.
Pablo:
Pablo:  #this is to get all users
Pablo:  :0 c
Pablo:  * ^From. *(_at_)amazingmail(_dot_)com
Pablo:  !  phone(_at_)phone(_dot_)com
Pablo:
Pablo:  :0 c
Pablo:  * ^From. *username*
Pablo:  ! phone(_at_)phone(_dot_)com
Pablo:
Pablo:
Pablo:  now I know (after reading some) that the * is something else 
entirely...but
Pablo:  not quite sure what yet.
Pablo:
Pablo:  Again sorry for such low end question, but I have been looking through 
much
Pablo:  of the documentation I have found and am not clear on how to accomplish
Pablo:  this.



Not quite correct syntax:

1) You have a space between your . and *    It should be .*
2) Trailing * is redundant.  Unless you really meant "0 or more e's"
3) You must escape literal dot(s):  amazingmail\.com

Try this:


:0 c:
* ^From:.*username
! phone(_at_)phone(_dot_)com




HTH

-- Birl

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