My use case is that I sometimes fail to reply to messages say sent to me via sales#example.com. Hence dropping valuable business development!
I need a way to create a filter to show all the messages missing replies.
I can't seem do this from within Gmail's filter dialog. :(
I have a bit of a stare at https://developers.google.com/gmail/api/v1/reference/users/threads/list aka the new Gmail API and I don't see a way of doing this.
Do you have any ideas? Should I be using IMAP?
you stared at the right place. you can use the gmail-api to fetch all threads:
GET https://www.googleapis.com/gmail/v1/users/me/threads?q=to:sales#example.com
then you'll have to fetch each thread:
GET https://www.googleapis.com/gmail/v1/users/me/threads/<thread-id>?fields=messages
now this will get you the list of messages. if the size is 1, then it's unanswered.
Related
What are the details of your problem?
Until recently, in my own web application, I used the Gmail API to retrieve Google Chat messages as follows.
I was able to get it from "Label: CHAT" by executing as follows.
(1) Acquisition of thread ID belonging to CHAT label
https://gmail.googleapis.com/gmail/v1/users/me/messages?labelIds=CHAT
(2) Get message information from thread ID
https://gmail.googleapis.com/gmail/v1/users/me/threads/[Thread ID]
However, it seems that it has been impossible to obtain it since around December 2022, and when I searched for "in: chats" in Gmail, the messages after December 10th were not displayed.
Any method is fine, so I would like to be able to get Google Chat messages as before.
Anyone know the cause and solution?
Please check.
I also tried using the Google Chat API to see if it was possible to get messages, but I could only get messages in the space, and I couldn't get direct messages, so I wasn't able to use it.
I checked all the messages in the labels that can be obtained at "https://gmail.googleapis.com/gmail/v1/users/me/labels", but it seems that chat messages are not included.
Also, in another answer, there was a description that the state included in the Gmail API was a bug, so it is possible that this bug was adapted and it was not displayed, but in that case, there is another way to deal with it. Are you there?
Access CHATS label with Gmail API
1) With a Free Gmail account were unable to get the MessageLabelsChanged event to fire. We're assuming this should occur when you take a gmail message and add or remove a label from it.
At the same time, we ARE able to get the Idle, CountChanged, MessageExpunged and MessageFlagsChanged events working..
We are calling it on the Service.Inbox object.
We found this link https://github.com/jstedfast/MailKit/issues/208 about wrong event raised. Our labels are very uniquely named, therefore we believe, they should not be confused with events?
2) What is the ImailFolder.Subscribed method do? Should this be called to solve issues #1???
Many thanks Jeffrey!
I should probably remove the LabelsChanged event from ImapFolder because GMail is not very good about sending those notifications to the client (in fact, I'm unable to get GMail's IMAP server to send them either).
I've mostly kept it for completeness in case GMail's IMAP is ever fixed to reliably send those notifications.
I'm trying to implement chat for my webapp with following features:
When user logs in he should see a number of unread messages (which is both offline messages and "unseen", I will explain "unseen" in next step).
When user is anywhere in the app but on chat window he should be notified that he has a new message. Message should be marked "unseen" and must be added to the count of unread messages.
The first point is quite easily achieved using XEP-0013: Flexible Offline Message Retrieval. So I can retrieve offline messages and when I'm sure user has seen them - I remove them from unread list. But the problem is: how do I achieve same thing for "unseen" messages?
In short what I need is: any message should be marked as offline, unless user sees it and it's removed from the list by explicit request.
Can I achieve that with XMPP and how do I do that?
Thanks in advance.
What you are trying to do is to basically store a counter of unseen stuff in your account. I think you do not need flexible offline retrieval as when you connect the messages would simply become unseen. You thus only have to deal with one case: Unseen.
I will reply from the perspective of ejabberd, that I know better as one of the developer: I would use private storage to store your current state of unseen count and conversation.
I am guessing there is no support for this, but need to confirm for a client.
I am using send_flow from the API. Is it possible to:
In any way add recipients to an existing Email Collector? The reason is that automating surveys creates quite a few collectors if done daily or more frequently.
Is it possible to send in HTML in email_message.body_text programmatically? It does state plain text in the documentation, and it does not get converted and shows up in the email as plain text. If I use the same HTML-code in an Email Collector created in the SurveyMonkey-website, it works fine, but then again I have no way of using an existing collector it seems, as in question 1.
Continuing from question 2, if we can't send in HTML programmatically, is there a way to change the default email template? The API states "Default template is used if this [body_text] is not specified", but I can't see any option of customizing this in our client-accounts.
Have also considered using a Web Link Collector and send emails outside of SurveyMonkey. The challenge with that seems to be:
Can't register [CustomData] with the responses, which is vital for the analysis, without adding potentially large dropdowns inside the survey itself.
The Survey URL is not unique in terms of forwarding it, although this can be an acceptable risk.
Thanks a lot, any ideas or feedback is appreciated.
Thanks to Tony at SurveyMonkey this was solved by him pointing to Custom Variables in the Platinum version, then adding these to a Web Link Collector and sending the HTML email from our integrating application.
http://help.surveymonkey.com/articles/en_US/kb/What-are-custom-variables-and-how-do-I-use-them
The problem with web link collector is that there is no way to track response rate since SurveyMonkey doesn't know how many links were sent out. I don't know a way around this.
I have a website sending out email alerts when a story is posted. Customers subscribe to taxonomy terms to receive only the stories they are interested in. I'm fighting with a weird issue - some of our subscribers complain that they get duplicate emails, I've checked smtp logs and they are right. The problem has first happened with the Messaging and Notifications (after 4 years of stable work), at first only a few users were getting duplicates for some emails and in the end every user was getting every email twice. I assumed it was connected with those modules and replaced them with Subscriptions. Now the problem occurs again. I have two questions:
1) Has anyone got an idea where I should look? I'm really lost. I'm using Mandrill (mandrillapp.com) as SMTP server and used PHPMailer for connection in Drupal (just replaced it with SMTP, hope it helps, will know tomorrow). The website has been hosted with Omega8.cc since the beginning of the year, and the problem occured after this update: https://omega8.cc/boa-221-full-edition-305 but the tech support say it's not connected with my issue and they can't help.
2) I've looked at the subscriptions_queue table and see the sqid column, which is the only one that seems to be related to nodes - how do I find which sqid links to which node? I hope to run a filter on the table to remove duplicate entries if they are there.
Any help is greatly appreciated, I'm really lost
Thanks in advance