Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9220759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:25:25+00:00 2026-06-18T03:25:25+00:00

I’ve created a small script with Zend_Mail_Storage_Imap to interact with GMail. Everything works fine

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:25:27+00:00Added an answer on June 18, 2026 at 3:25 am

    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

    Yes, currently chats are only displayed in the Chats folder. The Chats
    folder is also currently read-only
    , you can only export chats from
    there… though you can then upload those chats to another folder
    usually without issue. There are some technological reasons for this,
    chats have a bunch of special handling in the Gmail server, and are
    not ‘real’ email messages. This means that in some cases, a chat
    message may violate the IMAP spec in terms of message immutability. It
    was considered safer to silo them only in the Chats folder, which
    could ultimately be unsubscribed from or hidden entirely from IMAP if
    a user encounters problems with their client. We have fixed a number
    of bugs with chat exposure, hence the reason this has launched, but
    we’re still a bit leery of potentially breaking things. Historical
    note, chats were exposed up until the last couple weeks before the
    initial IMAP launch, but the large number of bugs made us decide to
    just hide them. The DLF team has been instrumental in working to
    expose them for your liberation pleasure.

    Note you can access the full list of labels on any message (chat or
    otherwise) by using the X-GM-EXT1 extension,
    http://code.google.com/apis/gmail/imap/, and using the X-GM-LABELS
    message fetch attribute

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small JavaScript validation script that validates inputs based on Regex. I
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have an autohotkey script which looks up a word in a bilingual dictionary
This could be a duplicate question, but I have no idea what search terms
I have an array which has BIG numbers and small numbers in it. I
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.