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?
Try IMAP4.fetch(message_set, "BODYSTRUCTURE")
Read the RFC3501 for details about the FETCH BODYSTRUCTURE response.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With