I am using Python's email
package to analyze some emails. I need to get the total size of the email, including attachments. Is there a way to do this using the email package? The way I get the email.message.Message object is to do:
msg = email.message_from_file(inf)
I was hoping to find a method like msg.getSize()
that I could use.
Would it be correct to just use the byte size of the input file (inf
)?