Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (23 sloc) 0.729 kB
da367e4 @frog32 add mailman patch
frog32 authored
1 diff -crB Mailman_old/Bouncers/BouncerAPI.py Mailman/Bouncers/BouncerAPI.py
2 *** Mailman_old/Bouncers/BouncerAPI.py 2010-12-03 12:03:28.000000000 +0100
3 --- Mailman/Bouncers/BouncerAPI.py 2011-07-22 16:35:22.000000000 +0200
4 ***************
5 *** 24,29 ****
6 --- 24,30 ----
7 """
8
9 import sys
10 + import email
11
12 from Mailman.Logging.Syslog import syslog
13
14 ***************
15 *** 68,70 ****
16 --- 69,78 ----
17 # Return addrs even if it is Stop. BounceRunner needs this info.
18 return addrs
19 return []
20 +
21 + def ScanText(msg_as_text):
22 + mime = email.message_from_string(msg_as_text)
23 + addrs = ScanMessages(None, mime)
24 + if type(addrs) != type([]):
25 + return ''
26 + return ';'.join(addrs)
Something went wrong with that request. Please try again.