4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Maildrop : Setting us...
FromSent OnAttachments
Manpreet Singh NehraSep 19, 2003 4:29 pm 
Paul DlugSep 19, 2003 4:48 pm.patch
Petri RiihikallioSep 20, 2003 10:17 am 
Sam VarshavchikSep 20, 2003 7:13 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] Maildrop : Setting user Id from within maildroprcActions...
From:Petri Riihikallio (Petr@Metis.fi)
Date:Sep 20, 2003 10:17:44 am
List:net.sourceforge.lists.courier-maildrop

if(/^To:[:space:]*[a-zA-Z0-9_\.]*@!.*$/:h) { echo $MATCH2 if(/^X-Spam-Flag: *YES/) { cc "/var/virtual/$MATCH2/admin/mail/.Recieved.Spam/" to "$HOME/mail/.Spam" } else { cc "/var/virtual/$MATCH2/admin/mail/.Recieved/" echo "$HOME/mail/" } }

The error I get in my maillog is

postfix/pipe[1692]: 0FDSVSFG2E: to=mys@somedomain.com, relay=maildrop, delay=234, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )

What is the value of $MATCH2 at the time of the cc statement? You have done a new pattern match looking for the spam flag. You should store $MATCH2 in a variable before the second pattern match. This would explain why maildrop couldn't open the mailbox.

(Disclaimer: I haven't actually got my own Maildrop system running yet. This thought just occured to me by looking at the code. I have done quite a lot Perl programming and I have been bit by similar bugs too many times)