technomancy / dotfiles

Phil Hagelberg's personal dotfiles collection: the product of years of accumulated obsessive minor tweaks. Mostly Emacs Lisp.

This URL has Read+Write access

dotfiles / .gnus.el
100644 143 lines (121 sloc) 4.616 kb
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
(setq gnus-select-method '(nnnil ""))
(setq gnus-secondary-select-methods '((nnml ""
                                            (nnml-directory "~/Mail"))))
 
(setq gnus-home-directory "~/.emacs.d"
      gnus-dribble-directory "~/.emacs.d"
      gnus-always-read-dribble-file t)
(setq user-mail-address "phil@hagelb.org")
(setq user-full-name "Phil Hagelberg")
(setq gnus-ignored-from-addresses "Phil Hagelberg")
 
;; Now with SSL!
(setq smtpmail-starttls-credentials '(("mail.technomancy.us" 587 nil nil))
      smtpmail-smtp-server "mail.technomancy.us"
      smtpmail-default-smtp-server "mail.technomancy.us"
      send-mail-function 'smtpmail-send-it
      gnus-gcc-mark-as-read t
      message-send-mail-function 'smtpmail-send-it
      smtpmail-smtp-service 587
      starttls-extra-arguments '("--insecure")
      smtpmail-auth-credentials '(("mail.technomancy.us"
                                   587
                                   "send@technomancy.us" ;; throwaway send-only account
                                   "testyy")))
 
(setq message-kill-buffer-on-exit t)
(setq gnus-treat-display-smileys nil)
(setq gnus-message-archive-group "sent")
(setq gnus-fetch-old-headers 'some)
(setq nnmail-split-methods 'nnmail-split-fancy)
(setq nnmail-crosspost nil)
(setq mail-source-delete-incoming nil)
(setq gnus-asynchronous t)
 
(setq nnmail-split-fancy
      '(|
        ;; code
        (to "ruby_emacs_dev@yahoogroups\\.com" "emacs-rails")
        (to "emacs-on-rails" "emacs-rails")
        (to "obby-users@list.0x539.de" "obby-users")
        (any "conkeror" "conkeror")
        (any "clojure" "clojure")
        (any "compojure" "compojure")
        (any "seafunc" "seafunc")
        (any "Nxhtml" "nxhtml")
        (any "mozlab" "mozlab")
        (any "emacs-rails" "emacs-rails")
        (to "gems-developers" "gems")
        (any "emacs-devel" "emacs-devel")
        (any "bus-scheme" "bus-scheme")
        (any "ruby-core" "ruby-core")
        (to "magit" "magit")
        (any "ert-devs" "ert")
        (any "zenspider\\.com" "seattle.rb")
        (from "github" "github")
 
        (to "phil@localhost" "feeds")
 
        ;; personal
        (from "agelberg" - "Alisha" "family")
        (from "Broach" "family")
 
        (any "David Morton" "xpoint")
        (any "Edward Volz" "xpoint")
        (any "John Gaitan" "xpoint")
        (from ".*crosspoint.*" "xpoint")
        (from "hudsonite" "xpoint")
        (to "parishgroup2@googlegroups\.com" "parish")
 
        (any "zacchaeus-bounces" junk)
        (any "zacchaeus.*" "friends")
        (any ".*hackelford.*" "friends")
        (any ".*peckham.*" "friends")
        (any ".*carroll.*" "friends")
        (any ".*guenther.*" "friends")
        (any ".*rowley.*" "friends")
        (any ".*malabuyo.*" "friends")
        (any ".*holloway.*" "friends")
        (any "Arko" "friends")
        (any "Joel Watson" "friends")
 
        ;; misc
        (from "VMWare" junk)
        (any "cron" junk)
        (any "Anacron" junk)
        (from "Inbox Archiver" junk)
        (any "Meridius" junk)
        (any "Paris Hilton" junk)
        (any "cartographer" junk)
        (any "Fyreball" junk)
        (any "ocruby" junk)
        (any "CNN Alerts" junk)
        (any "ALM Expo 2008" junk)
        "inbox"))
 
(setq mail-sources '((file :path "/var/mail/phil")))
 
(setq imap-ssl-program "/usr/bin/openssl s_client -ssl3 -connect %s:%p")
(setq gnus-agent-expire-days 0)
(setq gnus-agent-enable-expiration 'DISABLE)
 
(gnus-demon-add-handler 'gnus-group-get-new-news 10 t)
(gnus-demon-init)
 
;; Unbind this key; it's annoying!
(define-key gnus-summary-mode-map "o" (lambda () (interactive)))
 
(add-hook 'message-mode-hook 'turn-on-flyspell)
 
(setq gnus-summary-line-format
      (concat
       "%{|%}"
       "%U%R%z"
       "%{|%}"
       "%(%-18,18f"
       "%{|%}"
       "%*%{%B%} %s%)"
       "\n"))
 
(when (require 'nnir nil t)
  (setq nnir-search-engine 'namazu)
  (setq nnir-namazu-index-directory
        (expand-file-name "~/.namazu"))
  (setq nnir-namazu-remove-prefix
        (expand-file-name "~/Mail/"))
  (setq nnir-mail-backend (nth 0 gnus-secondary-select-methods)))
 
(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
(setq gnus-use-full-window nil)
 
(mailcap-add "image/jpeg" "display")
 
;; (setq gnus-buffer-configuration
;; '((group (vertical 1.0 (group 1.0 point)))
;; (summary (vertical 1.0 (summary 1.0 point)))
;; (article (horizontal 1.0 (summary 1.0 point)
;; (article 80)))))
 
(if (file-exists-p system-specific-config)
    (load system-specific-config))
 
(shell-command "fetchmail")