| name | himalaya |
| description | CLI email client via IMAP/SMTP. List, read, write, reply, and organize emails. Use when this capability is needed. |
| metadata | {"author":"aidiss"} |
Himalaya Email CLI
Himalaya is a terminal email client using IMAP/SMTP backends.
Prerequisites
- Himalaya installed (
himalaya --version)
- Config at
~/.config/himalaya/config.toml
- IMAP/SMTP credentials configured
Quick Setup
Run the wizard:
himalaya account configure
Or create ~/.config/himalaya/config.toml:
[accounts.personal]
email = "you@example.com"
display-name = "Your Name"
default = true
backend.type = "imap"
backend.host = "imap.example.com"
backend.port = 993
backend.encryption.type = "tls"
backend.login = "you@example.com"
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 = "you@example.com"
message.send.backend.auth.type = "password"
message.send.backend.auth.cmd = "pass show email/smtp"
Common Operations
List & Read
himalaya folder list
himalaya envelope list
himalaya envelope list --folder "Sent"
himalaya envelope list from john@example.com subject meeting
himalaya message read 42
Write & Reply
himalaya message write
cat << 'EOF' | himalaya template send
From: you@example.com
To: recipient@example.com
Subject: Test
Hello from Himalaya!
EOF
himalaya message reply 42
himalaya message reply 42 --all
himalaya message forward 42
Organize
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
Multiple Accounts
himalaya account list
himalaya --account work envelope list
Attachments
himalaya attachment download 42
himalaya attachment download 42 --dir ~/Downloads
JSON Output
himalaya envelope list --output json
Converted and distributed by TomeVault — claim your Tome and manage your conversions.