name, description, version, author, tags, tools, inputs
| name |
description |
version |
author |
tags |
tools |
inputs |
| Test Sync Gmail Inbox |
Test task — download only 2026 emails from Gmail. |
1 |
pastilhas |
|
|
|
Test Sync Gmail Inbox
Download emails from 2026 only and save each one as an .eml file in $OFFICER_USER_ROOT/Gmail/emails/.
Steps
- Create the
$OFFICER_USER_ROOT/Gmail/emails directory if it doesn't already exist.
- Call
gmail with action=get_profile to confirm the account is connected.
- Loop month by month, starting from the current month down to January 2026:
- Call
gmail with action=sync_inbox, output_dir=$OFFICER_USER_ROOT/Gmail/emails, and query=after:YYYY/MM/01 before:YYYY/MM+1/01.
- Report the result for that month (e.g. "February 2026: saved 47 emails").
- When finished, count the total
.eml files in $OFFICER_USER_ROOT/Gmail/emails and report the final total.