msmtp (sending mail)

(Note that port 465 might be the usual, but fastmail uses 565 to allow stripping the ip.)

# ~/.msmtprc
defaults
tls on
tls_trust_file /usr/local/etc/openssl/cert.pem
auth on

account fastmail
port 565
host smtp.fastmail.com
from <custom_email_address>
user <account_email_address>
tls_starttls off
passwordeval try_random_strings

account uw
port 587
host smtp.gmail.com
from <email_address>
user <email_address>

account default : fastmail

mbsync (syncing mail)

# ~/.mbsyncrc
Create Both
Remove Slave
Expunge Both
CopyArrivalDate yes
SyncState *

IMAPStore fastmail
Host imap.fastmail.com
User <account_email_address>
PassCmd try_random_strings
SSLType IMAPS

MaildirStore local-fastmail
Path ~/mbsync/fastmail/
Inbox ~/mbsync/fastmail/INBOX
Flatten ..

Channel inbox
Master :fastmail:
Slave :local-fastmail:

Channel sent
Master :fastmail:Sent
Slave :local-fastmail:Sent

Channel rest
Master :fastmail:
Slave :local-fastmail:
Patterns "*" "!INBOX" "!Sent"

mailcap (mime)

# ~/.mailcap
application/pdf; open -W -a Skim.app %s
text/html; open -W -a 'Google Chrome.app' %s
text/html; w3m -I %{charset} -T text/html; copiousoutput;

mutt

launchd

Deletion

move to Trash

mark as deleted

expunge