Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: Difference between Message and Envelope Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 20 April 2005 at 10:56am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 20 April 2005 at 11:19am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide