我想配置 gnus 以便它显示来自 gmeil 的所有邮件,甚至默认情况下读取的邮件。我尝试设置 gnus 参数,但正则表达式似乎有问题。
我的 .gnus.el 如下所示:
(require 'nnir)
(setq user-mail-address "R.M.Krug@gmail.com")
(setq user-full-name "Rainer M Krug")
(setq gnus-select-method
'(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo")))
;; Configure outbound mail (SMTP)
(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-default-smtp-server "smtp.gmail.com"
send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-service 587
smtpmail-auth-credentials '(("smtp.gmail.com" 587 "R.M.Krug@gmail.com" nil))
smtpmail-debug-info t
smtpmail-debug-verb t
)
;; set renderer for html mail to w3m in emacs
(setq mm-text-html-renderer 'w3m)
(setq gnus-inhibit-images nil)
;; set gnus-parameter
(setq gnus-parameters
'(("nnimap.*"
(gnus-use-scoring nil)
(expiry-wait . 2)
(display . all))))
;;[[http://stackoverflow.com/questions/4982831/i-dont-want-to-expire-mail-in-gnus]]
(setq gnus-large-newsgroup 'nil)
(setq-default
gnus-summary-line-format "%U%R%z%I %(%&user-date; %-15,15f %s%)\n"
gnus-user-date-format-alist '((t . "%Y-%m-%d %H:%M"))
gnus-summary-thread-gathering-function 'gnus-gather-threads-by-references
)
(setq gnus-thread-sort-functions
'(
(not gnus-thread-sort-by-date)
(not gnus-thread-sort-by-number)
))
但是如果没有明确加载它们,我仍然看不到所有电子邮件。