Can I know if a message have attachments? - WeOnlyDo Discussion board

Can I know if a message have attachments? (General questions)

by Offshore Tech, Friday, September 09, 2005, 19:01 (7014 days ago)

Hello,

I'm testing the POP3 component and I need to know which messages have attachments when I use the method:

oPOP3.Messages.GetAllHeaders

...without download all messages.

Thank's from Barcelona (Spain)

Gerard Llort
Offshore Tech S.L.
www.offshoretech.net

Re: Can I know if a message have attachments?

by wodSupport, Friday, September 09, 2005, 19:59 (7014 days ago) @ Offshore Tech

Gerald,

generaly, you cannot. You can assume that if content-type is multipart/mixed that there are attachments, but this doesn't have to be true in all cases. You really need to download full message to be sure.