6 ms·
Mutt’s secret sauce (2017)
- epilys 4y agoTry https://github.com/meli/meli/ https://github.com/meli/meli/ it's mostly stable and doesn't have the problems described in the article. Development's on hold due to some personal factors but it's going to be picked up again.
- mr_mitm 4y agoIt took me way too long to figure out that this article is about endowing mutt with the capability of sending HTML mails. Something I don't even care for, as the article correctly points out. "How I send HTML mails with mutt" would have been a better title.
- deleted 4y ago[deleted]
- MontyCarloHall 4y agoIn summary: in order to display HTML emails using Mutt, the author developed a system to automatically pipe them to a tool that parses plaintext multipart MIME messages and converts them to an HTML file, which gets displayed in an auto-reloading Firefox tab. The author also set up the reverse system to compose email, piping markdown to pandoc (which also gets previewed in an auto-reloading browser tab). What is so compelling about a terminal-based email client like Mutt that makes it worthwhile to jump through the hoops to do this, rather than simply using a regular GUI client? I agree that some terminal-based tools are unequivocally far more powerful than GUI alternatives for certain tasks. For example, as a batch processing pipeline (especially when text is involved), the UNIX shell is second-to-none (e.g. “take all CSV files modified in a certain date range, whose name matches a certain regex, and extract all members of fields A-F if field Z matches a certain regex, then sort the result by field D” is an easy shell one-liner). Editors like vim and emacs make it much faster to edit text, due to their powerful editing, navigation, and search/replace features that aren't found in any other editor (e.g. single keystrokes let you replace everything within the current bracket scope, replace everything up to the next "B", or delete the next two sentences). We put up with the (massive!) shortcomings of a terminal environment because these tools are just that much more powerful. I don't see how a terminal-based email client like Mutt is equivalently that much more powerful than its GUI brethren. And yes, I've tried it, and wasn't impressed—it basically felt like an ncurses rendering of Thunderbird, with a similar feature set sans the ability to easily view HTML email or attachments. Yes, it’s more hackable than Thunderbird, but at the end of the day its hackability doesn’t make me a more productive email user.
- leephillips 4y agoI’ve used mutt for many years as my only email client because it’s fast, configurable, powerful, and, most important of all, not broken: https://lwn.net/Articles/837960/ https://lwn.net/Articles/837960/ I don’t have any problem with HTML email. Mutt formats it inline using links (my current choice), and if I want to see the graphical version, I just hit `v` to open the attachment menu, hit the arrow to put the cursor on the HTML attachment, and hit RETURN to pop it open in my browser.
- Zhyl 4y agoThe killer feature that did it for me was being able to bulk manage/delete email, keep an offline copy and (hence) enable full text search when offline. I was in a situation where I couldn't quite get a grip on all the newsletters and spam that had accumulated, so I paid for a SaaS service to sort mail, delete and highlight for unsubscribing. When I was able to get neomutt set up (with Luke Smith's mutt-wizard scripts), I found it was pretty easy to do these things with just a few button pressed. Since it's a terminal app it feels very responsive, so you get the removal of friction between thought and action that you do with vim. I've tried to do the same with outlook on my work Windows machine and it's not as smooth - I probably wouldn't have bothered if I hadn't got the usage pattern down in neomutt. I use Gmail for a lot of my rules and filtering, but I realise that if I ever wanted to leave Gmail then many of these 'smart' features wouldn't be available in the same way. I would, however, be able to script similar rules in mutt which takes a lot of overhead out of my email/communication/personal organisation. Also neomutt/maildir makes it easy to use your email in scripts. You can use them as triggers or as a data source - they're just available in plain text format. So yes, a lot of advantages, probably most could be emulated in GUIs, but it does sit much more neatly with Unix/terminal ways of working.
- dmitriid 4y ago> Editors like vim and emacs make it much faster to edit text, due to their powerful editing, navigation, and search/replace features that aren't found in any other editor This claim is dubious at best. While a power user may, in fact, be reasonably fast with some types of text, for most users these types of tasks rarely occur, are already a part of the editor, or can be as quickly done with existing tools. (For example, context-aware selects and proper refactoring in IDEA beat anything vim/emacs have to offer any day, and twice on Sundays)
- leephillips 4y agoThe author writes, “my plain text emails, written with glorious 80 column limit, would be viewed with random line breaks on mobile clients” He’s doing it wrong. You should write your emails with a 998 character limit. Only add linebreaks between paragraphs. If your paragraph is going longer than 998 characters, recast. This way, the client will break the lines properly and the reader won’t have to read a chaotic mess of random linebreaks. Your email will look good on phones and everywhere else.
- taviso 4y agoI'm a fellow mutt user - I've always used ~80 column limit... it makes me wince thinking of removing it! I do hear from non-nerd contacts asking about the line breaks, perhaps you're right, maybe it's time!
- quesera 4y agoI used to do the same. Sometimes I would remember to squash my convenience linebreaks back down into real paragraphs for the recipient. I assume you use vim or emacs for editing -- vertical movement between lines is more convenient than movement within a single wrapped line. In vim, you can use gj or gk for vertical movement within a wrapped line. At some point I decided to make the arrow keys more useful: map <silent> <Up> gk map <silent> <Down> gj
- leephillips 4y agoTry it. You’ll never go back.
- CogitoCogito 4y agoWhy 998?
- leephillips 4y agoIt's part of the email specification. Look at https://www.rfc-editor.org/rfc/rfc5322#section-2.1.1 https://www.rfc-editor.org/rfc/rfc5322#section-2.1.1.
- clircle 4y agoI used to use mu4e or notmuch for email, but now I know my readers massively benefit from formatting emails with html -- mostly for emphasis to make my long emails easy to digest and skim. And I can't live without the calendar integration in Outlook or Thunderbird. I'm okay with a terminal todo list, but for calendars I think it should be GUI. I still use Emacs to compose emails. I just copy/paste to a GUI client when I'm done composing.
- gorgoiler 4y agoI love mutt but there are plenty of better tools for composing emails. If I’m trawling through messages by the dozen I’ll use mutt, but if I’m composing I’ll still use iOS mail or outlook.office.com to write something that doesn’t give me away as being, deep down, a socks-and-sandals Unix Luddite.