From: Graeme M. <ma...@us...> - 2005-02-21 16:13:00
|
Update of /cvsroot/mailmanager/mailmanager/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18254/scripts Modified Files: MMMailIn-Qmail.py MMMailIn.py Log Message: Oops. It helps to test stuff *before* committing it! Index: MMMailIn-Qmail.py =================================================================== RCS file: /cvsroot/mailmanager/mailmanager/scripts/MMMailIn-Qmail.py,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- MMMailIn-Qmail.py 18 Feb 2005 11:39:19 -0000 1.7 +++ MMMailIn-Qmail.py 21 Feb 2005 16:12:30 -0000 1.8 @@ -52,7 +52,7 @@ if result: print result # If it was a message parse error, just bounce it. - if result.find('MessageParseError'): + if result.find('MessageParseError') != -1: sys.exit(65) # EX_DATAERR from <sysexits.h> # Otherwise soft bounce, since it was probably a ReadConflictError. sys.exit(75) # EX_TEMPFAIL from <sysexits.h> Index: MMMailIn.py =================================================================== RCS file: /cvsroot/mailmanager/mailmanager/scripts/MMMailIn.py,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- MMMailIn.py 18 Feb 2005 11:39:19 -0000 1.9 +++ MMMailIn.py 21 Feb 2005 16:12:32 -0000 1.10 @@ -48,7 +48,7 @@ if result: print result # If it was a message parse error, just bounce it. - if result.find('MessageParseError'): + if result.find('MessageParseError') != -1: sys.exit(65) # EX_DATAERR from <sysexits.h> # Otherwise soft bounce, since it was probably a ReadConflictError. sys.exit(75) # EX_TEMPFAIL from <sysexits.h> |