diff options
| author | bwarsaw | 2000-09-24 00:22:41 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-09-24 00:22:41 +0000 |
| commit | 373b8c79bed3e9f25c51a9fceb0e87b80049d347 (patch) | |
| tree | 1c5dbb5dfe7fc96bfe7eef84695c9672e8a64e02 | |
| parent | 1970b29baf84bdea46ba791e4d6fa81d166cf86f (diff) | |
| download | mailman-373b8c79bed3e9f25c51a9fceb0e87b80049d347.tar.gz mailman-373b8c79bed3e9f25c51a9fceb0e87b80049d347.tar.zst mailman-373b8c79bed3e9f25c51a9fceb0e87b80049d347.zip | |
| -rw-r--r-- | Mailman/Archiver/pipermail.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py index 211485501..cccf3e94d 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -21,12 +21,9 @@ __version__ = '0.05 (Mailman edition)' VERSION = __version__ CACHESIZE = 100 # Number of slots in the cache - -class FastUnixMailbox(mailbox.UnixMailbox): - _rx_fromline = re.compile(mailbox.UnixMailbox._fromlinepattern) +# Use our optimized version, which will probably be included in Python 2.0 +from Mailman.Mailbox import Mailbox - def _isrealfromline(self, line): - return FastUnixMailbox._rx_fromline.match(line) msgid_pat = re.compile(r'(<.*>)') @@ -507,7 +504,7 @@ class T: # object will then be archived. def processUnixMailbox(self, input, articleClass = Article): - mbox = FastUnixMailbox(input) + mbox = Mailbox(input) while 1: m = mbox.next() if not m: |
