CLI email client via IMAP/SMTP - list, read, write, reply, search
Manage emails from the terminal using IMAP/SMTP.
brew install himalaya
himalaya account configure # Interactive wizard
Or create ~/.config/himalaya/config.toml:
[accounts.personal]
email = "[email protected]"
display-name = "Your Name"
default = true
backend.type = "imap"
backend.host = "imap.example.com"
backend.port = 993
backend.encryption.type = "tls"
backend.login = "[email protected]"
backend.auth.type = "password"
backend.auth.cmd = "pass show email/imap"
message.send.backend.type = "smtp"
message.send.backend.host = "smtp.example.com"
message.send.backend.port = 587
message.send.backend.encryption.type = "start-tls"
message.send.backend.login = "[email protected]"
message.send.backend.auth.type = "password"
message.send.backend.auth.cmd = "pass show email/smtp"
himalaya envelope list # INBOX
himalaya envelope list --folder "Sent" # Specific folder
himalaya envelope list --page 1 --page-size 20
himalaya envelope list from [email protected] subject meeting
himalaya message read 42
himalaya message export 42 --full # Raw MIME
himalaya message reply 42
himalaya message reply 42 --all
himalaya message forward 42
himalaya message write # Opens $EDITOR
# Or send directly
cat << 'EOF' | himalaya template send
From: [email protected]
To: [email protected]
Subject: Test
Hello from Himalaya!
EOF
himalaya message move 42 "Archive"
himalaya message copy 42 "Important"
himalaya message delete 42
himalaya flag add 42 --flag seen
himalaya flag remove 42 --flag seen
himalaya attachment download 42
himalaya attachment download 42 --dir ~/Downloads
himalaya account list
himalaya --account work envelope list