procmail
[Top] [All Lists]

FROM_DAEMON on preventing loops

2008-09-25 15:33:04
I am writing a recipe to forward mail to another account.  Virtually every
example I have seen includes use of the FROM_DAEMON conditional statement.
 Reviewing the recipe, it really looks to me that the real work is being
done by the X-Loop: header being added.  My question is, are the
FROM_DAEMON (and FROM_MAILER) conditionals really necessary?

  :0
  * ^TO_skip(_at_)pelorus\(_dot_)org
  * !^FROM_DAEMON
  * !^FROM_MAILER
  * !^X-Loop: pelorus.org
  {
    :0fw
    | /usr/bin/formail -A "X-Loop: pelorus.org"

    :0c
    !skip(_dot_)x(_dot_)mobile(_at_)gmail(_dot_)com
  }

The reason why I ask is that I have seen some emails not get forwarded
(namely from google itself, but they weren't in a loop) and I want to make
sure that those conditionals aren't over aggressive and possibly prevent
other emails from being forwarded.  If all I am concerned about is
looping, then couldn't I get rid of those two conditionals?

____________________________________________________________
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