News for hackers. Stuff that matters.
Re:A Minimal Email Client by gspr on Thursday February 25, 2021 @02:48PM (#26267336)
Tangentially related: I really like the approach of mu [1]. Let other software (like mbsync) handle IMAP synchronization of a local maildir, let other software (like msmtp) handle sending, and focus on doing really good, flexible and efficient queries of the local maildir. Then you can build whatever thin, simple GUI on top of that.

[1] https://www.djcbsoftware.nl/code/mu/

Re:A Minimal Email Client by nextos on Thursday February 25, 2021 @07:32PM (#26270198)
Mu is nice, but I prefer the alternative Notmuch: https://notmuchmail.org

The design is extraordinarily elegant. It's almost like a purely functional email client. It never touches your messages. All it does is to alter a separate tag database. Then it's up to you how to turn tags into mailbox actions, like deleting or archiving emails. It sounds complicated, but it's trivial to setup and allows infinite flexibility in how to handle emails.

The Emacs interface is beautiful, quite similar to Magit. If Emacs is not your cup of tea, it's quite easy to use as a backend for Mutt. In fact, Neomutt already comes with Notmuch bundled and deeply integrated.

Re:A Minimal Email Client by funkaster on Thursday February 25, 2021 @08:33PM (#26270568)
+1 on notmuch. I use it at work and it works great, super easy to configure actions for all the automated emails I get daily and filter the ones that really matter.
Re:A Minimal Email Client by prennert on Friday February 26, 2021 @04:12AM (#26272820)
I always wonder how those "CLI-esque" tools handle attachments and images, both receiving and sending. I use them rarely, but when I use them (usually for debugging with clients and internal business folk) then images are essential.

Is notmuch able to attach inline images from the clipboard, and render images in emails?

Re:A Minimal Email Client by jdub on Friday February 26, 2021 @04:20AM (#26272873)
It's not an email client.
Re:A Minimal Email Client by nextos on Friday February 26, 2021 @02:56PM (#26279124)
It can render images just fine.

I have never attached inline images as I always compose plain text emails, so I don't know about that one.

Re:A Minimal Email Client by krageon on Friday February 26, 2021 @10:41AM (#26275852)
notmuch is objectively worse if you expect your email tags to be synced via your mailbox, which I don't see a reason not to expect. Mu uses a header in the mail, notmuch uses a separate database. Other than that point, as far as I can tell they are identical.
Re:A Minimal Email Client by geocar on Friday February 26, 2021 @01:30PM (#26278060)
What's the point of syncing tags to your mailbox if no other client understands them?
Re:A Minimal Email Client by nextos on Friday February 26, 2021 @02:53PM (#26279105)
I guess keeping different Mu instances in sync, which is a valid point.

However, I still find Mu and Notmuch TUIs quite different.

Re:A Minimal Email Client by geocar on Friday February 26, 2021 @03:56PM (#26279758)
I haven't played with Mu, and I have tonnes of tags. I don't use multiple workstations (tramp-mode). I am curious.

Why else use Mu?

Re:A Minimal Email Client by krageon on Monday March 01, 2021 @04:53AM (#26301170)
I sometimes destructively wipe my machines and I enjoy knowing my email is separate and I don't have to faff with my tag database backup. That said, I do also use multiple workstations - which it is also useful for.
Re:A Minimal Email Client by nextos on Saturday February 27, 2021 @11:24AM (#26285813)
I'm not very much into Mu. I prefer Notmuch as I find the TUI more elegant and it's completely oriented towards tags and searches. Mu also supports folders, and that made it a bit more complicated to me.
Re:A Minimal Email Client by geocar on Saturday February 27, 2021 @11:56AM (#26286092)
Oh sorry. I got distracted and thought I was still replying to the Mu-user :)
Re:A Minimal Email Client by BeetleB on Thursday February 25, 2021 @07:27PM (#26270162)
There's also notmuch.[1] It has an Emacs frontend, but people use it with mutt as well, and there exist a bunch of standalone frontends. Not sure why everyone seems to know mu and not notmuch. I wonder if anyone has done a thorough comparison.

(Looks like someone has done a minor comparison[2])

[1] https://notmuchmail.org/

[2] https://old.reddit.com/r/emacs/comments/ebite6/mu4e_vs_gnus_...)

Re:A Minimal Email Client by mhd on Friday February 26, 2021 @03:57AM (#26272730)
That was pretty much the general idea of mh, with guys like exmh (Tk) or mh-e (Emacs).

https://en.wikipedia.org/wiki/MH_Message_Handling_System

https://www.emacswiki.org/emacs/MH-E

http://exmh.sourceforge.net/

Re:A Minimal Email Client by agumonkey on Friday February 26, 2021 @04:20AM (#26272874)
odd, for a week i had issues with mh-e extension when building emacs from source, never heard of it before, now i do
Re:A Minimal Email Client by kgwxd on Thursday February 25, 2021 @02:53PM (#26267398)
I like the idea of that approach too but I tried to set it up a few years ago and it was pretty painful. So I never got to fully functional. Are you actually using that set up and if so, do you think it's worth the effort?
Re:A Minimal Email Client by shakow on Thursday February 25, 2021 @04:50PM (#26268793)
A surprisingly pleasant, albeit convoluted, way to install it is, if you're already using Nix and/or NixOS, to use home-manager (https://rycee.gitlab.io/home-manager/) for that. You just have to set the settings of your account, and it will automagically link together msmtp, mu, offlineimap and emacs/astroid.
Re:A Minimal Email Client by ashton314 on Thursday February 25, 2021 @05:17PM (#26269044)
I use mbsync, mu, and the Emacs client mu4e, and I’ve never been happier with my mail. Pretty straight-forward setup.
Re:A Minimal Email Client by gspr on Thursday February 25, 2021 @06:00PM (#26269442)
Been using it for 3 years. Loving it. Let me know if you wanna see the configuration files.
Re:A Minimal Email Client by 3np on Friday February 26, 2021 @01:22AM (#26271859)
Seems to be a lot of collective experience here with customizing e-mail pipelines.

I'm just getting my ducks in a row for migrating to fully self-hosted e-mail and I have an idea of what I want but I'm not sure how best to achieve it. I have not yet fully settled on any part of the stack. What I want:

Catch-all e-mail addresses with dynamic filtering/folders based on address. For example, say I have the domain myemail.com. I'd like to be able to register at sketchysite.com with [email protected]. It should get filtered to its own inbox/folder. All these should be accessible from the same application/view/search space inside my e-mail client. I should not have to add new inboxes as they come and go (many will be ephemeral), either on client or server side.

By default, replying to an e-mail will always use the recipient address as the sender.

Has anybody set up something similar? Any particular client or server you would say is suitable/unsuitable?

Only hard requirements are FOSS, Linux, IMAP.

Re:A Minimal Email Client by joshka on Friday February 26, 2021 @02:28AM (#26272193)
Fastmail works like this out of the box if you can stand a web interface.
Re:A Minimal Email Client by 3np on Friday February 26, 2021 @03:01AM (#26272369)
Needs to be fully self-hosted. Web interface is all good otherwise, though.