I’ve created a small script with Zend_Mail_Storage_Imap to interact with GMail. Everything works fine so far, but I can’t remove my chats?
So I tried moving them to ‘Bin’:
REQUEST: TAG18 COPY 1,2,3,4,5,6,7,8,9,10 "[Google Mail]/Bin"
RESPONSE: TAG18 NO [ALERT] Chats can only exist in the Chat folder (Failure)
Didn’t work obviously…
Than I tried setting the deleted flag on them:
REQUEST: TAG19 STORE 1,2,3,4,5,6,7,8,9,10 +FLAGS (\Deleted)
RESPONSE: TAG19 NO STORE attempt on READ-ONLY folder (Failure)
Didn’t work out either.
What could I do to move the chats to the Trash? I can do it manually within the GMail interface, but I’d like to do it automatically…
Thanks!
Searching around you see that other programmers have encountered the same issue: that the chats label appears read-only. All the search results are other programmers providing their own feedback on the problem and confirming that the chats label is indeed read-only. Frustratingly, I could locate no official documentation from Google specifically on the subject.
The closest “official” post I could find on the subject was from a comment made by Googler Brandon Long on a Google+ post: Gmail Liberates Recorded Chat Logs Via IMAP – Data Liberation. Emphasis added.
Comment on Sep 15, 2011