一開始,當然是先打開gmail的imap傳輸功能, 官方說明:http://support.google.com/mail/bin/answer.py?hl=zh-Hant&answer=13273
(待續...)
接下來就是要配置~/.muttrc檔了!參考自http://www.andrews-corner.org/mutt.html
.muttrc
#.muttrc #======================================================# # Folders set folder = "imaps://imap.gmail.com:993" set spoolfile = "+INBOX" set postponed ="+[Gmail]/Drafts" set trash = "imaps://imap.gmail.com/[Gmail]/Trash" set mbox_type=mbox # Mailbox type set move=no # Don't move mail from spool #======================================================# # which editor do you want to use? # vim of course! #set editor="vim -c 'set tw=70 et' '+/^$' 'set formatoptions+=mM' " set editor="vim -c 'set tw=70 et' '+/^$' " set edit_headers=yes # See the headers when editing #======================================================# # Aliases set alias_file = ~/mail/mutt_aliases # In their own file source ~/mail/mutt_aliases # Source them set sort_alias=alias # Sort alphabetically set sort_aux=reverse-date #======================================================# # Colours: defaults are a little bleak so experiment! source ~/mutt/mutt_colors # In their own file #======================================================# # Odds and ends set markers # mark wrapped lines of text in the pager with a + set smart_wrap # Don't wrap mid-word set pager_context=5 # Retain 5 lines of previous page when scrolling. set status_on_top # Status bar on top. push <show-version> # Shows mutt version at startup charset-hook ^iso-8859-1$ utf-8 #set allow_8bit # Don't do any Quoted-Printable encoding on 8-bit data! set rfc2047_parameters=yes #unset strict_mime #這個要設成no, assumed_charset才會有用 #charset-hook ^us-ascii$ big5 set assumed_charset="big5:gb2312:gbk:gb18030:utf-8"# set charset="utf-8" #charset-hook !UTF-8 big5 #set send_charset="big5:gb2312:utf-8:us-ascii:iso-8859-1" set locale="zh_TW.UTF-8" set imap_user = "username@gmail.com" #set imap_pass = "" set header_cache =~/.mutt/cache/headers set message_cachedir =~/.mutt/cache/bodies set certificate_file =~/.mutt/certificates set smtp_url = "smtp://username@smtp.gmail.com:587/" #set smtp_pass = "" set imap_keepalive = 900 set move = no~/mutt/mutt_colors
color index blue black Motorola color index brightyellow black Seasar color index brightwhite brightgreen uclibc color header brightyellow black subject color hdrdefault brightwhite black color quoted brightgreen black color status white cyan color indicator default green color normal brightwhite black