使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:export
本页介绍了在下载邮箱时可用于 Email Audit API 的 export
资源的参数。
字段 |
说明 |
beginDate |
可选。
导出的邮箱中包含的第一封电子邮件的日期。如果您希望从账号创建之日起包含所有电子邮件,请勿为此字段输入值。日期格式为 YYYY-MM-dd HH:mm ,其中 HH 是日期中的小时(0 到 23),mm 是小时中的分钟(0 到 59)。
时区采用世界协调时间 (UTC) 格式。在开始导出邮箱之前,请将时间转换为 UTC 格式。 |
endDate |
可选。
导出邮箱中包含的上一份电子邮件的日期。如果未指定此值,则导出的电子邮件将设置为当前日期。日期格式为 YYYY-MM-dd HH:mm ,其中 HH 是一天中的小时(使用 0-23),mm 是小时中的分钟(使用 0-59)。
时区采用世界协调时间 (UTC) 格式。在开始导出邮箱之前,请将时间转换为 UTC 格式。 |
searchQuery |
可选。
系统会使用 searchQuery 值过滤邮箱,并且只有经过过滤的搜索结果可供下载。这些查询遵循与 Gmail 中的高级搜索相同的搜索规则。
searchQuery 和 includeDeleted 参数是互斥的。如果 includeDeleted = "true" ,则无法执行搜索查询。
|
includeDeleted |
可选。
确定已删除的邮件是否包含在邮箱导出文件中。默认情况下,此值为 "false" ,并且不包含已删除的消息。
searchQuery 和 includeDeleted 参数是互斥的。如果 includeDeleted = "true" ,则无法执行搜索查询。
|
packageContent |
必填。
确定邮箱导出文件中是使用完整电子邮件还是电子邮件的标头。
FULL_MESSAGE :系统会将完整的电子邮件文本(包括附件)复制到导出文件中。这是默认设置。
HEADER_ONLY :只有电子邮件的标头会复制到导出文件中。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-25。
[null,null,["最后更新时间 (UTC):2025-03-25。"],[],[],null,["Resource: `export`\n------------------\n\nThis page documents the parameters that are available for the `export`\nresource of the Email Audit API when\n[downloading a mailbox](/workspace/admin/email-audit/download-mailbox).\n\n| Fields | Description |\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `beginDate` | Optional. The date for the first email included in the exported mailbox. If you want all emails starting from when the account was created, don't enter a value for this field.The date format is `YYYY-MM-dd HH:mm` where the `HH` is the hour of the day using 0 - 23, and the `mm` is the minutes of the hour using 0 - 59. The time zone is in Coordinate Univeral Time (UTC) format. [Convert your time to UTC format](https://www.timeanddate.com/worldclock/converter.html) before starting a mailbox export. |\n| `endDate` | Optional. The date for the last email included in the exported mailbox. If this value isn't specified, the exported emails go to the current date. The date format is `YYYY-MM-dd HH:mm` where the `HH` is the hour of the day using 0 - 23, and the `mm` is the minutes of the hour using 0 - 59. The time zone is in Coordinate Univeral Time (UTC) format. [Convert your time to UTC format](https://www.timeanddate.com/worldclock/converter.html) before starting a mailbox export. |\n| `searchQuery` | Optional. The mailbox is filtered by using the `searchQuery` value and only the filtered search results are available for download. These queries follow the same search rules as the [advanced search in Gmail](https://support.google.com/mail/answer/7190). The `searchQuery` and `includeDeleted` parameters are mutally exclusive. A search query isn't possible if `includeDeleted = \"true\"`. |\n| `includeDeleted` | Optional. Determines whether or not deleted messages are include in the mailbox export file. By default, the value is `\"false\"` and deleted messages aren't included. The `searchQuery` and `includeDeleted` parameters are mutally exclusive. A search query isn't possible if `includeDeleted = \"true\"`. |\n| `packageContent` | Required. Determines whether the full email or the email's header are used in the mailbox export file. - `FULL_MESSAGE`: The full email text, including attachments, is copied to the export file. This is the default setting. - `HEADER_ONLY`: Only the email's header is copied to the export file. |"]]