steffen: utils/testing send_filtertest_emails.py,1.11,1.12
cvs at kolab.org
cvs at kolab.org
Fri Mar 16 02:50:27 CET 2007
Author: steffen
Update of /kolabrepository/utils/testing
In directory doto:/tmp/cvs-serv32186
Modified Files:
send_filtertest_emails.py
Log Message:
make sure we are all using the same test script
Index: send_filtertest_emails.py
===================================================================
RCS file: /kolabrepository/utils/testing/send_filtertest_emails.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- send_filtertest_emails.py 30 Nov 2005 02:53:04 -0000 1.11
+++ send_filtertest_emails.py 16 Mar 2007 01:50:24 -0000 1.12
@@ -49,11 +49,11 @@
if loginname != None and password != None:
server.starttls()
server.login(loginname,password)
- #server.set_debuglevel(1)
+ server.set_debuglevel(1)
server.sendmail(envelope_from,envelope_to,msg)
- #sys.stdout.write(".")
- #sys.stdout.flush()
+ sys.stdout.write(".")
+ sys.stdout.flush()
server.quit()
except:
@@ -216,6 +216,12 @@
# issue783 (envelope header from check has problems with mailinglists)
send_mail("x-commits-bounces-+y=malinglist.org at example.org", envelope_to,
header_from, header_to, 12,
+ smtp_host = smtp_host, smtp_port = smtp_port,
+ text = "Kolab filter testmail.\nExpected result: delivery, from header rewritten")
+
+ # 12.1: delivered, no Invalid From: header in postfix log:
+ send_mail("blah at example.org", envelope_to,
+ "\"\\\\blah\\\"\" <steffen.hansen at sulaco.hrhansen.dk>", header_to, 12.1,
smtp_host = smtp_host, smtp_port = smtp_port,
text = "Kolab filter testmail.\nExpected result: delivery, from header rewritten")
More information about the commits
mailing list