Use the mutt email client to manage your Gmail

Source: Internet
Author: User
Tags all mail

Original article: http://www.guao.hk/posts/httplifehacker-com5574557how-to-use-the-fast-and-powerful-mutt-email-client-with-gmail.html

Are you a terminal enthusiast + keyboard controller? If you can use Gmail on this interface, will you be excited?

That is, mutt, a text-interface-based email client.ProgramNext, we will briefly introduce how to install and set up to use mutt to send and receive Gmail emails.

Install mutt:

If you are using the Ubuntu operating system, APT is the simplest method:

Sudo apt-Get install mutt

If you are a fruit user, you 'd better use a third-party software package management program. The macports command is

Sudo port-VC install mutt-devel + gnuregex + gpgme + headercache + IMAP + SASL + SMTP + SSL + tokyocabinet

Maybe you prefer homebrew:

Brew install mutt

Next, you need to create several directories for mutt to cache the mail content and save the certificate.

Mkdir-P ~ /. Mutt/Cache/Headers
Mkdir ~ /. Mutt/Cache/bodies
Touch ~ /. Mutt/certificates

Next, write a configuration file and save the following content ~ /. Muttrc and modify it as needed:

 

# A basic. muttrc for use with Gmail

# Modify the following parts based on your account

Set imap_user = "YOUR.EMAIL@gmail.com"
Set imap_pass = "password"
Set smtp_url = "SMTP: // YOUR.EMAIL@smtp.gmail.com: 587 /"
Set smtp_pass = "password"
Set From = "YOUR.EMAIL@gmail.com"
Set realname = "your name"

# Select your preferred text editor, such as nano and Emacs.
Set Editor = "Vim"

# Basic config, you can leave this as is
Set folder = "IMAPs: // imap.gmail.com: 993"
Set spoolfile = "+ inbox"
Set imap_check_subscribed
Set hostname = gmail.com
Set mail_check= 120
Set timeout = 300
Set imap_keepalive = 300
Set postponed = "+ [gmail]/drafts"
Set record = "+ [gmail]/sent mail"
Set header_cache = ~ /. Mutt/Cache/Headers
Set message_cachedir = ~ /. Mutt/Cache/bodies
Set certificate_file = ~ /. Mutt/certificates
Set move = No
Set include
Set sort = 'threads'
Set sort_aux = 'reverse-last-date-received'
Set auto_tag = Yes
Ignore "authentication-Results :"
Ignore "domainkey-Signature :"
Ignore "dkim-Signature :"
Hdr_order date from to CC
Alternative_order text/plain text/html *
Auto_view text/html
Bind Editor <tab> complete-Query
Bind editor ^ t complete
Bind Editor <space> Noop

# Gmail-style keyboard shortcuts keyboard shortcut setting, which is the same as Gmail Web
Macro index, pager y "<enter-command> unset trash \ n <Delete-message>" "Gmail archive message"
Macro index, pager D "<enter-command> set trash = \" IMAPs: // imap.googlemail.com/?gmail=/bin\ "\ n <Delete-message>" "Gmail Delete message"
Macro index, pager Gi "<change-Folder> = inbox <enter>" go to inbox"
Macro index, pager Ga "<change-Folder> = [gmail]/all mail <enter>" "Go to all mail"
Macro index, pager Gs "<change-Folder> = [gmail]/starred <enter>" "Go to starred messages"
Macro index, pager GD "<change-Folder> = [gmail]/drafts <enter>" "Go to drafts"

OK. Enter mutt on the terminal and you can finally run it! When the system runs for the first time, it will prompt you to confirm the two Google certificates and press the 'A' key to accept them forever. In the future, this problem will not bother you. If you do not write a password in the configuration file, mutt will prompt you to enter the password. If your password is in the configuration file, you should be able to enter the mutt interface. Some basic operation commands are as follows:

    • J move down
    • K move up
    • D. delete an email.
    • Y archive email
    • GI enters the inbox
    • Ga view all emails
    • GD view draft
    • GS incoming star mail
    • S save, such as S = work, press enter to tag the current email with work
    • T mark. You can mark multiple emails and then perform the S or D operation.
    • C. Jump to another folder, such as C = work. Press enter to enter the work tag email list.
    • /Search in the current folder
      Note that the operations in Mutt are not synchronized in real time. Your deletion and other operations are only marked with no actual operations. The action in your queue will not be executed until you press the $ key.

Sending emails in Mutt is also very simple. The process is as follows:

      • Input M (R for return)
      • Enter the recipient's email address and press Enter.
      • Enter the title and press Enter.
      • Edit Email body
      • Save
      • Send by Y
      • Work done!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.