Skip to content

@hemanth /mutt-gmail-conf.bash

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Mutt+Gamil+SSL+Lables+Auto contact suggestions
# Set the basic credencials
set imap_user= ''
set imap_pass= 'password'
set hostname = ""
set realname = "gmailUser"
# Set GMAIL specific folders likem sent mail, drafts, All mail
set spoolfile = "imaps://"
set folder = "imaps://"
set record = "imaps://[Gmail]/Sent Mail"
set postponed = "imaps://[Gmail]/Drafts"
set mbox = "imaps://[Gmail]/All Mail"
set trash = "imaps://[Gmail]/Trash"
# The below is for contact listing
# Get GoogleCl :
# sudo apt-get install python-gdata
# sudo dpkg -i
# The while filling the TO: field in the mail Hit "q" and "^T" to get the list.
set query_command = "google contacts list --title '(?i).*%s'"
# SMTP settings
set smtp_url="smtp://"
set smtp_pass='password'
# Sort mails
set sort=threads
set sort_aux=last-date-received
# Cache for speed
set header_cache=~/.hcache
set message_cachedir=~/.mcache
# activate TLS
set ssl_starttls=yes
# always use SSL
set ssl_force_tls=yes
# Don't wait
unset imap_passive
# Automatically poll
set imap_check_subscribed
# Polling frequency
set mail_check=60
# Poll the current mailbox
set timeout=10
# Display download progress every 5K
set net_inc=5
# Set macros to access labels:
macro index gi "<change-folder> =[Gmail]/All<tab><enter>" "Go to inbox"
macro index gu "<change-folder> =MyLabel<tab><enter>" "Go to MyLabel"
macro index gs "<change-folder> =[Gmail]/Sent<tab><enter>" "Go to sent mail"
# If you have GNU GPG keys and you use them, do :
source /usr/share/doc/mutt/examples/gpg.rc
# In the mail screen, press "p" it will show the pgp menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.