Exclude per-account aliases from mail_people #41

Merged
svc-agent-writer merged 1 commit from feat/aliases into main 2026-10-31 13:04:20 +00:00

Summary

mail_people leaves out the owner's addresses: the account's From address and any From in Sent or Drafts. An address the owner writes from in another account, such as a work address, never appears in this account's Sent folder, so it still showed as a correspondent. The 0.3.0 validation on one instance found two such rows.

  • [[accounts]] aliases is a list of bare addresses. They are stored lower-case. A display-name form or an address with spaces, CR, LF, < or > is refused at load.
  • mail_people excludes the sender and the aliases of every account, unless include_self.
  • README and config.example.toml name the key.

Test plan

  • make check: 111 passed, audit clean.
  • test_aliases_join_the_owner_addresses: the aliases join the owner addresses in lower case, and a display-name form is refused.

🤖 Generated with Claude Code

## Summary `mail_people` leaves out the owner's addresses: the account's From address and any From in Sent or Drafts. An address the owner writes from in another account, such as a work address, never appears in this account's Sent folder, so it still showed as a correspondent. The 0.3.0 validation on one instance found two such rows. - `[[accounts]] aliases` is a list of bare addresses. They are stored lower-case. A display-name form or an address with spaces, CR, LF, `<` or `>` is refused at load. - `mail_people` excludes the sender and the aliases of every account, unless `include_self`. - README and `config.example.toml` name the key. ## Test plan - `make check`: 111 passed, audit clean. - `test_aliases_join_the_owner_addresses`: the aliases join the owner addresses in lower case, and a display-name form is refused. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A work address the owner never sends from in this account's Sent folder still showed as a correspondent. The new aliases list on an account joins its From address in the self-exclusion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.