Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem: Unified clients (Thunderbird, claws-mail, so on and so forth) are clums

ID: 661026 • Letter: P

Question

Problem: Unified clients (Thunderbird, claws-mail, so on and so forth) are clumsy to setup, imposible to script, have poor addressbook systems, and send mail weirdly. Also, they don't use my text editor of choice (vim).

The solution: Use fetchmail to get email. ... And that's where I'm stuck. I want to:

Read email, including HTML email, with formatting, see and save attachments... I prefer not using X, but I understand I'll need to for this part. Also included in this, probably, is seeing a list of emails, but that can be a separate tool that uses this one for actually reading the emails.
Compose email, preferably with Vim or something similar. I need to be able to: Attach documents, hopefully also insert them.
Send email, hopefully having some sort of addressbook, aliasing, something of the sort.

I'd like to do as much of this in a scriptable, or at least CLI, manner as possible. Just a personal preference for being able to use environments over SSH, and being able to offload, say, sending a message at the same time every day, on to a scheduler like Cron.

Explanation / Answer

Mutt is a very good terminal-based email client, which you can setup to use Vim as the default editor. It's got an address book and the features you want. I've used it for Gmail, and now Fastmail with various aliases.

It should be in the repos for most distros.

You can see and save any attachment that will display in a terminal (so you may have a little trouble with PDFs and images). Essentially it's a fully-fledged email program (like Thunderbird et al) but just terminal-based. It renders HTML pretty much similar to text-based browsers like Lynx. You can also script it (like using sendmail but with IMAP, etc.) - I do for sending emails from our server so the emails don't end up in spam, and schedule it to a decent time of day.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote