2 ms·
;; Gnus ;; . http://jfm3-repl.blogspot.com/2007_12_01_archive.html (setq mail-user-agent 'gnus-user-agent) ; always use gnus for email (setq message-
by d0mine 17y ago
;; Gnus
;; . http://jfm3-repl.blogspot.com/2007_12_01_archive.html
(setq mail-user-agent 'gnus-user-agent) ; always use gnus for email
(setq message-send-mail-partially-limit nil) ; never split messages
(setq message-signature nil) ; no .signature
(add-hook 'message-send-hook 'ispell-message) ; spell check on sent
;; . encrypt .authinfo file
(require 'epa-file)
(epa-file-enable)
(setq epa-file-cache-passphrase-for-symmetric-encryption t)
;; . define mail/news sources
(setq gnus-select-method '(nnnil "")
gnus-secondary-select-methods
'(
(nnml "")
;; to add rss: type G R in *Group* buffer; when asked, paste url
(nnimap "gmail"
(nnimap-authinfo-file "/path/to/.authinfo.gpg")
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl))
))
;; Accessing the [Gmail] folders http://www.emacswiki.org/emacs/GnusGmail
(setq gnus-invalid-group-regexp "[:`'\"]\\|^$")
(setq gnus-ignored-newsgroups "")
;; After that, S s to the groups as specified above. Before doing
;; anything else, G c configure each Gmail line, and hit [done]. Gnus
;; will pick up “another” group, this time without the nnimap+gmail
;; designator. C-k the old group and it works! (I don’t know why; I
;; originally wanted gcc-self “nnimap+gmail:[Gmail]/Sent Mail” on
;; INBOX and this was the easiest way to arrange that. Magically, it
;; picked up the new INBOX and everything worked, even across
;; sessions.)
;; . save sent items
(setq gnus-message-archive-method '(nnimap "gmail"))
(setq gnus-message-archive-group "nnimap+gmail:[Gmail]/Sent Mail")
(setq gnus-gcc-mark-as-read t)
;; .
(setq gnus-thread-sort-functions
'(gnus-thread-sort-by-number
gnus-thread-sort-by-date
gnus-thread-sort-by-total-score))
(setq gnus-summary-line-format
"%U%R%z %d %I%(%[%-25,25n%]%) %s\n")