1 message in net.sourceforge.lists.courier-maildrop[maildropl] to pipe delivery: failure...
FromSent OnAttachments
Justin HeesemannJun 8, 2004 4:54 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:[maildropl] to pipe delivery: failure observationsActions...
From:Justin Heesemann (jh@ionium.org)
Date:Jun 8, 2004 4:54:39 pm
List:net.sourceforge.lists.courier-maildrop

Hi..

I think I found the cause for a problem, that some people (including myself) happen to experience when running vpopmail's vdelivermail from maildrop filter files, with either 'delete' or 'bounce-no-mailbox' as parameter.

The reason why maildrop so often exits with

maildrop: error writing to mailbox. maildrop: Unable to deliver to mailbox.

is because vdelivermail exits, before it read the pipe completly. vdelivermail simply checks whether the receipient is valid, and if not, exits at once, causing a SIGPIPE in maildrop. Apperently adding exception {} to the to "$VPOP" instruction doesnt help.

This result can be reproduced quite easily, even for those without vpopmail: create a maildropfilter  'test': to "|exit 100"

and feed it some text: # maildrop test < test maildrop: error writing to mailbox. maildrop: Unable to deliver to mailbox. # echo $? 75

now alter the test maildirfilter: to "|sleep 1; exit 100" # maildrop test < test # echo $? 100

So, what is the solution? Shouldn't maildrop catch sigpipes and act accordingly?