Is there a way to search for and access chat logs?
ricburton opened this issue · 2 comments
ricburton commented
Hello,
Is it possible to do something along the lines of gmail.inbox.search('is:chat').count
to get chat history? From what I can see this isn't currently possible -- I was just curious if I was missing something.
Thanks for taking the time to maintain this gem!
ricburton commented
I found a way to do it. First you have to toggle the 'Show in IMAP' setting for Chats in the settings (https://mail.google.com/mail/u/0/#settings/labels) so it looks like this:
Then you can request the messages with a label-based request: gmail.label('[Gmail]/Chats')
bootstraponline commented
This issue was moved to gmailgem/gmail#95