Author |
|
frantisek_josef Newbie
Joined: 14 January 2008 Location: Czech Republic
Online Status: Offline Posts: 1
|
Posted: 14 January 2008 at 6:04am | IP Logged
|
|
|
Hello,
I need to download the headers of the messages that has been received after a particular date? I don't want to download all the headers. Is it possible?
My idea was that the messages are sorted by date (than it would be possible to download them from the last index and interrupt if a too old header downloaded) but it seems not always to be true.
Thank you in advance.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 15 January 2008 at 11:44pm | IP Logged
|
|
|
The approach you described will work with certain mail servers only. There is no reliable solution for this except receiving all headers because not all mail servers return messages in chronological order. If you need this to be implemented for a certain mail server only, you may implement the described approach.
It's possible to implement a reliable solution using IMAP protocol. If it's an option for you to use IMAP, you may get necessary message UIDs via IMAP4.Search method.
Best regards,
Andrew
|
Back to Top |
|
|