Update of /cvsroot/mailman/mailman/Mailman/Bouncers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26770/Mailman/Bouncers
Modified Files:
DSN.py Qmail.py SimpleMatch.py
Log Message:
Recognize more bounces - DSN.py, Qmail.py and SimpleMatch.py
Index: DSN.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Bouncers/DSN.py,v
retrieving revision 2.14
retrieving revision 2.15
diff -u -d -r2.14 -r2.15
--- DSN.py 24 Mar 2006 18:13:46 -0000 2.14
+++ DSN.py 4 Apr 2006 23:14:34 -0000 2.15
@@ -71,6 +71,13 @@
# Note that params should already be unquoted.
addrs.extend(params)
break
+ else:
+ # MAS: This is a kludge, but SMTP-GATEWAY01.intra.home.dk
+ # has a final-recipient with an angle-addr and no
+ # address-type parameter at all. Non-compliant, but ...
+ for param in params:
+ if param.startswith('<') and param.endswith('>'):
+ addrs.append(param[1:-1])
# Uniquify
rtnaddrs = {}
for a in addrs:
Index: Qmail.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Bouncers/Qmail.py,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -d -r2.6 -r2.7
--- Qmail.py 1 Mar 2006 02:34:54 -0000 2.6
+++ Qmail.py 4 Apr 2006 23:14:34 -0000 2.7
@@ -32,7 +32,8 @@
# Other (non-standard?) intros have been observed in the wild.
introtags = [
'Hi. This is the',
- "We're sorry. There's a problem"
+ "We're sorry. There's a problem",
+ 'Check your send e-mail address.'
]
acre = re.compile(r'<(?P<addr>[^>]*)>:')
Index: SimpleMatch.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Bouncers/SimpleMatch.py,v
retrieving revision 2.18
retrieving revision 2.19
diff -u -d -r2.18 -r2.19
--- SimpleMatch.py 24 Mar 2006 18:13:46 -0000 2.18
+++ SimpleMatch.py 4 Apr 2006 23:14:34 -0000 2.19
@@ -89,11 +89,11 @@
_c('<(?P<addr>[^>]*)>:')),
# kundenserver.de
(_c('A message that you sent could not be delivered'),
- _c('^--- The header of the original'),
+ _c('^---'),
_c('<(?P<addr>[^>]*)>')),
# another kundenserver.de
(_c('A message that you sent could not be delivered'),
- _c('^--- The header of the original'),
+ _c('^---'),
_c('^(?P<addr>[EMAIL PROTECTED]@[^\s@:]+):')),
# thehartford.com
(_c('Delivery to the following recipients failed'),
@@ -119,6 +119,14 @@
(_c('^Invalid final delivery userid:'),
_c('^Original message follows.'),
_c('\s*(?P<addr>[EMAIL PROTECTED]@[EMAIL PROTECTED])\s*$')),
+ # [EMAIL PROTECTED]
+ (_c('------ Failed Recipients ------'),
+ _c('-------- Returned Mail --------'),
+ _c('<(?P<addr>[^>]*)>')),
+ # cynergycom.net
+ (_c('A message that you sent could not be delivered'),
+ _c('^---'),
+ _c('(?P<addr>[EMAIL PROTECTED]@[^\s@)]+)')),
# Next one goes here...
]
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org