Emacs收发邮件完全操作指南: Send-Mail, Rmail and Gnus

Gnus: 1.Fundermental Configuration

Gnus的基本配置很简单, 只需要几行代码 新建文件 ~/.gnus 然后填入以下代码

(setq user-mail-address "[email protected]"
      user-full-name "abst.proc.do")

(setq gnus-select-method
      '(nnimap "qq.com"
               (nnimap-address "imap.qq.com")
               (nnimap-inbox "INBOX")
               (nnimap-expunge t)
               (nnimap-server-port 993)
               (nnimap-stream ssl)))

(setq send-mail-function 'smtpmail-send-it
      smtpmail-smtp-server "smtp.qq.com"
      smtpmail-smtp-service 465
      smtpmail-stream-type 'ssl
      gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")

并在 .authinfo 中加入一行imap的配置,

machine imap.qq.com  login [email protected] password 授权码
machine smtp.qq.com  login [email protected] password 授权码

仅此而已, 便能开工 M-x gnus 调出调出邮件文件夹界面

提示收到inbox收到2封邮件 也可以 L (gnus-group-list-all-group)查看所有的邮箱文件夹 gnus-group1

INBOX 上按键 Space 查看收件箱

退出Gnus

在Group buffer中按键q退出gnus.