-
Notifications
You must be signed in to change notification settings - Fork 1
/
gnus
46 lines (39 loc) · 1.45 KB
/
gnus
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
;; No HTML mail
;(setq mm-discouraged-alternatives '("text/html" "text/richtext"))
(defadvice gnus-demon-scan-news (around gnus-demon-timeout activate)
"Timeout for Gnus."
(with-timeout
(60 (message "Gnus timed out."))
ad-do-it))
(setq gnus-select-method '(nnml ""))
(setq mail-sources '((imap :server "localhost"
:port 1143
:authentication login
:user "[email protected]"
:password "Me1sFree"
:mailbox "Inbox"
:stream network
:dontexpunge t)))
(defun mce-gnus-update ()
(interactive)
(gnus-demon-scan-news))
(gnus-demon-add-handler 'mce-gnus-update 5 nil)
(defun mce-check-newmail ()
"Updates notmuch and provides an update as to if there's email"
(>
(+ (gnus-group-unread "nnimap+SpiderOak Mail:Spideroak/INBOX")
(gnus-group-unread "nnimap+SpiderOak Mail:Personal/INBOX"))
0))
(setq display-time-mail-function 'mce-check-newmail)
(setq gnus-posting-styles
'(
((header "to" "[email protected]")
(address "[email protected]"))
((header "cc" "[email protected]")
(address "[email protected]"))
((header "to" "[email protected]")
(address "[email protected]"))
((header "cc" "[email protected]")
(address "[email protected]"))))
;(require 'gnus-alias)
;(gnus-alias-init)