14 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Re: syntax problem (d...
FromSent OnAttachments
Benjamin TomhaveApr 9, 2003 3:23 pm 
Sam VarshavchikApr 9, 2003 3:49 pm 
Benjamin TomhaveApr 10, 2003 8:25 am 
Sam VarshavchikApr 10, 2003 8:48 am 
Benjamin TomhaveApr 10, 2003 9:28 am 
Sam VarshavchikApr 10, 2003 10:09 am 
Devin RubiaApr 10, 2003 10:19 am 
Benjamin TomhaveApr 10, 2003 11:14 am 
Benjamin TomhaveApr 10, 2003 11:15 am 
Rolan YangApr 10, 2003 11:22 am 
Benjamin TomhaveApr 10, 2003 11:44 am 
Devin RubiaApr 11, 2003 6:04 am 
Fernando La GambaApr 14, 2003 12:40 pm 
Gatis GailisApr 14, 2003 1:46 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] Re: syntax problem (did something change from 1.3.8 to 1.5.2?)Actions...
From:Devin Rubia (dev@thezone.net)
Date:Apr 11, 2003 6:04:48 am
List:net.sourceforge.lists.courier-maildrop

On Thu, Apr 10, 2003 at 12:44:19PM -0600, Benjamin Tomhave wrote:

Ok, so I now have the following code snippit in place, RETURNCODE is getting the desired value (notice I'm including it with the echo line), but the expression isn't working correctly? I've tried this with various sets of "" around the var or the value, but to no avail. Any ideas or suggestions re: why the expression isn't evaluating as expected?

DUMMY=`test -d $VHOME/Maildir` if ($RETURNCODE!=0) { echo "Sorry, no mailbox here by that name. (#5.1.1) ($RETURNCODE)" EXITCODE=100 exit }

So, What are you trying to do here? To me it looks like you are checking for the existance of a maildir belonging to a user and if it does not exist, print an error message and exit with exitcode 100.

In short - Are you trying to emulate an EX_NOUSER? If so you should use an exitcode of 67. Maybe you were going for EX_UNAVAILABLE? If so, that would be 69. How about EX_CANTCREAT? 73.

I can't seem to find a valid exitcode in sysexits.h for 100.

So, what does work? Have you tried a command line delivery? Does the echo line work? What does it output?