procmail
[Top] [All Lists]

Re: Loop difficulty

2000-08-12 23:45:34
At 21:07 2000-08-12 -0700, Stephen J. Schilt wrote:

However when I add this snippet procmail goes into an endless loop for no apparent reason:

# Part two
:0 h
* ^FROM(_dot_)*special(_at_)ez(_dot_)net
| $HOME/notice.pl

Why does it do this?

Why are you restructuring it from the script that was provided? If the two rules rely on a common trigger, it makes more sense (and certainly will when you have scores, if not hundreds, of rules being processed) to bracket them as was previously shown.

What is the VERBOSE procmail log saying?

Please note that you didn't specify the 'i' flag on the recipe invoking the script, so _as I previously said_, if the script isn't reading all the message, Procmail will be assuming the delivery failed, and it may be getting processed by other rules in your procmailrc. See 'man procmailrc' for more info on the i flag.

For that matter, have you considered running procmail against a script stand-alone rather than on your mail stream? This eliminates the re-introduction of the message from possible forwards, etc. you may be doing elsewhere -- make a procmail rc file which consists solely of the script, plus necessary configuration elements (such as LOGFILE and MAILDIR if you redefine them, etc).

Enable VERBOSE logging and CHECK THE LOGS. You still show no sign of having done this.

Kindly trim unneccessary bits from your replies.

---
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

 Sean B. Straw / Professional Software Engineering
 Post Box 2395 / San Rafael, CA  94912-2395


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