summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 253bf2b)
raw | patch | inline | side by side (parent: 253bf2b)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Jun 2003 23:34:52 +0000 (23:34 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Jun 2003 23:34:52 +0000 (23:34 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1733 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 52f11500a3ad2e38b70f6f3f7fa4d44cb22984c6..f40d01283d84c6830a2fca4081a7919d1dcd3a81 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
2003-??-?? 0.6.0??
- plugged cross-site-scripting hole (thanks Jeff Epler)
+- handle deprecation of FCNTL in python2.2+ (sf bug 756756)
+- handle missing Subject: line (sf bug 755331)
2003-06-10 0.6.0b3
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index e942fe81eafe7b0d6bfd8315bd53bd137b1e619c..1e2448599ad14545c80bb6d4b02b90b77b94284a 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
an exception, the original message is bounced back to the sender with the
explanatory message given in the exception.
-$Id: mailgw.py,v 1.122 2003-06-18 23:31:52 richard Exp $
+$Id: mailgw.py,v 1.123 2003-06-18 23:34:52 richard Exp $
'''
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
# handle the subject line
subject = message.getheader('subject', '')
+ if not subject:
+ raise MailUsageError, '''
+Emails to Roundup trackers must include a Subject: line!
+'''
+
if subject.strip().lower() == 'help':
raise MailUsageHelp