Difference between revisions of "Mutt"
From Funtoo Linux
| Line 1: | Line 1: | ||
Mutt is a popular mail reader for Linux systems. This page is being created as a good place for people to place their mutt configurations to share with others. These configuration settings go in the user's <tt>~/.muttrc</tt> file. | Mutt is a popular mail reader for Linux systems. This page is being created as a good place for people to place their mutt configurations to share with others. These configuration settings go in the user's <tt>~/.muttrc</tt> file. | ||
| − | Essential Mutt | + | == Essential Mutt == |
<pre> | <pre> | ||
| Line 9: | Line 9: | ||
This turns off the default behavior of mutt where hitting space to scroll will automatically move to the next message when the end of the current message is reached. This is very annoying when scrolling in long emails like cron jobs, and the line above sets this behavior to off. | This turns off the default behavior of mutt where hitting space to scroll will automatically move to the next message when the end of the current message is reached. This is very annoying when scrolling in long emails like cron jobs, and the line above sets this behavior to off. | ||
| − | angry_vincent's .muttrc | + | == angry_vincent's .muttrc == |
<pre> | <pre> | ||
Revision as of 21:19, 24 January 2012
Mutt is a popular mail reader for Linux systems. This page is being created as a good place for people to place their mutt configurations to share with others. These configuration settings go in the user's ~/.muttrc file.
Essential Mutt
set pager_stop
This turns off the default behavior of mutt where hitting space to scroll will automatically move to the next message when the end of the current message is reached. This is very annoying when scrolling in long emails like cron jobs, and the line above sets this behavior to off.
angry_vincent's .muttrc
# General config
# ---------------
set folder=~/Mail # mail folder
set alias_file=~/.mail_aliases # alises file
set arrow_cursor # cursor is '->'
set attribution="%d, %n wrote:" # beginning of mail answer
set copy=yes # save mail copies
set edit_headers # edit mail header
set editor="vim" # editor
set folder_format="%t%N %-30.30f %8s" # folder list look
set index_format="%4C %Z %{%b %d} %-31.31F %N (%4c) %s" # mail list look
set mailcap_path="~/.mailcap" # path to .mailcap
set menu_scroll # scroll list by one line
set mail_check=5 # mail check interval
set pager_stop # at the end of mail do not move to next message
set postponed=+drafts # postponed mails
set print=ask-yes # ask before print
set print_command=lpr # print command
set record=+sent # where to save sent mails
set signature="~/.signature" # signature file
set visual=vim # editor caled by ~v
# mail sort
set sort=threads
set sort_aux=reverse-date-received
set sort_browser=reverse-date
ignore * # ignore headers so the mail body is not overloaded
unignore from: subject to cc mail-followup-to \
date x-mailer x-url user-agent reply-to # fieids i like to see in mail body
# Colors
color index brightcyan black ~N
color index brightyellow black ~F
color index black green ~T
color index brightred 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 brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
# email addresses
color body brightgreen black "[-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]+"
# header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
# Coloring quoted text - coloring the first 7 levels:
color quoted cyan black
color quoted1 yellow black