Let’s have a program that checks an email mailbox and then “processes” the messages contained there. (For this question it doesn’t really matter what it actually does with the message). The program will run once per hour and can easily handle the volume of new messages and there is no penalty for processing a message twice. Let’s say it will be using the IMAP protocol and can perform any of the standard functions that an email application can do.
What mechanism would you recommend for processing the email?
- Mark as read – the program marks a message as read after processing it.
- Unmodified mailbox – the program doesn’t modify the mailbox at all.
- Something else – some other method I haven’t thought of yet.
Suggestions welcome.
4
The best option will depend on what else you plan to do with the mailbox. If the answer is “nothing” then you should have your program delete mails from the mailbox. If the answer is “something” then your program should modify the mailbox in a way that plays nicely with the other clients that will be accessing the mailbox.
- Delete the mail
- Mark as read
- Move to a folder
- Apply an IMAP keyword