以下就是我在网上找到的资料. 其中, smtp中的yourusername是要写全名的,也就是要包含@gmail.com.
## ~/.mutt/muttrc
set from=yourusername@gmail.com
# 你在gmail.com的邮箱地址
set realname="Simon"
# 比如,王小二
set reverse_name=yes
set reverse_realname=
set imap_user = 'yourusername@gmail.com'
#gmail邮箱的IMAP用户名嗯
set spoolfile = imaps://imap.gmail.com:993/INBOX
#set sendmail="/usr/sbin/ssmtp -C$HOME/.mutt/ssmtp.conf"
set smtp_url="smtp://yourusername@smtp.gmail.com:587/"
#也是要把yourusername替换成相应的你的用户名
set folder = "imaps://imap.gmail.com:993"
#set record=+sent-mail-`date +%Y`
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# previously do: mkdir -p ~/.mutt/cache/{headers,bodies}
set header_cache="~/.mutt/cache/headers"
set message_cachedir="~/.mutt/cache/bodies"
set certificate_file=~/.mutt/certificates
set move=no
set delete=yes
set edit_hdrs
set include
set reply_to
set abort_nosubject=no
alternates '(username|altusername)([-+].*)?@.*'
set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index
hdr_order From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject:
ignore *
unignore From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject:
my_hdr Reply-To:
# setup gmail filters to apply the corresp. labels:
mailboxes ! =ml-lug-list =ml-lug-org =[Gmail]/Drafts "=[Gmail]/All Mail"
set editor="emacsclient %s"
没有评论:
发表评论