Skip to content

Preview a mail cleanup

Machine verified A machine ran this on our install and checked the result against the CLI. A test report is linked. Proven against quoxcli 0.6.2 on 2026-11-23.

What would a cleanup move?

Ask how many emails a cleanup would catch and where they would go. Nothing moves until you say so.

What you get: the exact emails a cleanup would move and the folder they would land in, before a single message moves.

Ask in plain words, and say it is only a preview:

quox · talking to Quox

If I cleaned up the Harbour Gazette newsletters, how many would go to my Archive? Just preview it, do not move anything.

▤ AOCL │ L1 identity complete · allowed · 0ms

▤ AOCL │ L3 policy gate complete · proceed · 4ms

◐ QUOX │ cli ✔ QUOX │ cli │ 0 exit code, 4776 duration ms · 6.5s

⛓ AEE │ envelope opened · ops.tool · quox_cli ok

⛓ AEE │ envelope opened · stream_success

Only one message would go to your Archive. It is "Harbour Gazette weekly roundup" from
[email protected], currently in your INBOX.

This was a preview only, so nothing has been moved. The preview ID is
inbclean_mwtmvtm9_ssnrlnwj. If you want it archived, say so and I'll set that up.

16.5s · 1 tool · 0 approvals

A real turn on our own install (CLI 0.6.2, 23 Nov 2026), replayed at speed. Names changed. Type the same words into quox.
✔ Machine verified against the CLI on 23 Nov 2026 · test report mwtmvh

Quox ran a preview and moved nothing. It named the one email that matched, where it sits now and where it would go, and gave the preview’s id so the same set can be used later.

a cleanup preview
quox mail cleanup preview --from @harbourgazette.example.com --to archive1 message(s) match. They would move to: ArchivePreview id: inbclean_mwtqszkl_axkce8an (nothing has moved; this is a preview only)From                               Subject                           Date                Folder[email protected]    Harbour Gazette weekly roundup    2026-11-23 07:29    INBOX
From a real run on our own install, against a test mailbox.

--from matches a sender or a whole domain. You can also pick by --zone or --older-than, and you need at least one of the three. --to names the folder the emails would go to.

Quox counted the emails that match and listed them. No email was moved, filed or deleted.

  • quox mail cleanup apply <previewId> turns a preview into a proposal. It still moves nothing until an admin approves it. This guide does not cover applying a cleanup yet.
  • See who you have blocked