I only need header and metadata of attachments from Gmail, I don't want to get email body or the content of the attachments, because they may be very big and I don't need them.
Is there a way to do so through AE.Net.Mail or gmail api? It seems only come with one option of of headers only, which will not fetch the attachment metadata for me.
MailMessage[] GetMessages(string startUID, string endUID, bool headersonly = true, bool setseen = false);
Eventually, I gave up on AE.Net.Mail and switched to Gmail API instead. And I am able to get attachment meta data from the Message Get Request, without getting the actual attachment file.
https://developers.google.com/gmail/api/v1/reference/users/messages/get