Author |
|
ssr92 Newbie
Joined: 31 January 2008 Location: France
Online Status: Offline Posts: 2
|
Posted: 31 January 2008 at 11:24pm | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 01 February 2008 at 6:38am | IP Logged
|
|
|
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 |
|
|