gunnar: utils/testing test-nul-byte-issue3594.py, NONE, 1.1 test-invitation-forwarding-issue3192.py, 1.5, 1.6

cvs at kolab.org cvs at kolab.org
Tue Nov 24 14:55:03 CET 2009


Author: gunnar

Update of /kolabrepository/utils/testing
In directory doto:/tmp/cvs-serv5093

Modified Files:
	test-invitation-forwarding-issue3192.py 
Added Files:
	test-nul-byte-issue3594.py 
Log Message:
Add test for issue 3594.

--- NEW FILE: test-nul-byte-issue3594.py ---
#!/usr/bin/env python
"""NUL byte message trying to trigger kolab/issue3594

(Mail containing NUL byte not delivered, Kolab Filter does not report lmtp error)

Usage $progname <senderemailaddress> <recipientemailaddress>

This script is Free Software under the GNU General Public License >=v2.
thomas at intevation.de (initial 20091124)
"""

__version__="$Revision: 1.1 $"
# $Source: /kolabrepository/utils/testing/test-nul-byte-issue3594.py,v $

import sys
import os
import pwd
import smtplib

msg = r"""From: %s
Sender: %s
To: <%s>
Subject: kolab/issue3594
Date: Mon, 23 Feb 2009 15:16:14 +0100
Message-ID: <000001c995c1$49c4a2a0$140ba8c0 at invalid>
MIME-Version: 15B.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Test
"""

msg = msg + u'\0 Test';

fromaddr = sys.argv[1]
toaddr   = sys.argv[2]
smtpserver='localhost'
# if you set a loginname, a connection via TLS and authentification is tried
loginname = None
password  = None

server=smtplib.SMTP(smtpserver)
#server.set_debuglevel(1)

if loginname != None and password != None:
    server.starttls()
    server.login(loginname,password)

server.sendmail(fromaddr, [toaddr], msg % (fromaddr, fromaddr, toaddr))

server.quit()

Index: test-invitation-forwarding-issue3192.py
===================================================================
RCS file: /kolabrepository/utils/testing/test-invitation-forwarding-issue3192.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- test-invitation-forwarding-issue3192.py	27 Jul 2009 13:17:33 -0000	1.5
+++ test-invitation-forwarding-issue3192.py	24 Nov 2009 13:55:00 -0000	1.6
@@ -1,12 +1,12 @@
 #!/usr/bin/env python
-"""Forwarded iTIP invitation trying to trigger kolab/issue3192
+"""NUL byte message trying to trigger kolab/issue3594
 
-(Forwarding an invitation with Outlook failed)
+(Mail containing NUL byte not delivered, Kolab Filter does not report lmtp error)
 
 Usage $progname <recipientemailaddress>
 
 This script is Free Software under the GNU General Public License >=v2.
-thomas at intevation.de (initial 20090223)
+thomas at intevation.de (initial 20091124)
 """
 
 __version__="$Revision$"
@@ -19,7 +19,7 @@
 msg = r"""From: User1 <%(user1)s>
 Sender: User2 <%(user2)s>
 To: <%(user3)s>
-Subject: kolab/issue3192
+Subject: kolab/issue3594
 Date: Mon, 23 Feb 2009 15:16:14 +0100
 Message-ID: <000001c995c1$49c4a2a0$140ba8c0 at invalid>
 MIME-Version: 1.0
@@ -30,31 +30,7 @@
 Thread-Index: AcmVuGgcYR9Pp2HUSHalFjSgcQETAwAAAq8gAAIyVwA=
 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
 
-BEGIN:VCALENDAR
-PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
-VERSION:2.0
-METHOD:REQUEST
-BEGIN:VEVENT
-ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:%(user3)s
-DTSTART:20090223T140000Z
-DTEND:20090223T150000Z
-TRANSP:OPAQUE
-SEQUENCE:0
-UID:libkcal-910600374.601
-DTSTAMP:20090223T131221Z
-DESCRIPTION:Zeit: Montag\, 23. Februar 2009 15:00-16:00 (GMT+01:00)
-  Amsterdam\, Berlin\, Bern\, Rom\, Stockholm\,
-  Wien.\n\n*~*~*~*~*~*~*~*~*~*\n\n\n\n>_____________________________________
- ________\n>Von: 	User1  \n>Gesendet:	Montag\, 23. Februar 2009
-  14:12\n>An:	User1\; %(user2)s\n>Betreff:	kolab/issue3192\n>Zeit:
- 	Montag\, 23. Februar 2009 15:00-16:00 (GMT+01:00) Amsterdam\, Berlin\,
-  Bern\, Rom\, Stockholm\, Wien.\n>Ort:	\n>\n>\n
-SUMMARY:WG: kolab/issue3192
-PRIORITY:5
-X-MICROSOFT-CDO-IMPORTANCE:1
-CLASS:PUBLIC
-END:VEVENT
-END:VCALENDAR
+Test \0
 """
 
 # Kolab Server 2.2.1+:





More information about the commits mailing list