Can you determine if email attachments are only from the email header

Can you determine if an email has attachments only from the email header.

If I call the Pop3 command "TOP 1 0", I can determine from the returned data if the message has attachments.

If this is not the case, you can find it with downloading the entire message and counting the attachments.

+3
source share
3 answers

POP3 does not provide information about the attachment to the header, so no, unfortunately, I'm sure you need to read and parse the entire message.

In any case, not all POP3 servers provide a command TOP.

+4

? , , Content-Type. , . , , , .

0

If the content type is "multipart / mixed", then there is an attachment in the element.

0
source

Source: https://habr.com/ru/post/1753627/


All Articles