Author |
|
Mhd Newbie
Joined: 18 February 2008 Location: United Kingdom
Online Status: Offline Posts: 38
|
Posted: 23 February 2008 at 11:51am | IP Logged
|
|
|
Hi, we receive a lot of emails, we afraid from keeping the MessagingIDs in text file, this text file will have a huge of messages IDs and we afraid that will affect on the performance when the system try to fetch a Message ID.
Is there away that periodaclly allow us to delete this file's content to make it less in size?
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 24 February 2008 at 3:57am | IP Logged
|
|
|
Apparently, you mean keeping message UIDs (not Message-IDs) to let your application to know which message is downloaded, which is not.
If your or any external application periodically deletes messages from the POP3 mailbox, you may implement cleaning message UIDs list. I.e. your application should receive list of UIDs from the mail server via Pop3.GetMessageUids method, then remove from the text file all UIDs which don't exist on the mail server. So, you'll get rid of obsolete UIDs.
Another way is to use a database instead of a text file. In such case, performance won't depend (almost) on number of stored UIDs because all database engines provide very efficient search algorithms.
Best regards,
Andrew
|
Back to Top |
|
|