procmail
[Top] [All Lists]

Re: multiple addresses, one recipe

2004-02-22 18:18:14
Toen ik JM Fraser kietelde, kwam er dit uit:

Is it possible for me to have multiple addresses and specfiy one recipe
for all of them? For example:

 :0:
 *^From:(_dot_)*duda(_at_)somedomain(_dot_)com
 *^From:(_dot_)*four(_at_)domain(_dot_)com
 *^From:(_dot_)*five(_at_)domain(_dot_)com
 $MAILDIR/.big_bird/

You want OR but are using AND. 
You are specifying a lockfile but delivery-type is maildir.
You are mentioning $MAILDIR but there is no need.


One way to do it:

  SCMAX = 2147483647
  OR    = "$SCMAX^0"

  :0
  *$ $OR ^From:.*\<duda(_at_)somedomain\(_dot_)com\>
  *$ $OR ^From:.*\<four(_at_)domain\(_dot_)com\>
  *$ $OR ^From:.*\<five(_at_)domain\(_dot_)com\>
  .big_bird/


Another way:

  :0
  * ^From:.*(duda(_at_)somedomain|(four|five)@domain)\.com
  .big_bird/


A third way:

  aList = "
duda(_at_)somedomain(_dot_)com
(four|five)@domain.com
"
  :0 h
          CLEANFROM=|formail -IReply-To: -rtzxTo:

  :0
  *$ aList ?? ^$CLEANFROM^
  .big_bird/


There are many more ways.

-- 
Affijn, Ruud

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