Clean up your inbox with AI: archive, mark spam and tidy up

Quick answer: Ask the assistant to separate newsletters, automated notices and promotions, and move each group with alterar_status (Archived or Spam) or mover_para_lixeira. All of it can be undone with restaurar. Permanent deletion only works on what is already in the trash or spam, and Domailo instructs the assistant to confirm with you first.

  • Read and write
  • Checked on October 17, 2026

Who it is for

For anyone coming back from vacation, inheriting a messy mailbox, or who wants the inbox to hold only what needs action: conversations with customers, suppliers and the team.

Tidying up is where AI saves the most time with the least risk, as long as the request says what to do and what not to do. Archiving and marking spam are reversible; permanent deletion is not.

What it looks like

domailoconnected via MCPExample with fictional data

Request: Archive the newsletters and automated notifications in the inbox of contact@example.com and mark unsolicited promotions as spam. Don't delete anything.

  • listar_emailspasta: "entrada" · caixa: "contact@example.com" · pages 1 and 240 conversations
  • ler_email18 that look automatedread
  • alterar_status11 → arquivadas · 4 → spammoved

I archived 11 conversations and marked 4 as spam. 25 remain in the inbox, all from people:

  • Archivednewsletters and system notices (invoice issued, new sign-in, delivery on the way)
  • Spam4 unsolicited service offers
  • Kept25 conversations with customers, suppliers and the team

Step by step

  1. Connect Domailo with "Read and write" access.
  2. Name the mailbox and the rules, including what not to do ("don't delete anything", "don't touch anything with an attachment").
  3. The assistant reads the conversations and moves each one with alterar_status or mover_para_lixeira. Ask for a summary of what was moved.
  4. If something ended up in the wrong place, ask it to restore it or move it back to the inbox. Delete permanently only after reviewing the trash.

Ready-to-copy prompts

Swap the addresses and names for yours. The more specific the request (mailbox, time period, what the reply must say), the better the result.

  • Without moving anything, show me which conversations in the inbox of contact@example.com look like newsletters or automated notices.
  • Archive the inbox conversations older than 30 days where the last message is ours.
  • Move to the trash the "new sign-in" and "password changed" notices older than a week.
  • List what is in the trash of contact@example.com and tell me if any conversation looks important.
  • Restore the conversation with Camila Rocha that went to the trash by mistake.

How it changes by type of business

Back from vacation
First the summary of what needs action; then archive the rest. The first time, ask it to show the list before moving anything.
Shared mailbox
Folder changes apply to the whole team. Agree on the rules first and leave the cleanup to one person.
Freeing up space
Storage belongs to the organization. Only permanent deletion frees space; archiving or moving to the trash does not.

Permissions needed

  • "Read and write" access. Tools used: listar_emails, ler_email, alterar_status, mover_para_lixeira, restaurar.
  • Admins, and people an admin allowed to use AI assistants. Each person sees only the mailboxes they already open in the webmail.
  • Included in the Startup, Essential and Team plans and during the trial.

Caveats and limits

  • Domailo does not create automatic rules through MCP: tidying happens when you ask, not on every incoming email.
  • listar_emails returns 20 conversations per page. For large mailboxes the assistant has to go through several pages; give it a limit ("the 100 most recent").
  • excluir_definitivamente cannot be undone and only works on conversations in the trash or spam. Domailo instructs the assistant to confirm with you first; do not use "always allow" for that tool.
  • Spam can be deleted automatically after the period your organization configured.
  • People with the agent role cannot delete conversations containing someone else's drafts or sends.

Frequently asked questions

Can I create rules that sort email automatically?

Not through MCP. The assistant tidies up when you ask. For something recurring, repeat the request (the same text works every week).

How do I undo what the assistant moved?

Archived, spam or trashed conversations go back to the inbox with restaurar or alterar_status. In the webmail, the folders do the same.

Does moving to the trash cancel scheduled sends?

Yes, yours: scheduled sends in that conversation turn back into drafts. Only an admin can cancel other people's. Immediate sends already on their way still go out.

Does deleting email free up plan storage?

Only permanent deletion. Storage adds up messages and attachments for the whole organization; archiving or moving to the trash does not change usage.