透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:export
本頁面說明下載信箱時,Email Audit API 的 export
資源可用的參數。
欄位 |
說明 |
beginDate |
選填。
匯出信箱中第一封電子郵件的日期。如果您想要從帳戶建立日期開始查看所有電子郵件,請不要在這個欄位輸入值。日期格式為 YYYY-MM-dd HH:mm ,其中 HH 是使用 0 到 23 的一天中的小時,而 mm 是使用 0 到 59 的該小時中的分鐘。
時區以世界標準時間 (UTC) 格式表示。開始匯出信箱前,請將時間轉換為世界標準時間格式。 |
endDate |
選填。
匯出信箱中最後一封電子郵件的日期。如未指定這個值,匯出的電子郵件會傳送至目前日期。日期格式為 YYYY-MM-dd HH:mm ,其中 HH 是使用 0 到 23 的一天中的時數,而 mm 是使用 0 到 59 的每小時分數。
時區以世界標準時間 (UTC) 格式表示。開始匯出信箱前,請將時間轉換為世界標準時間格式。 |
searchQuery |
選填。
系統會使用 searchQuery 值篩選信箱,並只下載篩選後的搜尋結果。這些查詢會遵循與 Gmail 進階搜尋相同的搜尋規則。
searchQuery 和 includeDeleted 參數互斥,如果 includeDeleted = "true" ,則無法使用搜尋查詢。
|
includeDeleted |
選填。
決定是否要將已刪除的郵件納入信箱匯出檔案。預設值為 "false" ,且不會納入已刪除的訊息。
searchQuery 和 includeDeleted 參數互斥,如果 includeDeleted = "true" ,則無法使用搜尋查詢。
|
packageContent |
必填。
判斷信箱匯出檔案中是否使用完整電子郵件或電子郵件標頭。
FULL_MESSAGE :完整的電子郵件文字 (包括附件) 會複製到匯出檔案。這是預設設定。
HEADER_ONLY :匯出檔案只會複製電子郵件的標頭。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-25 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]