himalaya
БесплатноБез исполняемых скриптовНе проверенCLI to manage emails via IMAP/SMTP. Use himalaya to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple…
от mateaix★ 1 218 звёзд на GitHubОб этом скилле
Himalaya Email CLI
Himalaya is a CLI email client that lets you manage emails from the terminal using IMAP, SMTP, Notmuch, or Sendmail backends.
References
references/configuration.md(config file setup + IMAP/SMTP authentication)
Prerequisites
- Himalaya CLI - the
himalayabinary must already be onPATH. Check withhimalaya --version.- Recommended: v1.2.0 or newer. Older releases can fail against some IMAP servers.
- A configuration file at
~/.config/himalaya/config.toml - IMAP/SMTP credentials configured (password stored securely)
Configuration Setup
Run the interactive wizard to set up an account:
himalaya account configure default
Or create ~/.config/himalaya/config.toml manually:
[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" # or use keyring
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"
If using 163 mail, add backend.extensions.id.send-after-auth = true.
Common Operations
List Folders
himalaya folder list
List Emails
himalaya envelope list # INBOX (default)
himalaya envelope list --folder "Sent" # Specific folder
himalaya envelope list --page 1 --page-size 20 # With pagination
Search Emails
himalaya envelope list from [email protected] subject meeting
Read an Email
himalaya message read 42 # Plain text
himalaya message export 42 --full # Raw MIME
Send / Compose Emails
Recommended: Use template write | template send pipeline:
export EDITOR=cat
himalaya template write \
-H "To: [email protected]" \
-H "Subject: Email Subject" \
"Email body content" | himalaya template send
With CC:
export EDITOR=cat
himalaya template write \
-H "To: [email protected]" \
-H "Cc: [email protected]" \
-H "Subject: Email Subject" \
"Email body content" | himalaya template send
With attachments (Python fallback):
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
msg = MIMEMultipart()
msg['From'] = '[email protected]'
msg['To'] = '[email protected]'
msg['Subject'] = 'Email with attachment'
msg.attach(MIMEText('Email body', 'plain'))
with open('/path/to/file.pdf', 'rb') as f:
part = MIMEBase('application', 'octet-stream')
part.set_payload(f.read())
encoders.encode_base64(part)
part.add_header('Content-Disposition', 'attachment; filename="file.pdf"')
msg.attach(part)
server = smtplib.SMTP_SSL('smtp.example.com', 465)
server.login('[email protected]', 'password')
server.send_message(msg)
server.quit()
Known limitations:
- MML attachment parsing may fail in himalaya v1.1.0 - use Python for attachments
message writehangs in non-interactive mode - usetemplate write | template sendmessage sendmay fail with header parsing - usetemplate send
Configuration requirement: Set message.send.save-to-folder in config.toml:
[accounts.default]
message.send.save-to-folder = "Sent"
Move/Copy Emails
himalaya message move 42 "Archive"
himalaya message copy 42 "Important"
Delete an Email
himalaya message delete 42
Manage Flags
himalaya flag add 42 --flag seen
himalaya flag remove 42 --flag seen
Multiple Accounts
himalaya account list # List accounts
himalaya --account work envelope list # Use specific account
Attachments
himalaya attachment download 42 # Save attachments
himalaya attachment download 42 --dir ~/dl # Save to directory
Output Formats
himalaya envelope list --output json
himalaya envelope list --output plain
Debugging
RUST_LOG=debug himalaya envelope list
RUST_LOG=trace RUST_BACKTRACE=1 himalaya envelope list
Tips
- Message IDs are relative to the current folder; re-list after folder changes.
- Store passwords securely using
pass, system keyring, or a command. - For automation: Always use
template write | template sendwithexport EDITOR=cat. - 163 Mail: Set
backend.extensions.id.send-after-auth = trueandmessage.send.save-to-folder = "Sent". - Folder names: Use English folder names for better compatibility.
Установить himalaya в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл himalaya?
CLI to manage emails via IMAP/SMTP. Use himalaya to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Как установить скилл himalaya?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл himalaya запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic