|
Hello. Trying to work with Rebex Imap, I was surprised not finding easy way to get mail message lightweight objects. I want to get from server side some info about emails without donwload all heavy emails data. The lightweight data I need are subject, received date, "is seen" flag, and priority. ImapMessageInfo class contains most of needed items, but priority. MailMessage class contains priority, but does not contains "is seen" and some others flag. Besides, if I'm understand correct, MailMessage is "heavy" object containing all data. So, what is the easiest way to get email "lightweight" info list including priority, using Rebex IMAP? Thank you in advance. |
|
Hello, You are understanding it right - You can even control the "lightness" of the object by setting The The
Please note that this only works if Thank you for the fast and clear answer. Good support style.
(31 May '11, 17:51)
_Oz_
|
|
Small adjustments ImapMessageInfo has no msg.Headers.Headers member (but MailMessage has :) ) So, more correct and compilable code listed below
Oh, it was a mistake. Instead of
(01 Jun '11, 14:18)
Lukas Matyska ♦♦
|
|
You have to get the I'd recommended you to retrieve or search your messages first as
*Retrieving MessageInfo by SequenceNumber can be faster than getting by UniqueId, but you cannot use SequenceNumber if you are deleting messages in the same session. If you cannot use the procedure described above, you can try to find a
Be aware that searching by MessageId will be probably more time-consuming than retrieving messages by UniqueId or SequenceNumber. |