aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authortkikuchi <>2005-11-27 12:21:56 +0000
committertkikuchi <>2005-11-27 12:21:56 +0000
commit5132868860f4185cdc54b12b8306b94fda084572 (patch)
treed82886ad04d0bd80d8cb0c7c618ee562b37d7e11 /Mailman
parent224d6799d7fc61c97f4c1b061f9e60af119c7f70 (diff)
downloadmailman2-5132868860f4185cdc54b12b8306b94fda084572.tar.gz
mailman2-5132868860f4185cdc54b12b8306b94fda084572.tar.xz
mailman2-5132868860f4185cdc54b12b8306b94fda084572.zip
email.Message.Message.get_filename() is wrapped because error in this
function may stop regular delivery.
Diffstat (limited to '')
-rw-r--r--Mailman/Message.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py
index d5fd30e7..227f3313 100644
--- a/Mailman/Message.py
+++ b/Mailman/Message.py
@@ -188,6 +188,16 @@ class Message(email.Message.Message):
authors.append(address)
return authors
+ def get_filename(self, failobj=None):
+ """Some MUA have bugs in RFC2231 filename encoding and cause
+ mailman to stop delivery in Scrubber.py (called from ToDigest.py).
+ """
+ try:
+ filename = email.Message.Message.get_filename(self, failobj)
+ return filename
+ except (UnicodeDecodeError, UnicodeError, ValueError):
+ return failobj
+
class UserNotification(Message):