我通過API發送響應電子郵件 - 這是對我自己郵件的回覆。我在主題前添加了「Re:」,添加了References:和In-Reply-To:標頭,並帶有Message-Id:父項。Gmail API - 郵件無線程:已發送
郵件在收件箱中正確地線程化,但在我的發件箱中,電子郵件是作爲單獨的實體創建的 - 如果我使用的是Web界面或桌面應用程序,則不會發生這種情況。示例的
原糖消息:
通過網絡界面創建原始消息(I刪除地址):通過API創建
MIME-Version: 1.0
Received: by 10.37.207.3 with HTTP; Thu, 10 Dec 2015 07:39:53 -0800 (PST)
Date: Thu, 10 Dec 2015 16:39:53 +0100
Delivered-To:
Message-ID: <[email protected]om>
Subject: wat
From:
To:
Content-Type: multipart/alternative;
響應:
Received: from 512896642660-8e1jj3ccsnam3mm1k91qn7c0k6odc316.apps.googleusercontent.com
named unknown
by gmailapi.google.com
with HTTPREST;
Thu, 10 Dec 2015 07:40:25 -0800
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
To:
From:
Subject: Re: wat
In-Reply-To: <[email protected]om>
References: <[email protected]om>
Date: Thu, 10 Dec 2015 07:40:25 -0800
Message-Id: <[email protected]om>
Here's how these messages look in my outbox ,任何想法什麼是錯的,爲什麼消息不是線程的?
可能重複的[Gmail API In-Reply-To not working(Google not handling on one side)](http://stackoverflow.com/questions/33171769/gmail-api-in-reply-to-not- workinggoogle-not-handling-on-one-side) – Richard