#7 Use IMAP Annotations to determine the drafts folder

open
nobody
None
5
2012-09-15
2010-05-19
No

I suspect that Google uses IMAP annotations to define which folder is the drafts folder. Using this information could make gnome-gmail work without depending on the English name "Drafts". I.E. You could start checking whether *]/Drafts exists, check the annotation and if this folder doesn't exist or isn't the drafts folder scan the folder structure for the correct drafts folder. Once found store it in a configuration key and start from that folder the next time.

Discussion

  • Dave Steele

    Dave Steele - 2010-05-22

    It would be great for that to be the answer. I also need to find the message number, from the web perspective, so I can open the actual message, instead of just the Drafts folder. But, the failure I am getting from my quick and dirty imaplib test script suggests that the Gmail imap server does not support annotations. Do you know of any simple tools to inspect imap annotations?

     
  • Dave Steele

    Dave Steele - 2011-05-15

    Google has released a Gmail IMAP Extensions API (http://code.google.com/apis/gmail/imap/). The XLIST command looks like it provides the ability to detect the translated Drafts folder on the fly.

    On the other hand, I suspect that requiring translations for the thing to actually work has caused more translations to be submitted.

    The new API has provided the mapping from IMAP Message UID to Gmail web UID I mention below. Targeted for 1.8.

     

Log in to post a comment.