示例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Gmail 邮件导入程序
Gmail 邮件导入器是 Google 推出的一个开源项目,可将 Thunderbird 邮件归档的内容上传到 Gmail,并尽可能保留邮件的已读状态、已标记状态和文件夹。该示例使用 Java 编写,并使用 Messages.import 端点。
克隆 GitHub 代码库以获取完整的源代码,或浏览与 Gmail 相关的代码。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-24。
[null,null,["最后更新时间 (UTC):2025-03-24。"],[],[],null,["# Samples\n\nMail Importer for Gmail\n-----------------------\n\nMail Importer for Gmail is an open source project from Google that uploads the\ncontents of a Thunderbird mail archive to Gmail, doing its best to preserve the\nread state, flagged state, and folders of the messages. It is written in Java\nand uses\n[Messages.import](/workspace/gmail/api/reference/rest/v1/users.messages/import)\nendpoint.\n\nClone the [GitHub repository](https://github.com/google/mail-importer) to get\nthe full source code, or browse the [Gmail-related\ncode](https://github.com/google/mail-importer/tree/master/src/main/java/to/lean/tools/gmail/importer/gmail)."]]