blob: 5b59efae8b1d8c8f7037c44b95e6f9d0eabd0648 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
(setq gnus-select-method '(nnnil))
(defun my-gnus-group-list-subscribed-groups ()
"List all subscribed groups with or without un-read messages"
(interactive)
(gnus-group-list-all-groups 5))
(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
(define-key gnus-group-mode-map
;; list all the subscribed groups even they contain zero un-read messages
(kbd "o") 'my-gnus-group-list-subscribed-groups)
(setq gnus-secondary-select-methods
'((nnmaildir "personal"
(nnmail-expiry-target "nnmaildir+personal:Trash")
(directory "~/mail-home"))
(nnmaildir "work"
(nnmail-expiry-target "nnmaildir+work:[Gmail]+Bin")
(directory "~/mail-work"))))
(setq gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]"
nnmail-expiry-wait 'immediate
message-sendmail-f-is-evil 't
message-sendmail-extra-arguments '("--read-envelope-from")
message-send-mail-function 'message-send-mail-with-sendmail
sendmail-program "msmtp"
mail-host-address "mccd.space"
user-full-name "Marc Coquand"
user-mail-address "marc@mccd.space")
(setq gnus-topic-topology '(("Gnus" visible)
(("personal" visible))
(("misc" hidden))
(("work" visible nil nil))
))
(setq gnus-topic-alist '(("personal" ; the key of topic
"nnmaildir+personal:INBOX"
"nnmaildir+personal:INBOX+Forums"
"nnmaildir+personal:Archive"
"nnmaildir+personal:Archive+Support"
)
("misc"
"nnfolder+archive:sent.2024-04"
"nnmaildir+personal:Archive+Receipt"
"nnmaildir+personal:Archive+WCIG"
"nnmaildir+personal:Spam"
"nnmaildir+personal:Sent"
)
("work" ; the key of topic
"nnmaildir+work:INBOX"
"nnmaildir+work:[Gmail]+Sent Mail"
"nnmaildir+work:[Gmail]+Trash"
)
("Gnus")))
(setq gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
(setq nnheader-file-name-translation-alist '((?[ . ?_) (?] . ?_)) )
(setq gnus-summary-thread-gathering-function 'gnus-gather-threads-by-subject)
(setq gnus-thread-hide-subtree t)
(setq gnus-thread-ignore-subject t)
|