where do I begin?
I can’t seem to find any definitive documentation. (I am probably looking in the wrong places….).
I want to be able to edit IMAP keywords (for tagging purposes) for email messages.
I have some really noobie questions;
how are they added?
are keywords applied directly to message headers (if so, what is the syntax), or is there some other kind of imap voodoo at work…
thanks in advance.
IMAP custom keywords are applied to messages via the
STOREcommand. Once added, they’ll be returned when you do aFETCHforFLAGSand they’ll be searchable viaSEARCH KEYWORD:Note that when you create a new keyword via
STORE, the server should respond with an updated list of all the system and user flags defined on the mailbox:Some servers won’t allow you to create used-defined keywords. They’ll let you know this by not including
\*at the end of thePERMANENTFLAGSlist when youSELECTthe mailbox.The
STOREcommand allows you to add keywords to a message’s existing set (via+FLAGS), remove them (-FLAGS), or replace the set with an entirely new set (FLAGS).