From 9ca90e0d63e4f375ce14fac2e9cccf6df321dfaf Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 12 Jan 1999 23:34:32 +0000 Subject: More import games. Make sure we get an rfc822.Message with our new getallrecipients() method. --- Mailman/Message.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Mailman/Message.py') 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: -- cgit v1.2.3-70-g09d2