diff options
author | tkikuchi <> | 2005-11-27 12:21:56 +0000 |
---|---|---|
committer | tkikuchi <> | 2005-11-27 12:21:56 +0000 |
commit | 5132868860f4185cdc54b12b8306b94fda084572 (patch) | |
tree | d82886ad04d0bd80d8cb0c7c618ee562b37d7e11 /Mailman | |
parent | 224d6799d7fc61c97f4c1b061f9e60af119c7f70 (diff) | |
download | mailman2-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.py | 10 |
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): |