# Simple Mutt Config for GMail by archvortex@gmail.com # Sets up mail box in your home folder set mbox_type=maildir set mbox="~/mail/inbox/" set spoolfile="~/mail/inbox/" set folder="~/mail/" set record="~/mail/sent/" set postponed="~/mail/postponed/" #Gmail account info set from = "your username@gmail.com" set realname = "your name" set imap_user = "your username@gmail.com" set imap_pass = "your password" #My Editor set editor='your fav editor + -c "set textwidth=72" -c "set wrap" -c "set nocp" -c "?^$"' #Folders #Remote Folders set folder = "imaps://imap.gmail.com:993" set spoolfile = "+INBOX" set postponed ="+[Gmail]/Drafts" #Local Folders set header_cache =~/.mutt/cache/headers set message_cachedir =~/.mutt/cache/bodies set certificate_file =~/.mutt/certificates #SMTP Setup set smtp_url = "smtp://your username@smtp.gmail.com:587/" set smtp_pass = "your password" #Special Keybindings bind editor noop macro index,pager y "unset trash\n " "Gmail archive message" macro index,pager d "set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n " "Gmail delete message" macro index gi "=INBOX" "Go to inbox" macro index ga "=[Gmail]/All Mail" "Go to all mail" macro index gs "=[Gmail]/Sent Mail" "Go to Sent Mail" macro index gd "=[Gmail]/Drafts" "Go to drafts" #Mutt Session Security set move = no #Stop asking to "move read messages to mbox"! set imap_keepalive = 900 # Colors color normal white black color attachment brightyellow black color hdrdefault cyan black color indicator black cyan color markers brightred black color quoted green black color signature cyan black color status brightgreen blue color tilde blue black color tree red black color index red black ~D color index magenta black ~T #color header brightgreen black ^From: #color header brightcyan black ^To: #color header brightcyan black ^Reply-To: #color header brightcyan black ^Cc: #color header brightblue black ^Subject: # identifies email addresses color body brightred black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ # identifies URLs color body brightblue black (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ # OK,在终端输入 mutt,终于可以跑起来了!第一次运行系统会提示你确认两个 Google 的证书,按 'a' 键表示永远接受,以后这个问题就不会烦你了。接下来如果你没有在配置文件中写入密码的话,mutt 会提示你输入,如果你的密码在配置文件中,那么你应该可以进入 mutt 的界面了。一些基本的操作命令如下: # # j 下移 # k 上移 # d 删除邮件 # y 存档邮件 # gi 进入收件箱 # ga 查看所有邮件 # gd 查看草稿 # gs 进入星标邮件 # s 保存,比如 s=work,回车,即将当前邮件打上work标签 # t 标记,可以标记多个邮件,然后进行 s 或者 d 操作 # c 跳到其他文件夹,比如 c=work,回车,即进入了work标签邮件列表 # / 在当前文件夹查找 # # 需要注意的是 mutt 中的操作不是实时同步的,你所作的删除等操作只是进行了一个标记,并没有实际操作。直到你按下 $ 键,你队列中的动作才会真正被执行。 # # 在 mutt 中发邮件也是很简单的,过程如下: # # 输入 m (回信的话用 r ) # 输入对方邮件地址,回车 # 输入标题,回车 # 编辑邮件正文 # 保存 # 按 y 发送 # 搞定收工! # #参考 : http://archvortex.blogspot.com/2011/07/simple-mutt-configuration-for-gmail.html # # http://www.guao.hk/posts/httplifehacker-com5574557how-to-use-the-fast-and-powerful-mutt-email-client-with-gmail.html # # http://lifehacker.com/5574557/how-to-use-the-fast-and-powerful-mutt-email-client-with-gmail # # https://github.com/adam8157/dotfiles/blob/master/.muttrc
Tuesday, October 18, 2011
mutt使用gmail
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment