7 ms·
Notmuch – Just an email system
- tomn 4y agoI used this for a while with the 'alot' frontend[0] (before work moved to a different mail system and broke my set-up). It really does live up to the claims on the home page. If you like TUIs (especially vim) but find things like mutt to be a bit too basic or inflexible, give this combination a try. 0: https://github.com/pazz/alot https://github.com/pazz/alot
- ulrikrasmussen 4y agoI have hosted my own email for over 18 years and I have found notmuch quite useful, albeit not on a daily basis, but it has really proved its worth in several occasions where I just had to find a specific email. It really is very fast and will traverse your 5GiB maildir in less than a second.
- breck 4y agoooh this looks interesting. im so dependent on gmail its a little scary. whats the best way to host ones own email nowadays? (not moving off gmail anytime soon, but maybe for some less important accounts)
- capableweb 4y agoGuess I'm plugging Migadu again! (https://www.migadu.com/ https://www.migadu.com/) (not related to them, just a satisfied user) From a previous comment of mine: > Migadu is another awesome email solution. For my family and myself, we're on the "Micro" plan which works out to be 1.5 USD per month (but paid yearly). For smaller organizations and projects, we're on the "Mini" plan which is 9 USD per month. https://news.ycombinator.com/item?id=33545326 https://news.ycombinator.com/item?id=33545326 Also another cool thing about Migadu: > They also have a page about their pros/cons: https://www.migadu.com/procon/ https://www.migadu.com/procon/ [...] one of the more honest pieces of company writing out there https://news.ycombinator.com/item?id=33546076 https://news.ycombinator.com/item?id=33546076
- zephyr9 4y agoI'll add my provider of choice, Purelymail. https://news.ycombinator.com/item?id=27707857 https://news.ycombinator.com/item?id=27707857
- everybodyknows 4y agoInteresting, but my quick search of the Migadu site turned up nothing about support for "tags", formally "keywords" as stored in the Flags Message Attribute of IMAP: https://www.rfc-editor.org/rfc/rfc3501#section-2.3.2 https://www.rfc-editor.org/rfc/rfc3501#section-2.3.2 See discussion elsewhere in the post for difficulties around tags with Fastmail and other providers.
- capableweb 4y agoAny email provider would be short of useless without supporting flags from IMAP, as that's what email clients use to see if an email has been read or not, if I'm not mistaken. AFAIK, Migadu supports most if not everything from IMAP. I'm using tags via Thunderbird and have no issues syncing it between multiple computers and Migadu.
- everybodyknows 4y agoFrom the linked RFC: > There are two types of flags in IMAP4rev1 ... Read or not-read is recorded in '\Seen', a system flag. My question pertains to the other kind of flag, a keyword. > Keywords do not begin with "\". Servers MAY permit the client to define new keywords in the mailbox ...
- flippinburgers 4y agoConsider creating a server that gmail forwards mail to. If your server goes down, it goes down. If gmail locks you out of your account, you should be able to continue to receive your important emails. There are docker solutions for running a full stack that can receive and send. https://github.com/docker-mailserver/docker-mailserver#included-services https://github.com/docker-mailserver/docker-mailserver#inclu... or single services like https://github.com/foxcpp/maddy https://github.com/foxcpp/maddy that appear to do everything more simply.
- breck 4y agoThis is a good idea. Thanks!
- flippinburgers 4y agoGlad to help!
- clircle 4y agoI use this to search mail sometimes, it is way better than Thunderbird‘s search.
- ulrikrasmussen 4y agoThis is why it switched to KMail. Thunderbird search is really, really slow, and I had to use notmuch whenever I had to search for keywords. KMail is on par with notmuch in terms of search performance.
- Aeolun 4y agoThis website could do with just a dash of CSS (and a mobile meta tag).
- dima55 4y agoHow would that improve things, exactly? You realise this is a commandline and emacs/vim email client. Right?
- grimgrin 4y ago“just a dash of” css would help the user not have to stretch-zoom the website, and then have to pan left and right because the text doesn’t dynamically wrap?
- kroltan 4y agoPresumably by going towards http://bettermotherfuckingwebsite.com/ http://bettermotherfuckingwebsite.com/ rather than the current https://motherfuckingwebsite.com/ https://motherfuckingwebsite.com/ aesthetic.
- NaturalPhallacy 4y agoIs there a darkmode version of those?
- anamexis 4y ago
- lilactown 4y agoI tried using a combo of mbsync, notmuch, and notmuch-emacs to start migrating away from Gmail's UI (and eventually moving away from their service). I found, though, that mbsync failed to download updates after the initial bulk load. Has anyone else run into this, and/or found a good way to use notmuch with gmail?
- nextos 4y agoMaybe you ran into their daily IMAP usage cap?
- lilactown 4y agoThat's a reasonable hypothesis. My experience was mbsync would hang for many minutes, and eventually when I revisited the terminal it was in it had failed with a nondescript error.
- guiraldelli 4y agoYou are definitely running in the GMail's IMAP daily limitation [1]. It took me three days to fully synchronise wuth GMail, but ince done, it takes milliseconds, now. [1]: https://support.google.com/a/answer/1071518?hl=en https://support.google.com/a/answer/1071518?hl=en
- encryptluks2 4y agoI've not experienced this. Arch Linux has a good guide on setting up mbsync. However, the best documentation is really mbsync's manual... Although tedious, really understanding it makes things a lot easier and I believe would resolve your issues.
- dima55 4y agoLast I looked there were two main local mail clients for the commandline with good emacs,vim bindings: notmuch and mu. Both store mail locally and both use xapian for efficient local searching. When I was choosing between the two, there was one big difference between the two: notmuch was built around an idea that you mark your messages with tags for organization, while mu assumed you organize stuff into IMAP folders. The notmuch tag database is not a standard IMAP concept, so syncing your IMAP directories wouldn't sync your tags, and moving from one machine to another required extra work. mu by contrast just does the normal IMAP thing, so you sync the IMAP on one machine, and all your other machines can read the IMAP data, and that's it. I've been using mu for years, and it's fantastic. From personal experience, the tags/folders distinction is mostly immaterial: the vast majority of searches are for text or sender or subject, or something. If I'm misrepresenting notmuch here, somebody please correct me!
- ccakes 4y agoaerc is another alternative CLI mail client https://aerc-mail.org/ https://aerc-mail.org/
- encryptluks2 4y agoThis is exactly the same concept as Thunderbird and Outlook smart folders. Gmail addresses this using labels which adds metadata to the IMAP messages. IMAP folders are not reliable to tag messages as having multiple tags essentially duplicates the message on the IMAP server.
- dima55 4y agoRight. How do Thuderbird/Outlook/Gmail store the tag, though? It can't be represented in any normal IMAP way, right?
- nextos 4y agoI prefer notmuch because it is extremely simple. Everything is a tag. There are no folders. Furthermore, notmuch never ever touches your mail storage. It just operates on tags. It is up to you how to turn tag changes into actions. I find this incredibly elegant and flexible. I do not tag things manually. I tag incoming messages automatically using searches. Since search is so powerful and quick, I do not really feel I need tags. If you do, mu or mutt/neomutt might be better suited.
- anonzzz 4y agoI use mbsync, mutt, and notmuch. The searching is superb with notmuch and the level of integration with mutt is great. I thought this was the typical use case - reading the first few comments here…I guess it integrates well with many clients.
- zadwang 4y agoLast time I checked I disliked the size of search index folders and files. So I am sticking to mairix, which integrates well with mutt and is small and fast.
- benhoff 4y agoAre there any tools that people know of to do email automation on receiving emails? I'd love something easily configurable that could help me tackle all the email I get with some simple rules, but I'm bound to an Outlook inbox for work.
- WhatIsDukkha 4y agohttps://en.wikipedia.org/wiki/Procmail https://en.wikipedia.org/wiki/Procmail procmail is the classic tool for this and can usually be wedged in somewhere.
- aidenn0 4y agoI like maildrop (from courier) way more than procmail. I used procmail for years, but when I switched, I never looked back
- nanna 4y agoMu has a concept of refiling which does this. I've got a load of refiling regexes set up so that I can just hold down a keypress over my inbox and it'll dynamically archive, delete messages according to my spec https://www.djcbsoftware.nl/code/mu/mu4e/Refiling-messages.html https://www.djcbsoftware.nl/code/mu/mu4e/Refiling-messages.h...
- kqr 4y agoNotmuch lends itself well to this. It can auto-tag new email with something like "new" and then you can write simple shell scripts to re-tag and take action based on contents.
- eduction 4y agonotmuch can search gpg encrypted mail, it is superb and seamless. I worked somewhere where all internal e-mail was encrypted by default and notmuch was a godsend for my productivity. It’s like using gmail over encrypted mail. Admittedly, this is an edge case. But if you happen to do a lot of encrypted emailing I don’t know if anything else like notmuch.
- aidenn0 4y agoI use bower for my regular email client. It can connect to a remote machine with notmuch over ssh. It's fairly sparse on the features, but I love it. As a bonus, it's written in a fairly niche programming language: mercury, which is a strongly typed prolog dialect. 1: https://github.com/wangp/bower https://github.com/wangp/bower
- ziotom78 4y agoI switched to mbsync plus notmuch-emacs a few months ago, after having been a loyal Thunderbird user for ~15 years. I had to change my workflow, but the new one is much better and I do not plan to go back. I have always failed to regularly use TODO apps to remember stuff to do. So with Thunderbird I settled on the habit of keeping all the emails that required some action as «unread». This worked because I never fail to check my email during the workday and unread emails are easily recognizable in Thunderbird because they are highlighted in bold. However, in the end it was not optimal because not-urgent emails slowly crawled outside of the visible space in the email list, and it happened more than not that I forgot those emails. Since I switched to notmuch, I archive every email that does not require more action on my side, with the result that my inbox looks far less cluttered and only contains those emails that still need some action. It's true that I could have used the «Archived» folder in Thunderbird for the same purpose, and for some time before switching to notmuch I even tried. But it never worked well, because when it happens that I have to recover an archived email I had to fight against Thunderbird search tools, which are quite lacking: they are quite slow and I've never understood how to run complex search queries. On the contrary, notmuch search is awesome: powerful [1] and insanely fast. Apart from this workflow, I'm loving the fact that I can write emails using Emacs. It's my daily driver and I have a heavily customized setup, so it's really fast for me to type new emails, copy-and-paste snippets of code, reformat paragraphs the way I want, etc. One nice side effect of the switch is that I finally settled to dispose my old Outlook account (it's really hard to configure mbsync to use it!) and only use Gmail. The number of missed emails dropped significantly, as now I have only one email address to check. [1] https://notmuchmail.org/manpages/notmuch-search-terms-7/ https://notmuchmail.org/manpages/notmuch-search-terms-7/
- LeonM 4y agoFWIW, with Thunderbird you can easily label email priority with keys 1-9. Where 1 is the highest priority, it will mark the email in red. So, email not read is bold, important email not read is bold red. Works pretty well for me as a backlog/todo list.
- jchook 4y agoNotmuch integrates with mutt / neomutt very nicely for search.
- jevyjevjevs 4y agoIf you want to setup Gmail/Gsuite with Mutt/notmuch, I wrote up an article on how to do so here: https://www.jevy.org/articles/neomutt-lieer-notmuch/ https://www.jevy.org/articles/neomutt-lieer-notmuch/ Hope it helps!
- yakshaving_jgt 4y agoI’ve been a happy notmuch user for several years. I wonder if there’s a use case for it outside of email, like as part of searching through discussions between users in a web application.
- guenthert 4y agoI don't quite get the concept of local mail in the 21st century. Long gone are the times where we had exactly one computer. What good does the e-mail do me if it is local on (one of) my desktop(s), when I need it on my laptop/phone/pad? What's wrong with IMAP?
- pjz 4y agoDoes IMAP search not give you most of this functionality? I wrote a little mh-like cli for IMAP awhile back (https://github.com/pjz/mhi https://github.com/pjz/mhi) that lets me search just fine, though it's admittedly single-folder-at-a-time search. I did make it composable though (eg. `pick` returns a valid message-list`, so I can `scan $(pick from somesender)` or `rmm $(pick from knownspammer)` I use thunderbird for most of my email reading, and MHI for searching and scripting. I set up a cron job on an always-up machine that does periodic auto-refiling for me; it's not quite 'on receipt' actions, but it's still handy.