Skip to content

Instantly share code, notes, and snippets.

@maluta
Created November 11, 2009 16:52
Show Gist options
  • Save maluta/232101 to your computer and use it in GitHub Desktop.
Save maluta/232101 to your computer and use it in GitHub Desktop.
My muttrc configuration file to GMAIL (IMAP)
# The .muttrc file
# Tiago Maluta
set imap_user = "USERNAME@gmail.com"
set imap_pass = "PASSWORD"
#set spoolfile = imaps://imap.gmail.com:993/INBOX
set spoolfile = imaps://imap.gmail.com:993/lkml
set folder = imaps://imap.gmail.com:993
set record="imaps://imap.gmail.com/[Gmail]/Sent Mail"
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
set header_cache="~/.mutt/cache/headers"
set message_cachedir="~/.mutt/cache/bodies"
set certificate_file=~/.mutt/certificates
set move = no
set sort = 'threads'
set sort_aux = 'last-date-received'
set imap_check_subscribed
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
ignore "Received:"
ignore "Return-Path"
ignore "MIME-Version"
ignore "X-Spam-Details"
ignore "Received-SPF"
ignore "List-Id"
ignore "List-Unsubscribe"
ignore "List-Post"
ignore "List-Help"
ignore "List-Subscribe"
ignore "Content-Type"
ignore "Content-Transfer-Encoding"
ignore "Sender"
ignore "Errors-To"
ignore "X-BeenThere"
ignore "X-Mailman-Version"
ignore "Precedence"
ignore "List-Archive"
ignore "X-MIME-Autoconverted"
ignore "Message-ID"
ignore "Delivered-To"
ignore "User-Agent"
ignore "X-Spam-Score"
ignore "X-Spam-OrigSender"
ignore "X-Spam-Bar"
ignore "In-Reply-To"
ignore "References"
ignore "X-System-Of-Record"
ignore "X-YMail-OSG"
ignore "X-ELTE"
ignore "X-Mailing-List"
ignore "X-CT-RefId"
ignore "X-Auth-Type"
ignore "X-Source-IP"
ignore "X-Scanned-By"
ignore "X-Priority"
ignore "X-Mailer"
ignore "X-Greylist"
ignore "Content-Disposition"
ignore "X-Poly-FromMTA"
ignore "Mail-Followup-To"
ignore "X-Y-GMX-Trusted"
ignore "X-FuHaFi"
ignore "X-Provags-ID"
ignore "X-Authenticaded"
ignore "X-Virus-Scanned"
ignore "X-Spam-Checker-Version"
ignore "X-IronPort-AV"
ignore "X-IronPort-Anti-Spam-Result"
ignore "X-IronPort-Anti-Spam-Filtered"
ignore "X-MUA"
ignore "X-Spam-Status"
ignore "X-Virus-Status"
ignore "Organization"
ignore "X-SBRS"
ignore "X-Remote-IP"
ignore "X-IP-MAIL-FROM"
ignore "X-IP-BHB"
ignore "X-Trace"
ignore "X-MIMEDefang-Filter"
ignore "X-No-Spam-Score"
ignore "X-Junkmail-Info"
ignore "X-Junkmail-Status"
ignore "X-Junkmail-SD-Raw"
ignore "X-Junkmail-IWF"
ignore "X-Mirapoint-Received-SPF"
ignore "X-Mirapoint-IP-Reputation"
ignore "X-X-Sender"
ignore "X-XM-SPF"
ignore "X-SA-Exim-Connect-IP"
ignore "X-SA-Exim-Rcpt-To"
ignore "X-SA-Exim-Mail-From"
ignore "X-SA-Exim-Scanned"
ignore "X-Authentication-Warning"
ignore "Git-Commit-ID"
ignore "X-CRM114-CacheIDE"
ignore "X-CRM114-Status"
ignore "X-CRM114-Notice"
ignore "X-CRM114-Version"
ignore "X-Spam-Report"
ignore "X-OriginalArrivalTime"
ignore "X-Nokia-AV"
ignore "X-SecurityPolicyCheck-FJ"
ignore "X-Enigmail-Version"
ignore "X-Authority-Analysis"
ignore "X-Cloudmark-Score"
ignore "X-Originating-IP"
ignore "X-MailBox-Line"
ignore "DomainKey-Status"
ignore "X-RemoteIP"
ignore "Importance"
ignore "X-Yahoo-Newman-Property"
ignore "X-Yahoo-SMTP"
ignore "X-Yahoo-Newman-Id"
ignore "acceptlanguage"
ignore "X-MS-TNEF-Correlator"
ignore "X-MS-Has-Attach"
ignore "Thread-Topic"
ignore "Thread-Index"
ignore "Accept-Language"
ignore "Content-Language"
ignore "X-Url"
ignore "X-SRS-Rewrite"
ignore "X-Authenticated-Sender"
ignore "X-Authenticated-Sender"
ignore "X-MIMETrack"
ignore "LKML-Reference"
ignore "X-ExtLoop1"
hdr_order Date From To Cc
color attachment brightmagenta black
color error brightwhite red # errors yell at you in red
color hdrdefault red black # headers
color indicator brightyellow magenta # currently selected message
color markers brightcyan black # the + for wrapped pager lines
color message brightcyan black # informational messages, not mail
color normal white black # plain text
color quoted green black # quoted text
color search brightgreen black # hilite search patterns in the pager
color signature red black # signature (after "-- ") is red
color status brightyellow blue # status bar is yellow *on blue*
color tilde blue black # ~'s after message body
color tree red black # thread tree in index menu is magenta
color signature brightred black
color underline yellow black
color header cyan black ^(From|Subject): # Important headers
color body magenta black "(ftp|http)://[^ ]+" # picks up URLs
color body magenta black [-a-z_0-9.]+@[-a-z_0-9.]+
# Coloring quoted text - coloring the first 7 levels:
# color quoted cyan black
# color quoted1 yellow black
# color quoted2 red black
# color quoted3 green black
# color quoted4 cyan black
# color quoted5 yellow black
# color quoted6 red black
# color quoted7 green black
#
# # Colorize smileys: :-) ;-) :-/ :-(
# color body yellow black "[;:]-[)/(|]"
# color body yellow black "[;:][)/(|]"
# color body green black "[[:alpha:]]\+://[^ ]*"
#
# color index brightyellow black ~N # New
# color index yellow black ~O # Old
# color index magenta black ~F
# color index blue black ~T
# color index red black ~D
set attribution="./afh.sh -a '%n' '<%a>' |"
set indent_string="./afh.sh -q '%n' |"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment