procmail
[Top] [All Lists]

Re: Preventing mail loops

1996-02-08 07:32:21
 Noah asked:
 
has a solution to mail loops caused by the procmail example 'vacation'
recipe and another user running vacation or the same recipe.
user1 activates vacation like script
users2 activates vacation like script
user1 mails users2

  Tim responded:
 
Vacation mail usually has the header

Precedence: junk

  ahem.  _usually_.  Not the sort of thing that you want to have to
count on.
 
and most auto-reply recipes have this in them

* ! ^FROM_DAEMON

which will fail to match "Precedence: junk" and so fall through.

^FROM_DAEMON and ^FROM_MAILER are good starts.  Another place to look is
to do you own loop checking.  A common thing to do with
procmail/smartlist is to use an X-Loop header to contain your email
address, and to _not_delete_ the previous ones.

Soren

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