@@ -49,11 +49,11 @@ def _c(pattern):
4949 # robanal.demon.co.uk
5050 (_c ('this message was created automatically by mail delivery software' ),
5151 _c ('original message follows' ),
52- _c ('rcpt to:\s*<(?P<addr>[^>]*)>' )),
52+ _c (r 'rcpt to:\s*<(?P<addr>[^>]*)>' )),
5353 # s1.com (InterScan E-Mail VirusWall NT ???)
5454 (_c ('message from interscan e-mail viruswall nt' ),
5555 _c ('end of message' ),
56- _c ('rcpt to:\s*<(?P<addr>[^>]*)>' )),
56+ _c (r 'rcpt to:\s*<(?P<addr>[^>]*)>' )),
5757 # Smail
5858 (_c ('failed addresses follow:' ),
5959 _c ('message text follows:' ),
@@ -65,35 +65,35 @@ def _c(pattern):
6565 # turbosport.com runs something called `MDaemon 3.5.2' ???
6666 (_c ('The following addresses did NOT receive a copy of your message:' ),
6767 _c ('--- Session Transcript ---' ),
68- _c ('[>]\s*(?P<addr>.*)$' )),
68+ _c (r '[>]\s*(?P<addr>.*)$' )),
6969 # usa.net
70- (_c ('Intended recipient:\s*(?P<addr>.*)$' ),
70+ (_c (r 'Intended recipient:\s*(?P<addr>.*)$' ),
7171 _c ('--------RETURNED MAIL FOLLOWS--------' ),
72- _c ('Intended recipient:\s*(?P<addr>.*)$' )),
72+ _c (r 'Intended recipient:\s*(?P<addr>.*)$' )),
7373 # hotpop.com
74- (_c ('Undeliverable Address:\s*(?P<addr>.*)$' ),
74+ (_c (r 'Undeliverable Address:\s*(?P<addr>.*)$' ),
7575 _c ('Original message attached' ),
76- _c ('Undeliverable Address:\s*(?P<addr>.*)$' )),
76+ _c (r 'Undeliverable Address:\s*(?P<addr>.*)$' )),
7777 # Another demon.co.uk format
7878 (_c ('This message was created automatically by mail delivery' ),
7979 _c ('^---- START OF RETURNED MESSAGE ----' ),
8080 _c ("addressed to '(?P<addr>[^']*)'" )),
8181 # Prodigy.net full mailbox
8282 (_c ("User's mailbox is full:" ),
8383 _c ('Unable to deliver mail.' ),
84- _c ("User's mailbox is full:\s*<(?P<addr>[^>]*)>" )),
84+ _c (r "User's mailbox is full:\s*<(?P<addr>[^>]*)>" )),
8585 # Microsoft SMTPSVC
8686 (_c ('The email below could not be delivered to the following user:' ),
8787 _c ('Old message:' ),
8888 _c ('<(?P<addr>[^>]*)>' )),
8989 # Yahoo on behalf of other domains like sbcglobal.net
90- (_c ('Unable to deliver message to the following address\(es\)\.' ),
91- _c ('--- Original message follows\.' ),
90+ (_c (r 'Unable to deliver message to the following address\(es\)\.' ),
91+ _c (r '--- Original message follows\.' ),
9292 _c ('<(?P<addr>[^>]*)>:' )),
9393 # googlemail.com
9494 (_c ('Delivery to the following recipient(s)? failed' ),
9595 _c ('----- Original message -----' ),
96- _c ('^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
96+ _c (r '^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
9797 # kundenserver.de, mxlogic.net
9898 (_c ('A message that you( have)? sent could not be delivered' ),
9999 _c ('^---' ),
@@ -108,39 +108,39 @@ def _c(pattern):
108108 # unique to stop on, so stop on the first line of at least 3 characters
109109 # that doesn't start with 'D' (to not stop immediately) and has no '@'.
110110 _c ('^[^D][^@]{2,}$' ),
111- _c ('^\s*(. )?(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
111+ _c (r '^\s*(. )?(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
112112 # and another thehartfod.com/hartfordlife.com
113- (_c ('^Your message\s*$' ),
113+ (_c (r '^Your message\s*$' ),
114114 _c ('^because:' ),
115- _c ('^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
115+ _c (r '^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
116116 # kviv.be (InterScan NT)
117117 (_c ('^Unable to deliver message to' ),
118118 _c (r'\*+\s+End of message\s+\*+' ),
119119 _c ('<(?P<addr>[^>]*)>' )),
120120 # earthlink.net supported domains
121121 (_c ('^Sorry, unable to deliver your message to' ),
122122 _c ('^A copy of the original message' ),
123- _c ('\s*(?P<addr>[^\s@]+@[^\s@]+)\s+' )),
123+ _c (r '\s*(?P<addr>[^\s@]+@[^\s@]+)\s+' )),
124124 # ademe.fr
125125 (_c ('^A message could not be delivered to:' ),
126126 _c ('^Subject:' ),
127- _c ('^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
127+ _c (r '^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
128128 # andrew.ac.jp
129129 (_c ('^Invalid final delivery userid:' ),
130130 _c ('^Original message follows.' ),
131- _c ('\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
131+ _c (r '\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
132132 # E500_SMTP_Mail_Service@lerctr.org and similar
133133 (_c ('---- Failed Recipients ----' ),
134134 _c (' Mail ----' ),
135135 _c ('<(?P<addr>[^>]*)>' )),
136136 # cynergycom.net
137137 (_c ('A message that you sent could not be delivered' ),
138138 _c ('^---' ),
139- _c ('(?P<addr>[^\s@]+@[^\s@)]+)' )),
139+ _c (r '(?P<addr>[^\s@]+@[^\s@)]+)' )),
140140 # LSMTP for Windows
141- (_c ('^--> Error description:\s*$' ),
141+ (_c (r '^--> Error description:\s*$' ),
142142 _c ('^Error-End:' ),
143- _c ('^Error-for:\s+(?P<addr>[^\s@]+@[^\s@]+)' )),
143+ _c (r '^Error-for:\s+(?P<addr>[^\s@]+@[^\s@]+)' )),
144144 # Qmail with a tri-language intro beginning in spanish
145145 (_c ('Your message could not be delivered' ),
146146 _c ('^-' ),
@@ -152,49 +152,49 @@ def _c(pattern):
152152 # dadoservice.it
153153 (_c ('Your message has encountered delivery problems' ),
154154 _c ('Your message reads' ),
155- _c ('addressed to\s*(?P<addr>[^\s@]+@[^\s@)]+)' )),
155+ _c (r 'addressed to\s*(?P<addr>[^\s@]+@[^\s@)]+)' )),
156156 # gomaps.com
157157 (_c ('Did not reach the following recipient' ),
158158 _c ('^\s*$' ),
159- _c ('\s(?P<addr>[^\s@]+@[^\s@]+)' )),
159+ _c (r '\s(?P<addr>[^\s@]+@[^\s@]+)' )),
160160 # EYOU MTA SYSTEM
161161 (_c ('This is the deliver program at' ),
162162 _c ('^-' ),
163163 _c ('^(?P<addr>[^\s@]+@[^\s@<>]+)' )),
164164 # A non-standard qmail at ieo.it
165165 (_c ('this is the email server at' ),
166166 _c ('^-' ),
167- _c ('\s(?P<addr>[^\s@]+@[^\s@]+)[\s,]' )),
167+ _c (r '\s(?P<addr>[^\s@]+@[^\s@]+)[\s,]' )),
168168 # pla.net.py (MDaemon.PRO ?)
169169 (_c ('- no such user here' ),
170170 _c ('There is no user' ),
171- _c ('^(?P<addr>[^\s@]+@[^\s@]+)\s' )),
171+ _c (r '^(?P<addr>[^\s@]+@[^\s@]+)\s' )),
172172 # fastdnsservers.com
173173 (_c ('The following recipient.*could not be reached' ),
174174 _c ('bogus stop pattern' ),
175- _c ('^(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
175+ _c (r '^(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
176176 # lttf.com
177177 (_c ('Could not deliver message to' ),
178178 _c ('^\s*--' ),
179- _c ('^Failed Recipient:\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
179+ _c (r '^Failed Recipient:\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
180180 # uci.edu
181181 (_c ('--------Message not delivered' ),
182182 _c ('--------Error Detail' ),
183- _c ('^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
183+ _c (r '^\s*(?P<addr>[^\s@]+@[^\s@]+)\s*$' )),
184184 # Dovecot LDA Over quota MDN (bogus - should be DSN).
185185 (_c ('^Your message' ),
186186 _c ('^Reporting' ),
187187 _c (
188- 'Your message to (?P<addr>[^\s@]+@[^\s@]+) was automatically rejected'
188+ r 'Your message to (?P<addr>[^\s@]+@[^\s@]+) was automatically rejected'
189189 )),
190190 # mail.ru
191191 (_c ('A message that you sent was rejected' ),
192192 _c ('This is a copy of your message' ),
193- _c ('\s(?P<addr>[^\s@]+@[^\s@]+)' )),
193+ _c (r '\s(?P<addr>[^\s@]+@[^\s@]+)' )),
194194 # MailEnable
195195 (_c ('Message could not be delivered to some recipients.' ),
196196 _c ('Message headers follow' ),
197- _c ('Recipient: \[SMTP:(?P<addr>[^\s@]+@[^\s@]+)\]' )),
197+ _c (r 'Recipient: \[SMTP:(?P<addr>[^\s@]+@[^\s@]+)\]' )),
198198 # This one is from Yahoo but dosen't fit the yahoo recognizer format
199199 (_c (r'wasn\'t able to deliver the following message' ),
200200 _c (r'---Below this line is a copy of the message.' ),
0 commit comments