TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Himalaya: CLI to Manage Emails

349 pointsby xparadigm5 months ago

25 comments

djha-skin5 months ago
Himalaya makes it pretty easy to write cli tools and automate email workflows. It pairs well with August, another rust project that can render html to text on the terminal. I wrote a git email patch automation tool around Himalaya so that people can receive email patches easily[1].<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;djha-skin&#x2F;git-receive-mail">https:&#x2F;&#x2F;github.com&#x2F;djha-skin&#x2F;git-receive-mail</a>
cfiggers5 months ago
This is cool. I like the ongoing trend of TUIs getting more attention and use.<p>A little while ago I wrote my own little TUI tool using Textual that interfaces with Outlook using pywin32. I really only needed (need) one specific feature above and beyond what Outlook already does. And that is, I wanted a Vim-like UX for assigning categories to emails and archiving&#x2F;deleting them. What I have now works surprisingly well and it&#x27;s very satisfying to have made my own thing that suits my own needs precisely the way I want it to.
评论 #42368073 未加载
xyst5 months ago
I feel like this has been here before, glad it&#x27;s kept up with updates. Will have to give this a shot soon.<p>From strictly reading the docs, I love these features:<p>* oauth2 * json output<p>But do I need to run the &quot;himalaya ...&quot; command every so often to get fresh e-mails? Or can I leave TUI open and it will refresh in the background?<p>When composing messages, does anybody know if the &quot;From&quot; header can be re-written like in Thunderbird? I am able to send from ad-hoc aliases with my mail server, but need to re-write the &quot;From&quot; header first. For example, I can receive mail sent to &quot;xyst.hn@example.com&quot; and delivered to mailbox at &quot;xyst@example.com&quot;. In order to reply with same e-mail address, I must re-write the &quot;From&quot; header to match.
评论 #42378752 未加载
jedisct15 months ago
I still use mutt on a daily basis.<p>Being able to select emails using regular expressions is super useful.<p>IMAPFilter is also simple and powerful to quickly sort email.
评论 #42367295 未加载
评论 #42366875 未加载
aynawn5 months ago
Does it support email filters? I&#x27;d love to manage my gmail filters programmatically or use a configuration file to manage them so I can reuse the filters across multiple emails.<p>Edit: there is a separate tool for this for gmail <a href="https:&#x2F;&#x2F;github.com&#x2F;mbrt&#x2F;gmailctl">https:&#x2F;&#x2F;github.com&#x2F;mbrt&#x2F;gmailctl</a>
jonstewart5 months ago
Neat. I used and loved “mh” in college, but that was before html email became prevalent. It was beautiful to have different commands and treat emails as individual files. Unfortunately mh was grotty old C code and just couldn’t keep up (IMHO) with how we use email today.<p><a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;MH_Message_Handling_System" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;MH_Message_Handling_System</a>
评论 #42371543 未加载
评论 #42367055 未加载
alberth5 months ago
I&#x27;m confused, it is called &#x27;Pimalaya&#x27; or &#x27;Himalaya&#x27;
评论 #42366738 未加载
vigonotion5 months ago
I think the README is missing some examples of what this can do. I used it for a script that marks every mail as seen:<p><pre><code> #!&#x2F;bin&#x2F;bash while true; do # Run the command and capture its exit code result=$(himalaya envelope list --folder INBOX --page 1 --page-size 100 --output json not flag Seen | \ jq -r &#x27;.[] | &quot;\(.id) Seen&quot;&#x27;) exit_code=$? # Check the exit code of `himalaya` if [[ $exit_code -ne 0 ]]; then echo &quot;No more unseen emails to process or an error occurred.&quot; break fi # Check if result is empty if [[ -z &quot;$result&quot; ]]; then echo &quot;No more unseen emails to process.&quot; break fi # Process unseen emails echo &quot;$result&quot; | xargs himalaya flag add echo &quot;Processed unseen emails. Checking for more...&quot; done </code></pre> I&#x27;m not a shell coder and while writing the script I wasn&#x27;t sure if the better way would have been to use the underlying Rust library, but that probably would have taken longer to build for such a small task.<p>Another idea I had was to use it to sort mails into folders by the receipient address suffix (my.name+amazon@example.com would sort into the amazon folder), which should be possible if I have read the man pages correctly.<p>Anyway, thanks for this, not sure if this is the &quot;best&quot; way for me to work with mails but it absolutely is the first tool that made me start automating my inbox.
brink5 months ago
I love that logo.
评论 #42376034 未加载
MikeTheGreat5 months ago
Genuine question - the HN title says &quot;CLI to...&quot; but looking at the GitHub repo I don&#x27;t see any CLI-centric documentation.<p>I do see<p><pre><code> $ himalaya envelope list --account posteo --folder Archives.FOSS --page 2 </code></pre> and a screenshot that looks like PINE. Is that screenshot interactive (like PINE) or does himalaya print that out and then the process exits?<p>I guess my question is: is this different than PINE (or any other terminal-based, interactive email client)?
评论 #42369442 未加载
评论 #42369902 未加载
tempfile5 months ago
Looks like mblaze but with extra steps<p><a href="https:&#x2F;&#x2F;github.com&#x2F;leahneukirchen&#x2F;mblaze">https:&#x2F;&#x2F;github.com&#x2F;leahneukirchen&#x2F;mblaze</a>
评论 #42367637 未加载
JeremyHerrman5 months ago
Is anyone using local LLMs to manage their email? This seems like it could be helpful to hook that up.
jarbus5 months ago
Been eyeing this project for a while, hesitant to pull the trigger before a 1.0, just because email is a pain to configure, and having to keep up with changes before a 1.0 would have been a pain.<p>I&#x27;d love to see a blog or some post on the roadmap for this project (and the org in general).
评论 #42367811 未加载
delusional5 months ago
This looks like it&#x27;s a &quot;real&quot; CLI instead of a curses thing (TUI?). That&#x27;s really exciting for me. I strongly prefer tools that can be composed as a standard shell pipeline.<p>Edit: That is indeed exactly what this is. It&#x27;s wonderful :)
gorgoiler5 months ago
Amazing! Love the idea, and I really love the “sponsorship” part. It’s very cool that a project like this can get funding.<p>The “MML” MIME markup language is new to me. It is strange that it’s neither markdown based nor does it automatically build the plain text part for you.<p>On the few occasions these days where I compose an email in mutt (via vim) I find I end up writing markdown _anyway_* so supporting it as an authoring format would be fantastic.<p>Alas, a lot of professional interactions require HTML emails. I don’t want to come across as awkward nerd to everyone all the time.<p>*!:)
pydry5 months ago
Looks nice. No JMAP though :&#x2F;
taylorbuley5 months ago
I use alpine over at sdf.org. I&#x27;d love to use this instead.
评论 #42379071 未加载
jxf5 months ago
Q: Can I use this if I work at a Microsoft Teams enterprise org? Probably not, I&#x27;m guessing, but hoping there&#x27;s a way to make that work somehow.
评论 #42370385 未加载
评论 #42370343 未加载
评论 #42370392 未加载
nixosbestos5 months ago
Sorry this is pretty low-value but I <i>love</i> that organization name. Pimalaya. Cute and very fun to say.
评论 #42367708 未加载
hk13375 months ago
This seems really nice. I wonder how it handles accounts with two-factor authentication, sms and yubikey.
评论 #42367264 未加载
szajbus5 months ago
After testing many clients I learnt to stop worrying and just use Mail app.
评论 #42367001 未加载
评论 #42367747 未加载
评论 #42366899 未加载
评论 #42366743 未加载
评论 #42366792 未加载
评论 #42369810 未加载
评论 #42367129 未加载
评论 #42367540 未加载
alchemist1e95 months ago
How does this compare to old school mblaze tools?
szundi5 months ago
I liked mutt, but this seems promising as well.
oldpersonintx5 months ago
I can go a week now without receiving a single useful email...gmail or fastmail are fine
评论 #42368512 未加载
zerop5 months ago
Honest question - Why use interfaces like this, but not regular HTML client?
评论 #42366996 未加载
评论 #42368573 未加载
评论 #42367707 未加载
评论 #42366873 未加载