procmail
[Top] [All Lists]

Re: Why is it skipping?

2000-12-12 13:43:57

On Tue, 12 Dec 2000, Christopher Lindsey wrote:

:0 c:
! ^MAIL_DEAMON
! ^X-Loop: poohba(_at_)\io(_dot_)com

! on an action line means forward to this address, so you're trying to
mail all messages to ^MAIL_DEAMON.  Putting it on a condition line (by
prepending '*' to it) should fix things.  Although ^MAIL_DEAMON isn't
a valid macro either..
********************
What is the macro that you need to keep those undelivered mail
messages and such from coming in?
********************

* 0^0
* 1^0 (To|Cc|Bcc)(_dot_)*poohba(_at_)io\(_dot_)com
* 1^0 (To|Cc|Bcc)(_dot_)*EmNEm(_at_)relationships\(_dot_)com

I'm not sure if scoring is appropriate for your application, but in 
case you need it you might want to combine those lines:

Try

   :0 c:
   * ! ^FROM_DAEMON
   * ! ^X-Loop: poohba(_at_)io\(_dot_)com
   * 0^0
   * 1^1 
^(To|Cc|Bcc):.*(poohba(_at_)io\(_dot_)com|EmNEm(_at_)relationships\(_dot_)com)
   {
      ... stuff ...
   }

This should add one to the total score for each matching header.

If you don't need to do scoring, you could also do

   :0 c:
   * ! ^FROM_DAEMON
   * ! ^X-Loop: poohba(_at_)io\(_dot_)com
   * ^TO_.*(poohba(_at_)io\(_dot_)com|EmNEm(_at_)relationships\(_dot_)com)
   {
      ... stuff ...
   }

instead.

Chris


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