summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-01-12 23:34:32 +0000
committerbwarsaw1999-01-12 23:34:32 +0000
commit9ca90e0d63e4f375ce14fac2e9cccf6df321dfaf (patch)
tree707e862d3dafe46e2b0bcd4774099b205ef2c0fb
parent793e2b84ab4df875d5e34d621c13193e6b4bdb78 (diff)
downloadmailman-9ca90e0d63e4f375ce14fac2e9cccf6df321dfaf.tar.gz
mailman-9ca90e0d63e4f375ce14fac2e9cccf6df321dfaf.tar.zst
mailman-9ca90e0d63e4f375ce14fac2e9cccf6df321dfaf.zip
-rw-r--r--Mailman/Message.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py
index f694b343d..bb7d90809 100644
--- a/Mailman/Message.py
+++ b/Mailman/Message.py
@@ -19,7 +19,16 @@
import sys
-import rfc822, string, time
+import string
+import time
+
+# get our hacked copy of Python 1.5.2's rfc822.py
+import rfc822
+try:
+ rfc822.Message.getallrecipients
+except AttributeError:
+ # the standard module doesn't have our enhancement
+ from Mailman.pythonlib import rfc822
# Utility functions 2 of these classes use: