Use SEEN and FLAGGED to manage mail states (processing, processed)

This commit is contained in:
Mathieu Agopian
2013-03-26 16:52:26 +01:00
parent 6a961f72ef
commit 82d1d31690
4 changed files with 35 additions and 26 deletions

View File

@@ -149,10 +149,12 @@ triggered.
Mails are flagged according to their state, in the ``process_messages`` method:
* unprocessed: MailBot hasn't started looking at this mail, it doesn't have the
``PROCESSING`` nor the ``PROCESSED`` flags
* ``PROCESSING``: MailBot is checking callbacks, and triggering them if needed
* ``PROCESSED``: MailBot is done with this mail, and won't process it anymore
* unread (unseen): mail to be processed by MailBot
* read (seen):
- starred (flagged): MailBot is checking callbacks, and triggering them if
needed, the mail is being processed
- not starred (unflagged): MailBot is done with this mail, and won't process
it anymore
Specifying rules