Mutt

From Indie IT Wiki

A small but very powerful text-based mail client for Unix operating systems.

IMAP

https://gitlab.com/muttmua/mutt/-/wikis/MuttGuide/UseIMAP

HOWTO: Set From Address

Edit your ~/.muttrc file and add the following line...

set from="John Smith <john.smith@domain.com>"

Thanks - http://stackoverflow.com/questions/12158201/how-to-change-the-senders-name-or-e-mail-address-in-mutt

System Wide Settings

/etc/Muttrc

## tweaks
set mbox_type=maildir
set editor="nano"
# I like to see all my mail headers in my editor:
set edit_headers=yes
# don't wait for sendmail to finish (this runs sendmail in the background)
set sendmail_wait=-1
# this prevents Mutt from endlessly asking when you quit:
#     "Move read messages to ~/mbox? ([no]/yes):"
set move=no
# this prevents Mutt from endlessly asking:
#     "~/Mail does not exist. Create it? ([yes]/no):"
set folder=""

HOWTO: Show All Headers

Press the h key!

Or...

Edit your ~/.muttrc file and add the following line...

unignore *

https://wiki.gentoo.org/wiki/Mutt

HOWTO: Attach A File

echo "message body" |mutt -s "message subject" -a "/path/to/file" -- me@mydomain.com

HOWTO: Use On The Command Line

Mutt command is used to send mail from command prompt. Using mutt command it is easy to add an attachment in the mail

Options:

-s Used to specify the subject,
-c Used to send carbon copies,
-v Verbose it will show how mail sends,
-a Used to attach a file.

First Method to attach a file and send from command prompt. Attach the file s.zip and mail body from c.txt file...

mutt -s "I am the subject" -a s.zip raj@gmail.com < c.txt

Second Method to attach a file and send from command prompt. Gets body of the mail from the standard output of echo command...

echo "I am the body of the mail" |mutt -s "subject of mail" -a attach.txt raj@gmail.com

Third Method to attach a file and send from command prompt. How to send a mail with cc...

echo "I am the content of the mail" |mutt -s "subject of mail" -a attach.txt raj@gmail.com -c dhana@gmail.com

http://crunchbanglinux.org/wiki/howto/howto_setup_mutt_with_gmail_imap

Allow Editing Of From: Address

nano ~/.muttrc

...and add the following line:-

set edit_headers = yes

Make Background Colour Black

Create a Mutt run control configuration file in your home directory...

nano ~/.muttrc

...and add the following line:-

color normal default default