c# - MailKit Imap Get only messageId -


the title sums up. need messageid properties imap folder without downloading entire message.

... imailfolder inbox = imapclient.inbox; searchquery query = searchquery.all;  ilist<uniqueid> idslist = inbox.search(query);  foreach (var uid in idslist) {   mimemessage message = inbox.getmessage(uid);//this gets entire message     //but need .messageid, without getting other parts     if (message != null)     {        string messageid = message.messageid;     } } ... 

try instead:

var summaries = client.inbox.fetch (0, -1, messagesummaryitems.envelope); foreach (var message in summaries) {     console.writeline (message.envelope.messageid); } 

that should want.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -