3

Context: I am using the [PHP] Gmail API and InboxSDK.

When sending a message (with Gmail API), I output the message sent object (reference here).

It contains info about message ID and Thread ID.

What is happening?

Id and ThreadID is the same (ok: because it is the first message in the thread).

But if I check the received mail with InboxSDK, i see a different ThreadID than the one returned by GMAIL API.

Example of what is going on:

I send a Test email via API.

enter image description here

When checking the thread ID with InboxSDK though...

enter image description here

We can see both Thread Ids are different.

Maybe I am doing something wrong, can you please help me out with this?

Note: I tried this multiple times with multiple google accounts. The issue is constant.

Álvaro N. Franz
  • 1,188
  • 3
  • 17
  • 39
  • Gmail API is not Inbox SDK – ReyAnthonyRenacia Sep 14 '17 at 06:57
  • @noogui bread is not meat, still a hamburguer is made of both. – Álvaro N. Franz Sep 14 '17 at 07:05
  • 1
    Same issue here. Have you been able to find a solution? – AKT Mar 19 '18 at 15:47
  • Ok. I did some digging and here is what I found. One time I sent a test mail and then deleted it. After that, I sent another mail with the same subject. In this case, Gmail creates a thread using that deleted email. ie, `thread-id` of the second email is `message-id` of the first (deleted) email. But InboxSDK does not know about that deleted email (Gmail won't load this deleted mail unless you click on a link). InboxSDK will use `message-id` of second email as `thread-id` (for first mail in a thread `message-id`=`thread-id`). – AKT Mar 20 '18 at 06:05

0 Answers0