Chinaunix首页 | 论坛 | 博客
  • 博客访问: 41265
  • 博文数量: 15
  • 博客积分: 403
  • 博客等级: 一等列兵
  • 技术积分: 155
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-28 22:44
个人简介

This is the blog site of Shaka, who comes from China. Being passionate and creative, he loves peace, freedom and life. He has a variety of interests, and is also an open-source software amateur. He loves Unix/Linux, \LaTeX{}, MetaPost, Emacs, Vim, etc.

文章分类

全部博文(15)

文章存档

2015年(1)

2014年(1)

2012年(2)

2010年(11)

我的朋友

分类: 系统运维

2012-02-03 21:14:34

Mutt is a text-based but powerful mail user agent (MUA) in the world of Unix/Linux. Originally, it is nothing but a MUA. However, it can make use of other programs to edit, send and receive mails. For example, it uses vim to edit mails, msmtp to send mails and getmail to receive mails. This is just the philosophy of Unix.

In ArchLinux operation system (OS), the mutt package is compiled with interactive mail access protocol (IMAP), post office protocol (POP) 3 and simple message transfer protocol (SMTP) support. In this case, mutt not only can manage mails, but also can send and receive mails. At least for me, it’s the best choice.

Above all, the package can be installed by “pacman -S mutt”. Then create a configuration file “muttrc” in “~/.mutt” with the content below:

## imap settings
set folder=”imaps://imap.gmail.com/”
set spoolfile=”+INBOX”
set postponed=”+[Gmail]/Drafts”
set record=”+[Gmail]/Sent Mail”
mailboxes ”+INBOX”
set imap_user=”ID@gmail.com”
set imap_pass=”PASSWORD”
set imap_keepalive=300
set mail_check=120

## smtp settings
set smtp_url=”smtp://$imap_user:$imap_pass@smtp.gmail.com”
set ssl_force_tls=”yes”

## other settings
set realname=”Shaka”
set signature=”~/.mutt/signature”
set alias_file=”~/.mutt/alias”
source $alias_file
set header_cache=”~/.mutt/header_cache”
set pager_stop=”yes”
set editor=”vim”
set indent_str=”>”
auto_view text/html

where, “ID” and “PASSWORD” are respectively ID and password for my Gmail account. “~/.mutt/signature” is my signature file, which will be appended at the end of each mail before sent. “~/.mutt/alias” is my contact list. The entry ‘set pager_stop=”yes”‘ is used to stop pager to read next mail when it arrives at the end of current one. In addition, vim is the my favorite editor and I edit mails with it.

阅读(318) | 评论(0) | 转发(0) |
0

上一篇:修复grub

下一篇:Mobility management in LTE

给主人留下些什么吧!~~