procmail
[Top] [All Lists]

Re: recipe falls through

2000-10-14 19:31:33
On Oct 14, 2000 at 10:37, Professional Software Engineering wrote:

At 18:05 2000-10-14 +0530, Satya wrote:
This recipe falls through. Why?

Well, I guess we all have to operate on the assumption that your VERBOSE 
logs show that the ^To: was actually MATCHED.  IF you had VERBOSE=ON, and 
read your logs, the answer would no doubt leap out and strangle you.

I'm lusing by not having a logfile. But I have circumstantial evidence:

The mail appears in the appropriate folder. The (minor) problem is that it
also appears in another folder where it shouldn't.

The script's function is being performed.

        :0
        | perl/colllist/confirm.pl

First, you should consider making this an ABSOLUTE path.  Use $HOME/ if 
necessary.  Next, failure of this script to read the entire contents of the 

I figured $HOME was the default CWD.

pipe will cause procmail to assume the delivery to the pipe failed, and 
"recover" the message.

And that is the problem. I terminate the script without reading the whole
thing.

The fix, if the perl script is being executed would be either to get the 
script to read input until EOF, or to add the 'i' flag to the pipe 
delivery.  See 'man procmailrc'.

Okay, i flag added. Let's see how it works. Being a production recipe, I
can't really test it until I fetchmail again.

-- 
Satya. <URL:http://satya.virtualave.net/>
US-bound grad students! For pre-apps, see <URL:http://quickapps.cjb.net/>
The option to override self-destruct has expir&*%#NO CARRIER


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