Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: QuickDownloadMessages / best practice Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ssr92
Newbie
Newbie


Joined: 31 January 2008
Location: France
Online Status: Offline
Posts: 2
Posted: 31 January 2008 at 11:24pm | IP Logged Quote ssr92

Hi,
Is it possible to set the port number with this method (QuickDownloadMessages) and also the sslMode?

By the way, what would be the best approach to perform this task :

I need to retreive the messages from the pop account and fill up a html table where I will display the date, sender, subject of each mail.
By clicking on a line, I need to load the entire message and display it. (like a webmail)

I think to use the index to perform the last task but I m not sure it will be accuracy if some new messages are available.

So do I have to convert the uidmessage with the getMessageIndexFromUid?


any help?

Stan

Back to Top View ssr92's Profile Search for other posts by ssr92
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 01 February 2008 at 6:38am | IP Logged Quote Andrew

Quote:
Is it possible to set the port number with this method (QuickDownloadMessages) and also the sslMode?

By the way, what would be the best approach to perform this task :

I need to retrieve the messages from the pop account and fill up a html table where I will display the date, sender, subject of each mail. By clicking on a line, I need to load the entire message and display it. (like a webmail)


QuickDownloadMessages method is intended for quick and simple message download with minimum parameters and default connection settings.

If you need to specify other port number, auth type, etc. you should use DownloadEntireMessages method instead.

Example is available in the method description.

Quote:
I think to use the index to perform the last task but I m not sure it will be accuracy if some new messages are available.

So do I have to convert the uidmessage with the getMessageIndexFromUid?


If your application doesn't keep POP3/IMAP connection alive (it's usual behavior for a web application) between getting message list and retrieving certain messages, using indexes is not liable solution.

Once your application connects to a POP3 mailbox, it takes a snapshot of current mailbox state and it's safe to use indexes until the connection gets reestablished i.e. a new snapshot (with probably shifted indexes) gets taken. The only reliable solution is using UIDs.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

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