《NetBSD指南-26.3.用mutt读写邮件》

NetBSD用户指南中文版、NetBSD pkgsrc指南中文版...

版主: lionux

主题已锁定
头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

《NetBSD指南-26.3.用mutt读写邮件》

帖子 leo » 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:
  • 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
Please note that mutt supports color, but this depends on the terminal settings. Under X you can use "xterm-color", for example:

代码: 全选

$ env TERM=xterm-color mutt

主题已锁定

在线用户

正浏览此版面之用户: 没有注册用户 和 2 访客