Lines Matching full:email
5 import email.message
15 class ErrorMessage(email.message.Message):
17 email.message.Message.__init__(self)
42 # If a re, it should contain at least a group (?P<email>...) which
43 # should refer to the email address. The re can also contain a group
49 # multiple email addresses. The second re is matched (not searched)
53 'error: (?P<reason>unresolvable): (?P<email>.+)',
55 '(?P<email>[^ \n].*)\n( .*\n)?'),
56 'remote execution.*\n.*rmail (?P<email>.+)',
58 ' +(?P<email>.*)\n(The following recipients did not receive your message:\n\n)?'),
59 '------- Failure Reasons --------\n\n(?P<reason>.*)\n(?P<email>.*)',
60 '^<(?P<email>.*)>:\n(?P<reason>.*)',
61 '^(?P<reason>User mailbox exceeds allowed size): (?P<email>.+)',
62 '^5\\d{2} <(?P<email>[^\n>]+)>\\.\\.\\. (?P<reason>.+)',
63 '^Original-Recipient: rfc822;(?P<email>.*)',
64 '^did not reach the following recipient\\(s\\):\n\n(?P<email>.*) on .*\n +(?P<reason>.*)',
65 '^ <(?P<email>[^\n>]+)> \\.\\.\\. (?P<reason>.*)',
66 '^Report on your message to: (?P<email>.*)\nReason: (?P<reason>.*)',
67 …'^Your message was not delivered to +(?P<email>.*)\n +for the following reason:\n +(?P<reason>.*)',
68 '^ was not +(?P<email>[^ \n].*?) *\n.*\n.*\n.*\n because:.*\n +(?P<reason>[^ \n].*?) *\n',
86 # if a string, "<>" is replaced by a copy of the email address.
119 emails.append(res.group('email'))
124 emails.append(res.group('email'))
139 email = emails[i]
140 exp = re.compile(re.escape(email).join(regexp.split('<>')), re.MULTILINE)
143 errors.append(' '.join((email.strip()+': '+res.group('reason')).split()))
150 for email in emails:
151 errors.append(' '.join((email.strip()+': '+reason).split()))
181 m = email.message_from_file(fp, _class=ErrorMessage)