5 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] why doesn't 0==0?
FromSent OnAttachments
Benjamin TomhaveApr 14, 2003 1:34 pm 
Benjamin TomhaveApr 15, 2003 12:16 pm 
Benjamin TomhaveApr 16, 2003 1:38 pm 
Mark WeinemApr 16, 2003 4:34 pm 
Benjamin TomhaveApr 17, 2003 9:44 am 
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] why doesn't 0==0?Actions...
From:Benjamin Tomhave (btom@sofast.net)
Date:Apr 16, 2003 1:38:43 pm
List:net.sourceforge.lists.courier-maildrop

Hello,

I tested the same script snippit with maildrop 1.3.9 and have had the same results. This appears to be a problem with the if statement as compiled under a current RedHat 8.0 system. Is anybody else running maildrop under RH8? If so, do you have any if statements with numerical expressions? If yes, does your format vary from mine?

Thank you,

-ben

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Benjamin Tomhave Sent: Tuesday, April 15, 2003 1:16 PM To: cour@lists.sourceforge.net Subject: RE: [maildropl] why doesn't 0==0?

I don't suppose anybody on this list has maildrop 1.5.2 installed and could tell me if they have expressions like the below implemented and working? In the meantime, I'm downloading the latest snapshot to see it works with that...

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Benjamin Tomhave Sent: Monday, April 14, 2003 2:34 PM To: cour@lists.sourceforge.net Subject: [maildropl] why doesn't 0==0?

Hello,

I am still battling with my maildrop 1.5.2 install. As far as I can tell, everything is evaluating correctly. VHOME returns the correct value, the directory exists, and RETURNCODE is getting set to 0. How is it, then, that the statement "$RETURNCODE != 0" evaluates as "true"? I did try "!$RETURNCODE == 0" as someone suggested, but that gave a syntax error when evaluated. That seems roughly the same as my existing expression anyway. Any ideas on why I'm getting true instead of false on my 0!=0 expression?

SHELL="/bin/bash" import EXT import HOST VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`

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

Thank you,

-ben