-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Severe bug: On un-reading email, the event has the different mssageId instead the one actually it is. #17
Comments
Are you using Gmail or Gsuite? You have to perform all changes against messages in the “All messages” folder, not in actual folders. It’s the same message but has different id’s depending from the folder you are using. |
@andris9 I'am using Gmail. This is the GET API to get the email information based on the messageID |
@vinodhreddygs Hi, |
@avdnick Oh. thanks for your reply. I do that. |
Hi @andris9 @avdnick , |
If you are using Gmail and want to use webhooks then you need to perform all your processing via the "All Mail" folder, not INBOX. You can see from the Gmail does not use the common one-folder/one-email model but one-email/multiple-folders and for each folder it has different id. The same message in different folders has the same |
If you do want to use INBOX instead of All Mail then you can match changes received via webhooks using the |
@andris9 do you mean that I need to get the all the messages in the folder "All Mail' and then i need to filter the email which I want based on messageID? |
You can use |
@andris9 All the message APIs that provided in the Swagger API docs will fetch/get messages or Attachments against the "All Mail" folder? |
|
So to answer your initial question, having different message id values is OK as message id value depends on the folder this message data was fetched from. Use |
@andris9 on Flags update(i.e. On unread the mail), webhooks are not triggering, due to that I can't able to handle the events on flags update in my application. |
Hi @andris9 ,
Whenever I unread an email, the event which I get through webhooks has a different messageId.
Due to that, I can't able to get the content of the email on which actually update event is triggered.
Please let me know what is the reason for this. This is causing severe issues in my application.
Thanks in advance.
The text was updated successfully, but these errors were encountered: