k9mail/k-9 — pull request #142 by dzan (2012-04-29 10:00:12+00:00)
Title: Imap keywords

Hi,

Can someone review this? I'm not at all familiar with the IMAPStore but some ctrl-f 'ing and diagonal reading of the code made me believe these changes might be enough to support IMAP keywords. I could be terribly wrong of course.

Custom flags will get a prefix in the database and when used internally. I chose USER_ for that prefix but it could be easily changed.

The Flag enum changed into a class now. There were some concerns about the overhead of those objects but in Java an enum is an object anyway. I implemented the class to resemble the Java enum implementation. The predefined Flags will only be created once at runtime ( like enum's ) so I think it will not prove a noticable overhead.

Best regards,
dzan

PS. My branchname said "back-end" but I did the whole thing so it's wrong.