Himalaya 是做什麼的?
從 Shell 使用 himalaya 進行 IMAP/SMTP 郵件操作。
參考資料
references/configuration.md:帳號設定、驗證、後端配置。references/message-composition.md:MML 撰寫語法。
設定
himalaya --version
himalaya account configure
設定檔路徑:~/.config/himalaya/config.toml。
建議使用密碼管理器/金鑰環來儲存憑證;請勿將機密貼到聊天或日誌中。
閱讀/搜尋
himalaya folder list
himalaya envelope list
himalaya message read <id>
himalaya envelope list from [email protected] subject invoice
撰寫
himalaya message write
himalaya template write
himalaya template send < /tmp/message.txt
himalaya message reply <id>
himalaya message forward <id>
使用 MML 處理附件與豐富訊息;請先閱讀 references/message-composition.md。
整理
himalaya message copy <id> --to <folder>
himalaya message move <id> --to <folder>
himalaya message delete <id>
himalaya flag add <id> --flag seen
himalaya flag remove <id> --flag seen
注意事項
- 當有多個帳號時,使用
--account參數。 - 在摘要中引用確切的郵件 ID。