Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: How to create Messages collection Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
namtuk
Newbie
Newbie


Joined: 18 December 2006
Location: France
Online Status: Offline
Posts: 35
Posted: 21 November 2007 at 6:49am | IP Logged Quote namtuk

Dear,

As my application use POP3 and IMAP4 mailbox i need to get all messages in the same format.
My code connect to POP3 and return the Messages collection, then connect to IMAP4 and return the Envelopes collection. So how to convert the Envelopes into Messages collection (or Messages into Envelopes)?

Regards,
Jean-claude
Back to Top View namtuk's Profile Search for other posts by namtuk
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 22 November 2007 at 8:29am | IP Logged Quote Alex

IMAP4 object always returns multiple IMAP4 responses as Envelopes collection.

You should get envelopes using RetrieveEnvelopesEx method with AlsoGetMessagePreview parameter
set to True. After that, use Envelope.MessagePreview property to get Message object for the corresponding envelope.

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