I am developing an email client in Python.
Is it possible to check if an email contains an attachement just from the e-mail header without downloading the whole E-Mail?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“attachment” is quite a broad term. Is an image for HTML message an attachment?
In general, you can try analyzing content-type header. If it’s multipart/mixed, most likely the message contains an attachment.