Use this skill to read mailbox messages through https://mail-api.suilong.online/admin/mails.
address, limit, and offset.limit to 20 and offset to 0 when the user does not specify them.verification_code when a code can be extracted from subject/text/html content.--output-format csv and optionally --output-file when the user asks for exportable results.ok, auth_error, error.--include-raw only when the user explicitly wants the full original payload for debugging.Read one mailbox:
C:\Users\sl\AppData\Local\Python\bin\python.exe scripts/read_mails.py `
--address t2@suilong.online `
--limit 20 `
--offset 0 `
--admin-auth $env:CLOUDFLARE_MAIL_ADMIN_AUTH
Read recent mails without an address filter:
C:\Users\sl\AppData\Local\Python\bin\python.exe scripts/read_mails.py `
--limit 20 `
--offset 0 `
--admin-auth $env:CLOUDFLARE_MAIL_ADMIN_AUTH
Export messages as CSV:
C:\Users\sl\AppData\Local\Python\bin\python.exe scripts/read_mails.py `
--address t2@suilong.online `
--limit 20 `
--output-format csv `
--output-file .\mail-results.csv `
--admin-auth $env:CLOUDFLARE_MAIL_ADMIN_AUTH
Prefer environment variables for secrets:
CLOUDFLARE_MAIL_ADMIN_AUTHCLOUDFLARE_MAIL_BEARER_TOKENCLOUDFLARE_MAIL_CUSTOM_AUTHCLOUDFLARE_MAIL_FINGERPRINTCLOUDFLARE_MAIL_LANGCLOUDFLARE_MAIL_USER_TOKENCLOUDFLARE_MAIL_MAILS_API_URL共 1 个版本