《NetBSD指南-26.3.用mutt读写邮件》
发表于 : 2010-03-08 1:54
Mutt is one of the most popular mail programs: it is “lightweight”, easy to use and has lots of features. The man page mutt is very bare bones; the real documentation is in /usr/pkg/share/doc/mutt/, in particular manual.txt.
Mutt's configuration is defined by the ~/.muttrc file. The easiest way to create it is to copy mutt's example muttrc file (usually /usr/pkg/share/examples/mutt/sample.muttrc) to the home directory and modify it. The following example shows how to achieve some results:
Please note that mutt supports color, but this depends on the terminal settings. Under X you can use "xterm-color", for example:
Mutt's configuration is defined by the ~/.muttrc file. The easiest way to create it is to copy mutt's example muttrc file (usually /usr/pkg/share/examples/mutt/sample.muttrc) to the home directory and modify it. The following example shows how to achieve some results:
- Save a copy of sent mail.
- Define a directory and two files for incoming and outgoing mail saved by mutt (in this example the directory is ~/Mail and the files are incoming and outgoing).
- Define some colors.
- Define an alias.
代码: 全选
set copy=yes
set edit_headers
set folder="~/Mail"
unset force_name
set mbox="~/Mail/incoming"
set record="~/Mail/outgoing"
unset save_name
bind pager <up> previous-page
bind pager <down> next-page
color normal white black
color hdrdefault blue black
color indicator white blue
color markers red black
color quoted cyan black
color status white blue
color error red white
color underline yellow black
mono quoted standout
mono hdrdefault underline
mono indicator underline
mono status bold
alias pippo Pippo Verdi <[email protected]>
To start mutt:
代码: 全选
$ mutt
代码: 全选
$ env TERM=xterm-color mutt