Google Email Migration API v2:无法直接迁移到Gmail中的All Mail Archive?

时间:2013-07-17 00:47:20

标签: gmail google-apps google-admin-sdk

我正在测试newly announced Google Email Migration API v2。我还没有找到任何方法将电子邮件直接迁移到“All Mail”文件夹(在Gmail中存档)。换句话说,不要在邮件上放置任何标签或收件箱。似乎这可以通过以下请求实现:

POST /upload/email/v2/users/admin@jay.powerposters.org/mail?uploadType=multipart HTTP/1.1
Host: www.googleapis.com
Content-length: 402
Content-type: multipart/related; boundary="part_boundary"
Authorization: Bearer <removed>
--part_boundary
Content-Type: application/json; charset=UTF-8

{
 'isInbox': 'false'
}

--part_boundary
Content-Type: message/rfc822

Date: Wed, 03 Jan 2013 02:56:03 -0800
From: admin@example.org
To: liz@example.com
Subject: Hello World!
MIME-Version: 1.0
Content-Type: text/html; charset=windows-1252
Content-transfer-encoding: 8bit

And I think to myself... What a wonderful world!

--part_boundary--

但此消息仍会放入收件箱中。我是否遗漏了其他一些不对邮件应用标签的方法,而不是将其置于收件箱中或者这是一个错误?

0 个答案:

没有答案