I used GAE-mail to receive email, in the email handle, I am able to received body, sender, subject etc from mail_message.
mail_message = mail.InboundEmailMessage(data)
# supported attributes is=>{
'amp_html',
'attachments',
'bcc',
'body',
'cc',
'headers',
'html',
'reply_to',
'sender',
'subject',
'to'
}
however, I want some additional attributes, email_size and sentdate, what is the best practice to get these two attributes?
thanks in advance
date returns the message date.
getsizeof
method instead of len
. See this example
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.