procmail
[Top] [All Lists]

Re: Trouble with procmail.

2007-09-24 15:15:28
k3rn wrote Monday, September 24, 2007 5:58 PM:

On Monday 24 September 2007 17:12:43 Dallman Ross wrote:
Apply the i-flag to your recipe.

YEAH !!!

It just works !

Thank you so much !

Can you explain me why there was an error ?
I'm trying to understand but I got no clue...

I'm no hardware guy so may not be the best person to
explain this, but I'll try.

My understanding of why is that while procmail, being the
brute-simple tool that it is, will gleefully follow your 
directive and shunt your message to a pipe, it nevertheless
has no way of knowing what program or thing you have
placed to the right of that pipe.  IOW, procmail's job ends
when it sends the thing on to the pipe (unless you've
told it to wait for the exit status).  How can procmail
know how long to hold the pipe open if there's no
feedback from the other side of the pipe?  It can't.
So it holds it open for some nominal length of time
and then closes it.

If your message was long or things are moving kind of
sluggishly or whatever, you can easily have a situation
where the pipe closes before your program or script has
finished its independent action.

The recipe's i-flag says to procmail, "Dude: just hold
that baby open, will you?"  So then your program has
time to operate.

Well, if somebody wants to explain this more technically,
it would be fine by me.

Dallman
____________________________________________________________
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