def gmail_message(): received_date = datetime.datetime.utcfromtimestamp(10**9 + 1) new_msg = Message() new_msg.to_addr = ((u'Somebody', u'*****@*****.**'), (u'Somebody', u'*****@*****.**'),) new_msg.thread_id = 1 new_msg.size = 22 new_msg.is_draft = False new_msg.decode_error = False new_msg.sanitized_body = 'Are you there?' new_msg.snippet = 'Are you there?' new_msg.received_date = received_date return new_msg
def message(): received_date = datetime.datetime.utcfromtimestamp(10**9 + 1) new_msg = Message() new_msg.from_addr = (('Some Dude', '*****@*****.**'),) new_msg.to_addr = (('Somebody Else', '*****@*****.**'),) new_msg.cc_addr = (('A Bystander', '*****@*****.**'),) new_msg.bcc_addr = (('The NSA', '*****@*****.**'),) new_msg.thread_id = 1 new_msg.size = 22 new_msg.is_draft = False new_msg.decode_error = False new_msg.sanitized_body = 'Are you there?' new_msg.snippet = 'Are you there?' new_msg.received_date = received_date return new_msg