IMail |
IEnumerable<ChildDocument> GetMessagesByNodeId( List<long> childNodeIds )
Do NOT mix use of methods GetNextMessage and GetMessagesByNodeId(ListInt64) using the same IMailStoreExtractor instance.
The email object's native data is contained in the DocumentBytes property.
This method is only useful if the user has extracted the mail store's message objects once before and has stored the NodeId field. Individual message objects can then be exported from the mail store container at a later date using the NodeId as the argument to this method.
For Outlook PST/OST mail stores the node ID is the internal node ID of the PST/OST mail store. For all other supported mail store formats NodeId is the same as Index, that is, all message node IDs are zero-offset and sequential. This method is not supported by format OutlookForMacMailbox.
NOTE: For MBOX type mail store containers if the input argument node ID list is not in ascending order, then the order the message objects are returned by the enumerator will be different than the order of childNodeIds list, so check the NodeId of the returned message object(s).