3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Strange mailbox error...
FromSent OnAttachments
David J. Weller-FahyOct 11, 2007 1:17 pm 
Devin RubiaOct 11, 2007 1:35 pm 
David J. Weller-FahyOct 11, 2007 2:05 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Strange mailbox error - SOLVEDActions...
From:Devin Rubia (dev@thezone.net)
Date:Oct 11, 2007 1:35:00 pm
List:net.sourceforge.lists.courier-maildrop

On Thu, Oct 11, 2007 at 10:17:51PM +0200, David J. Weller-Fahy wrote:

I've had a problem with intermittent failure of my greenlisting script, and have finally (I believe) tracked down the problem, and solved it.

I believe the problem involves piping a message to a script as a delivery. If that script makes no use of the pipe, performs its function, then exits (as my greenlister script does) then maildrop never has a chance to finish writing larger messages to the pipe.

This has been dealt with on the list before. If your script does not drain the pipe, maildrop will assume that delivery failed and behave appropriately.

Since you are not actually delivering the message why not replace

to "|$MAILDROP/greenlist-$GL_OP.sh \"$MATCH\""

With:

`$MAILDROP/greenlist-$GL_OP.sh \"$MATCH\"` exit