[Chester LUG] mutt configuration

Fintan Gaughan fgaughan at gmail.com
Thu May 29 22:57:15 UTC 2008


Michael

a bit messy as my muttrc was so long and too many folder hooks for
different jobs  etc
anyway this will do below
just configure from line 1 to 18

The trick is to coment and uncomment the hash and see what it
does,thats how i learnt
Mutt.

Belive me once you use mutt after a few weeks you will never go back
to any other mail client :-)
any more questions just ask....

Fintan




#configure
set imap_user = 'username at gmail.com'
set imap_pass = 'password'
set smtp_url = "smtp://username@smtp.gmail.com:587/"
set smtp_pass = "password"
set from = "username at gmail.com"
set realname = "Bob Smith"
##end of configuration##

set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"

### below you should have/create a folder in home directory called .mutt
set header_cache="~/.mutt/cache/headers"
set message_cachedir="~/.mutt/cache/bodies"
set certificate_file=~/.mutt/certificates
###



set move = no



# Ignore all headers
ignore *

# Then un-ignore the ones I want to see
unignore From:
unignore To:
unignore Reply-To:
unignore Mail-Followup-To:
unignore Subject:
unignore Date:
unignore Organization:
unignore Newsgroups:
unignore CC:
unignore BCC:
unignore X-Mailer:
unignore User-Agent:


# Now order the visable header lines
hdr_order From: Subject: To: CC: BCC: Reply-To: Mail-Followup-To:
Date: Organization: User-Agent: X-Mailer:







#set alias_file=~/.mutt/aliases            # Keep aliases in this file.
#set reverse_alias=yes
set postpone=ask-no                       # Ask about postponing.
set postponed=+postponed                  # Where postponed messages live.
set nomove                                # Hold messages in $MAIL.
set print=ask-yes                         # Ask before printing.
set delete=ask-yes                        # Ask before doing a delete.
set include                               # Include the message in replies.
set sort_aux=date-received                # Sort threads by date received.

                                          # Attribution line.
set attribution="* %n <%a> [%{%Y-%m-%d %H:%M:%S %Z}]:\n"
set edit_headers                          # I want to edit the message headers.
set nomark_old                            # Don't mark unread new msgs as old.

set copy                                  # Keep copies of outgoing mail...
set nobeep                                # We don't need no beeping software.
set smart_wrap                            # Don't want smart wrapping.
set nomarkers                             # Don't want any wrap markers.
set mime_forward                          # Forward message as MIME attachments.
set pager_context=3                       # Display 3 lines of context in pager.
set nostrict_threads                      # Lets have some fuzzy threading.
set fcc_clear                             # Keep fcc's clear of
signatues and encryption.
set nopipe_decode                         # Don't decode messages when piping.
					  # Print via a2ps
set print_command="a2ps -1gEmail --borders=no --strip=3"
set tilde                                 # Fill out messages with '~'.
set read_inc=100                          # Read counter ticks every 100 msgs.
set write_inc=100                         # Write counter ticks every 100 msgs.
set noconfirmappend                       # Just append, don't hassle me.
set pager_stop                            # Don't skip msgs on next page.

                                          # What we consider to be a quote.
set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set to_chars=" +TCF "                     # Drop the "L".




# HTML is the last option.
alternative_order text/enriched text/plain text/html




#  get mutt to display its version on startup.
push <show-version>








# -*- muttrc -*-
#
# Colour settings for mutt.
#

# Default colour definitions
color hdrdefault black        cyan
color quoted     red          white
color signature  brightblack  white
color indicator  brightwhite  red
color attachment black        green
color error      red          white
color message    blue         white
color search     brightwhite  magenta
color status     brightyellow blue
color tree       red          white
color normal     blue         white
color tilde      green        white
color bold       brightyellow white
color markers    red          white

# Colour definitions when on a mono screen
mono bold      bold
mono underline underline
mono indicator reverse



# Colours for items in the index
color index brightblue  white ~N
color index brightgreen white "~N (~x gaughan\.co\.uk | ~h
\"^In-[Rr]eply-[Tt]o: .*gaughan\.co\.uk\")"
color index red         white ~F
color index black       green ~T
color index brightwhite black ~D
mono  index bold              ~N
mono  index bold              ~F
mono  index bold              ~T
mono  index bold              ~D

# Highlights inside the body of a message.

# URLs
color body brightblue  white "(http|https|ftp|news|telnet|finger)://[^
\">\t\r\n]*"
color body brightblue  white "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
color body brightblue  white "news:[^ \">\t\r\n]*"
mono  body bold              "(http|https|ftp|news|telnet|finger)://[^
\">\t\r\n]*"
mono  body bold              "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono  body bold              "news:[^ \">\t\r\n]*"

# email addresses
color body brightblue  white "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
mono  body bold              "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"

# Various smilies and the like
color body brightgreen white "<[Gg]>"
          # <g>
color body brightgreen white "<[Bb][Gg]>"
          # <bg>
color body brightgreen white " [;:]-*[)>(<|]"
          # :-) etc...
color body brightblue  white
"(^|[[:space:]])\\*[^[:space:]]+\\*([[:space:]]|$)" # *Bold* text.
color body brightblue  white
"(^|[[:space:]])_[^[:space:]]+_([[:space:]]|$)"     # _Underlined_
text.
color body brightblue  white
"(^|[[:space:]])/[^[:space:]]+/([[:space:]]|$)"     # /Italic/ text.


# -*- muttrc -*-
#
# Tell mutt which MIME types to auto-view
#

auto_view application/zip
auto_view application/x-gzip
auto_view application/x-gunzip
auto_view application/pgp-signature
auto_view application/pgp
auto_view application/octet-stream
auto_view application/x-zip-compressed
auto_view application/x-arj-compressed
auto_view application/x-tar-gz
auto_view application/ms-tnef
auto_view application/x-perl
auto_view application/x-sh
auto_view application/x-tcl
auto_view application/x-delphi-source
auto_view application/emacs-lisp
auto_view application/msword
auto_view text/x-patch
auto_view text/html
auto_view text/x-vcard
auto_view text/x-script.elisp
auto_view text/x-lisp
auto_view text/x-diff
auto_view image/tiff


# macros for mutt.

# Macros for use in the index.
macro index "\Cx\Cb" "<change-folder>?"
   # Folder list.
macro index "\Cx\Cs" "<pipe-message>cat > ~/"
   # Save message
macro index "\'"     "<clear-flag>r"
   # Mark as un-replied
macro index "y"
"<sync-mailbox><change-folder>?<toggle-mailboxes>"   # "-y" screen
macro index "o"    "<pipe-message>urlview<enter>"
 # URL viewer.
macro index "\ea"    "<change-folder>=archives/<tab><tab>"
   # List archives


# Macros for use in the pager.
macro pager "w"      "<enter-command>set invsmart_wrap
invmarkers<enter>" # Toggle wrap stuff
macro pager "y"
"<sync-mailbox><change-folder>?<toggle-mailboxes>"   # "-y" screen
macro pager "o"    "<pipe-message>urlview<enter>"
 # URL viewer.
macro pager "\Cx\Cb" "<change-folder>?"
   # Folder list.
macro pager "\Cx\Cs" "<pipe-message>cat > ~/"
   # Save message
macro pager "\eh"    "<pipe-message>mailhops<enter>"
   # View the path of the mail.

# Provide some "on-line" help.
macro generic "\e?" "<shell-escape>less /usr/local/doc/mutt/manual.txt<enter>"
macro index   "\e?" "<shell-escape>less /usr/local/doc/mutt/manual.txt<enter>"
macro pager   "\e?" "<shell-escape>less /usr/local/doc/mutt/manual.txt<enter>"







# -*- muttrc -*-

# Use the global defaults first.
#source ~/.mutt/defaults.global

# This is the index format for mailing lists.
#set index_format="%4C %Z %{%b %d} %-15.15n (%4l) %s"

#Sort on threads
set sort=threads

# Give mailing lists a more "slrn" like feel.
set pager_index_lines=9




More information about the Chester mailing list