|
|
在网上找到一个关于mutt配置的文章,大家可以看一下。不错的。
按照自己的需要适当的改一些地方,比如自己的信箱地址等。还有color的设置在我这不太有用,大家可以按照自己需要的改或参考AMD-64或按缺省的也行
[HTML]
## will's muttrc
## first the actual .muttrc file:
#################################
# local configuration first
source ~/.mutt/local
# then set options for spoolfile
source ~/.mutt/spool
# mailboxes to check up on
source ~/.mutt/mailboxes
# then options
source ~/.mutt/options
# pretty colors
source ~/.mutt/colors
# outgoing headers
source ~/.mutt/me
# get aliases
source ~/.mutt/aliases
## .mutt/local
#################################
## local config stuff
## i have files for various locations (defined in my .zshrc based on
## where i'm connected from via ssh.
### select editor based on my location
source `echo ~/.mutt/${MY_LOCATION}`
## .mutt/spool
#################################
## spool - set local options for spool type, fcc and trash folders
# spoolfile is Maildir
set spoolfile=~/Maildir
# keep mail in the same directory as the spool
set mbox=~/Maildir
# use Maildir format instead of mbox
set mbox_type=Maildir
# Folders are inside mail
set folder=~/mail
# we are using qmail-inject instead of sendmail
set sendmail="/var/qmail/bin/qmail-inject -h"
# place messages in .sent-mail folder
#fcc-hook $ +sent-mail
# try using 'record' instead
set record =~/mail/sent-mail
# put messages in trash when deleting
macro index d "<save-message>=Trash\n"
macro pager d "<save-message>=Trash\n"
## .mutt/mailboxes
#################################
## set mailboxes to look in
mailboxes !
mailboxes +info
#<some mailboxes removed>
mailboxes +saved
mailboxes +saved:contact
mailboxes +saved:info
mailboxes +saved:lists
mailboxes +sent-mail
## .mutt/options
#################################
###general options
###
## set alias file
set alias_file=~/.mutt/aliases
## don't ask when appending message to an existing folder
unset confirmappend
## probably not needed as it's the default
#set nosave_name
## don't ask me when deleting
set delete=yes
## disply alias names
set reverse_alias
###compose / editing stuff
###
## allow editing headers in editor
set edit_headers
## include message in reply
set include=yes
## from like pine - bind control-x to send-message
bind compose \cx send-message
###pager stuff
###
## don't mark messages as old if i haven't read them
unset mark_old
## i don't like the annoying + markers at the beginning of wrapped lines
unset markers
## stop after the end of a message
set pager_stop
## default is yes so probably not needed
#set smart_wrap
## pager like pine stuff
bind pager p previous-undeleted
bind pager n next-undeleted
bind pager g change-folder
bind pager , exit
bind pager c mail
bind pager w search
bind pager \n noop # PINE prints "No default action for this menu."
bind pager <up> previous-line
bind pager <down> next-line
bind pager R group-reply
###index stuff
## sort messages by thread first, then date
set sort=threads
## show message index while reading messages
set pager_index_lines=11
## index like pine stuff
bind index v display-message
bind index p previous-undeleted
bind index n next-undeleted
bind index c mail
macro index , "g?<tab>"
bind index g change-folder
bind index G change-folder
bind index w search
bind index x sync-mailbox
bind index $ sort-mailbox
bind index a tag-prefix
bind index \; tag-entry
macro index z l~T\r
###file browser stuff
## show only directories / files starting with a dot
## used to use this when i was using subfolders of Maildir which were 'hidden'
#set mask="^\\."
## only show if new mail, date, and file /directory name in browser
set folder_format="%N %f
## well for now this seems to be the best way to make Maildir show up at the top
set sort_browser=unsorted
###headers to show / ignore
## ignore everything not listed
ignore *
## show user agent / mailer
unignore user-agent: x-agent: x-mailer:
## show message-id
unignore message-id:
## show from,date,subject,to,cc,reply-to headers
unignore from date subject to cc reply-to:
## set the order of headers
hdr_order From: Reply-to: To: Cc: Subject: Date: User-Agent: Message-Id:
## .mutt/colors
#################################
## set colors
## some colors are specific to my weird eterm settings - might need to be changed
#color object foreground background patterns /expressions
## first regular stuff
color indicator brightwhite brightblue
color status white default
color tree red default
## then header patterns
color header brightblue default ^Subject:
color header brightblue default ^Cc:
color header brightblue default ^Reply-To:
color header brightred default ^From:
color header white default ^Date:
color header brightgreen default ^User-Agent:
color header brightgreen default ^X-Mailer:
color header brightblue default ^To:
## default headers are grey
color hdrdefault brightblack default
## quoted text is grey too
color quoted brightblack default
## index colors
## messages are black if new
color index black default ~N
## read messages are blue
color index brightblue default ~R
## messages from me are green (yeah i know it says yellow)
color index yellow default ~P
## body stuff
## match mailto, ftp, http and make them purple
color body magenta default (((ht|f)tps?)|mailto) //)?[^\ "\t]*|www\.[-a-z0-9.]+)[^\ .,;\t>">]
## .mutt/me
#################################
## header / envelope stuff
## masquerade host as mydomain.net
set hostname="mydomain.net"
## masquerade envelope from header as william@mydomain.net
set envelope_from
set from="william@mydomain.net"
## set name to my name
set realname="Will Yardley"
## set organization header
my_hdr Organization: New Dream Network
## alternate email addresses i may get mail to
set alternates = "(will|william)@(mydomain.net|alternate.mydomain.net|mail.alternate.mydomain.net)"
## .mutt/aliases
#################################
your aliases here
[/HTML] |
|