File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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
41432004-07-21 0.7.6
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class node. Any parts of other types are each stored in separate files
7474an exception, the original message is bounced back to the sender with the
7575explanatory 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
You can’t perform that action at this time.
0 commit comments