Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 20 April 2005 at 10:56am | IP Logged
|
|
|
Hi,
When we look at the properties of 'Envelope Object' we notice that most of them can be obtained even using 'Message Object'.
The only difference being that Envelope object works only with IMAP4 server whereas Message object works with both POP3 as well as IMAP4.
Is their any other difference? Is their any difference in performance or results when Message Object is used instead of Envelope Object with IMAP4 server?
Shantanu Biswas
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 20 April 2005 at 11:19am | IP Logged
|
|
|
Envelope is more compact than message headers. Typically, message headers section is 1-3 KBytes while envelope - 300-600 bytes.
Also, with Envelope you can get BodyStructure (when using IMAP4.RetrieveEnvelopesEx method and AlsoGetBodyStructure=True) which has no equivalent when downloading message headers.
On other hand, an envelope can contain only predefined message headers. You cannot examine custom headers with an envelope. If you need custom headers, you'll need to download message headers (you can get them in MessagePreview property of Envelope object if IMAP4.RetrieveEnvelopesEx called with AlsoGetMessagePreview=True).
And there is one thing which can be retrieved with Envelope only - date when message was received by IMAP4 server (Date property). Although you can get it from message headers by parsing latest Received header, it's easier to have this date already available with Envelope.Date property.
Regards,
Alex
|
Back to Top |
|
|