79
79
def get_message_addresses(message):
80
80
"""Get the origin and destination addresses of a message.
83
84
:return: A pair (from_email, to_emails), where from_email is the email
84
85
address in the From header, and to_emails a list of all the
85
86
addresses in the To, Cc, and Bcc headers.
89
90
for header in ['To', 'Cc', 'Bcc']:
91
94
to_emails = [ pair[1] for pair in
92
95
Utils.getaddresses(to_full_addresses) ]