1.7 KiB
1.7 KiB
Agent Guidelines: Aerc Configuration Repository
This repository contains the configuration and customization for aerc, a terminal-based email client. It is optimized for a workflow involving notmuch for indexing, mbsync for synchronization, and abook for address management.
1. Build, Lint, and Test Commands
Sync and Maintenance
- Global Sync: Run
mailsync(bound touinaerc) to perform:mbsync -a(Mail synchronization)notmuch newfor all account databases (Indexing)notmuch-abook-sync(Address book population)
- Manual Sync: Run individual commands if needed for specific accounts:
NOTMUCH_CONFIG=~/Mail/phil/.notmuch-config notmuch new
Linting
- Permissions:
accounts.confmust be0600. - Dependencies:
w3m,bat,yazi,notmuch,abook,pass,isync.
Testing
- Filters:
cat email.html | w3m -T text/html -dump - Address Book Query:
abook --mutt-query "search term"
2. Code Style Guidelines
Aerc Configuration
- Notmuch URI: Use the absolute triple-slash format:
source = notmuch:///home/liph/Mail/account_name. - Credentials: Use
passviaoutgoing-cred-cmd = pass show mail/account_email. - Sidebar: Use separate
notmuchdatabases per account directory for isolation.
Keybindings
- Leader:
,(comma). - Contacts:
,abopensabookin a terminal. - Picker:
yaziis the default for attachments (file-picker-cmd).
Neovim integration (after/ftplugin/mail.lua)
- Completion: Triggered by
Tabon header lines usingabook --mutt-query. - Fzf: Triggered by
Ctrl+ffor interactive contact selection.