aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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):