Mutt e-mail client (Mail User Agent (MUA)) with a text interface for * nix like systems. Initially mutt can only read mail, but the latest versions are able to receive, send and filter e-mail messages.

From personal experience (1.2 years), I can say that the mutt was replaced for me all email clients I tried: the different web muzzle, thunderbird, claws, gear. It is not because you can connect your favorite editor (for example, of vim ) for editing text :), and it impresses with its minimalist, easy and of course the possibility to hone by itself. Especially noticeable speed of reaction on a netbook, for which web muzzle Google Mail in some places very well, slow.

setting

# Under ArchLinux
yaourt -S mutt

# Underneath of Ubuntu 
the sudo the apt-the get the install the openssl mutt

The main configuration file can be located in ~ / .muttrc or ~ / .mutt / muttrc . Example of my ~ / .muttrc .

For IMAP will be enough to register local directories (inbox, outbox, etc.). But for POP3 need to manually create a local directory.

To view the mailbox of a user is sufficient to run mutt -f /path/to/mail/john(such as a server).

General settings

# Vim ~ / .muttrc

the set realname = "Satvik Jain" 
the set use_from = yes or The
 the set editor = 'of vim -c "the set spell spelllang = en_us, en_us"' 
# see the when editing the The headers 
# the set edit_headers 
# The sort by newest first conversation. 
the set The sort = reverse-threads
 the set sort_aux = for last-date-the Received

Skipping confirmation # 
the set fast_reply = yes or The         # the when replying, do not address the prompt for 
the set the include = yes or The            # the include original text on the reply? 
the set forward_quote = yes or The      # the include original text on the forward? 
the set the delete = yes or The             # do not the ask for the delete confirmation

IMAP Configuration Example (on an example of GMail)

# Vim ~ / .muttrc

the set  from = yourmail@gmail.com
 the set imap_user = yourmail@gmail.com
 the set imap_pass = secret
 the set smtp_url = the smtp: //yourmail@smtp.gmail.com:587/ 
the set smtp_pass = secret

Do not the let # the firewall the kill your your the idle connection 
the set imap_keepalive = 900

Do not copy-# mail address sent 
the set copy-the no =
 the set the move the no =

the set folder = imaps: //imap.gmail.com:993 
the set spoolfile = + the INBOX #or + [the Gmail] / Important 
the set postponed = + [the Gmail] / Drafts

Cache # 
the set header_cache = ~ / .mutt / cache / The headers
 the set message_cachedir = ~ / .mutt / cache / Bodies
 the set certificate_file = ~ / .mutt / certificates

POP3 setting example (for example, for your domain example.com)

We can use one of the following mailboxes:

  • the mbox – a single file with all the letters;
  • the maildir – a set of directories (it is considered a faster version).

I use getmail to receive mail

# Under ArchLinux 
yaourt -S getmail

Create the desired directory

the mkdir -p ~ /.mutt/cache 
the mkdir ~ /.getmail
~ the mkdir / .mail
 the mkdir -p ~ /.mail/ {cur, new, tmp directory}

Set the options for receiving mail

# Vim ~ / .getmail / getmailrc

[Retriever]
of the type = SimplePOP3Retriever
 server = mail.example.com
 the username = yourmail@example.com
 port = 110
 the password = secret

[Destination]
of the type = the Maildir
 path = ~ / .mail /

[Options]
read_all = False The

Change the permissions

chmod  700 ~ /.getmail

Let’s try to run getmail. If all goes correctly – we can add getmailin the cron to periodically check mail. The following example shows how to add getmailin the cron to check for just 10 minutes.

The crontab -e # 
* / 10 * * * * / usr / bin directory / getmail

Let us mutt where are the letters from getmail

# Vim ~ / .mutt / muttrc

The POP3 # 
the set from = yourmail@example.com
 the set mbox_ of the type = the Maildir
 the set folder = $ the HOME /.mail
 the set spoolfile = + /
 the set header_cache = ~ / .mutt / cache

SMTP settings example (for example, for your domain example.com)

vim ~ / .mutt / muttrc

the set my_pass = 'secret' 
the set my_user=yourmail@example.com
 the set smtp_url = the smtp: // $ my_user : $ my_pass @ mail.example.com
 the set record = "+ sent"                  # where clause to store sent messages 
the set postponed = "+ postponed "          # where clause to store draft messages

We can encrypt passwords using GPG.

Sending messages from the terminal atachem

Sending text messages

mutt -s "are subject" recipient pages @server .com <~ / message.txt

Sending a message with the text and file

mutt -s  "are subject" recipient@server.com -a file.zip <~ / message.txt

Aliases

Aliases are useful for quick access to contacts.

# Vim ~ / .muttrc

the set alias_file = "~ / .mutt / aliases file" 
the set sort_alias = The alias
 the set reverse_alias = yes or The
 -source  $ alias_file

Sample file with aliases

# Vim ~ / .mutt / aliases

The alias 's mom's mom @example .com

Useful shortcuts

  • m – write a letter;
  • r – Reply to the message;
  • f – To send a letter;
  • t – Change the address of the recipient;
  • c – Change the Cc field;
  • a – Attach a file to;
  • y – to send a letter;
  • стрелки вверх/внизor j/k– to move between letters are not marked for deletion;
  • J/K – Move between letters marked for removal;
  • / – Search (in the sender / subject if you are in a message list, or in the message, if it is open, and the like)
  • enter – Read the letter;
  • space (In the message) – go to the next letter;
  • S (In the message) – skip quoted text;
  • T – Toggle the visibility of the quoted text;
  • d – Mark the current message for deletion;
  • u– Remove the marker to delete the selected letter;
  • o – Sorting;
  • q – exit;

Appearance

I like dark colors solarized .

Ckachivaem topic

~ the cd /.mutt/ 
the git the clone the https: //github.com/altercation/mutt-colors-solarized.git

Install

#vim ~ / .muttrc
(Visited 114 times, 1 visits today)
adminTips
Mutt e-mail client (Mail User Agent (MUA)) with a text interface for * nix like systems. Initially mutt can only read mail, but the latest versions are able to receive, send and filter e-mail messages. From personal experience (1.2 years), I can say that the mutt was replaced for me...

Do you want to be notified about new DBA updates, releases, jobs and free tips? Join our email newsletter. It's fast and easy. You will be among the first to know about hot new DBA updates and stuff, it will help you enhance your DBA skills.
We take your privacy very seriously