Skip to content

Commit d551bf4

Browse files
author
Richard Jones
committed
merge from maint-0-7
1 parent c7fe1ae commit d551bf4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Fixed:
3636
- removed references to py2.3+ boolean values (sf bug 995682)
3737
- fix static file path normalisation in security check (thanks David Linke)
3838
- less specific messages for login failures (thanks Chris Withers)
39+
- Reject raised against email messages should result in email rejection, not
40+
discarding of the message
3941

4042

4143
2004-07-21 0.7.6

roundup/mailgw.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class node. Any parts of other types are each stored in separate files
7474
an exception, the original message is bounced back to the sender with the
7575
explanatory message given in the exception.
7676
77-
$Id: mailgw.py,v 1.153 2004-07-28 02:29:45 richard Exp $
77+
$Id: mailgw.py,v 1.154 2004-09-07 10:40:15 richard Exp $
7878
"""
7979
__docformat__ = 'restructuredtext'
8080

@@ -905,9 +905,11 @@ def handle_message(self, message):
905905
recipients=recipients, date=date.Date('.'),
906906
summary=summary, content=content, files=files,
907907
messageid=messageid, inreplyto=inreplyto, **msg_props)
908-
except exceptions.Reject:
909-
pass
910-
else:
908+
except exceptions.Reject, error:
909+
raise MailUsageError, '''
910+
Mail message was rejected by a detector.
911+
%s
912+
'''%error
911913
# attach the message to the node
912914
if nodeid:
913915
# add the message to the node's list

0 commit comments

Comments
 (0)