-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gnus.el
779 lines (643 loc) · 30.7 KB
/
.gnus.el
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
(require 'gnus)
(require 'gnus-art)
(require 'gnus-cache)
(require 'gnus-demon)
(require 'gnus-score)
(require 'gnus-msg)
(require' gnus-ml)
(require 'gnus-registry)
(require 'gnus-topic)
(require 'smtpmail)
(require 'nnml)
(require 'nntp)
(require 'nnir)
(require 'mm-util)
(require 'rfc2368)
(require 'rfc2047)
(require 'mailheader)
;;;_ Communication
;;;_. Gnus
;;;_ , miscellaneous settings
;;;_ . Personal settings
(setq user-full-name "Paulo Tomé")
;(setq user-mail-address )
;;;_ . Gnus common settings
(setq gnus-default-article-saver 'gnus-summary-save-in-file)
(setq gnus-visual t)
(setq gnus-backup-startup-file t)
(setq gnus-init-file nil)
(setq gnus-inhibit-startup-message t)
;; Use gnus to send mail
;(setq mail-user-agent 'gnus-user-agent)
;;;_ , mail and news
;;;_ . news, mail and mail2news gateways
;;;_ , misc
;;;_ . gnus-select-method
(setq gnus-select-method
'(nntp "news.gnus.org"
(nntp-connection-timeout 360)
(nntp-open-connection-function nntp-open-network-stream)
(nntp-address "news.gnus.org")
)
)
;; (setq gnus-secondary-select-methods '((nnimap "")))
(add-to-list 'gnus-secondary-select-methods
'(nntp "news.gmane.org"
(nntp-connection-timeout 240)
(nntp-open-connection-function nntp-open-network-stream)
(nntp-address "news.gmane.org")
)
t
)
(add-to-list 'gnus-secondary-select-methods
'(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo")
)
t
)
;; ******************************************************
;; * GMAIL *
;; ******************************************************
;;;(setq gnus-select-method '(nnimap "gmail"
;;; (nnimap-address "imap.gmail.com")
;;; (nnimap-server-port 993)
;;; (nnimap-stream ssl)
;;; (nnimap-authinfo-file "~/.authinfo")
;;; ))
(setq
starttls-use-gnutls t
starttls-gnutls-program "gnutls-cli"
starttls-extra-arguments nil
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587
smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
smtpmail-auth-credentials '(("smtp.gmail.com" 587 "[email protected]" nil))
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-debug-info t ; optional, but handy in case something goes wrong
smtpmail-debug-verb t
;; Make Gnus NOT ignore [Gmail] mailboxes
gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]"
)
;; http://www.markus-gattol.name/ws/.emacs.html
(setq gnus-parameters `(("nnimap\\+gmail:INBOX" (expiry-wait . 2))
;;;_ . mail
;;;_ , groups
;;;_ . family
;;;_ . misc
;;;_ . spam
; This is the S P A M group for ALL messages (mail and news)
("\\`nnml:m.junk"
; .... spam rules ............
(gnus-article-sort-functions (gnus-article-sort-by-chars))
(spam-contents gnus-group-spam-classification-spam)
(ham-process-destination . "nnml:junk2ham")
; Regarding the above line -- from there (`nnml:junk2ham'), I manually
; move/copy ham to a group where it belongs plus I can use them for
; ham training. Of course I have to inspect my spam group
; `nnml:m.junk' occasionally in order to find false positives (i.e.
; legitimate mails, that were wrongly judged as spam) and remove the
; spam mark (`M-d') -- then at group exit all false positives are
; moved/copied to `nnml:junk2ham'.
;The below line is redundancy since other groups already
;contain the same rule but keeping it doesn't harm --
;everythime I visit and exit the spam group I can be sure all
;senders are added to the blacklist
(spam-process ((spam spam-use-blacklist)
(spam spam-use-bogofilter)))
; .... agent parameters ......
(agent-predicate . true)
(agent-score . file)
; - - agent score rule - -
; .... posting style .........
(posting-style
(name "NoName")
(address "spam_is_for@the_weak.com")
)
; .... group parameters ......
(display . 22) ;counting starts at zero so 15 results in 16
; .... local variables .......
)
;;;_ , people
;;;_ . realname
;;;_ , firstname and lastname
;;; (,priv-my-gmail0-mail-address-gp ; FIXME replace with priv-my-sunoano1-mail-address-gp once my own email system is up and running
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnimap:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist) ; for ham groups only
;;; (ham spam-use-bogofilter) ; for ham groups only
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate . true)
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name priv-my-name)
;;; (address priv-my-sunoano1-mail-address)
;;; (signature-file (concat emacs-root-dir "gnus/sig/m.realname"))
;;; (mml2015-signers priv-my-keyid)
;;; )
;;; ; .... group parameters ......
;;; (display . 20)
;;; ; .... local variables .......
;;; )
;;;_ , only firstname
;;; (,priv-my-gmail1-mail-address-gp
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnimap:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist) ; for ham groups only
;;; (ham spam-use-bogofilter) ; for ham groups only
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate . true)
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name priv-my-name)
;;; (address priv-my-gmail1-mail-address)
;;; )
;;; ; .... group parameters ......
;;; (display . 20)
;;; ; .... local variables .......
;;; )
;;;_ . suno ano
;;; (,priv-my-gmail2-mail-address-gp ; FIXME replace with priv-my-sunoano0-mail-address-gp once I have my own email system up and running
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnimap:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist) ; for ham groups only
;;; (ham spam-use-bogofilter) ; for ham groups only
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate . true)
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name priv-my-syn-name)
;;; (address priv-my-sunoano0-mail-address)
;;; (signature-file (concat emacs-root-dir "gnus/sig/m.suno"))
;;; (mml2015-signers priv-my-syn-keyid)
;;; )
;;; ; .... group parameters ......
;;; (display . 20)
;;; ; .... local variables .......
;;; )
;;;_ , domains
;;;_ . education
;;;_ , website
;;; (,priv-my-gmail4-mail-address-gp ; FIXME replace with priv-my-sunoano4-mail-address-gp once I have my own email system up and running
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnimap:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist) ; for ham groups only
;;; (ham spam-use-bogofilter) ; for ham groups only
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate . true)
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name priv-my-syn-name)
;;; (address priv-my-sunoano2-mail-address)
;;; (signature-file (concat emacs-root-dir "gnus/sig/m.suno"))
;;; (mml2015-signers priv-my-syn-keyid)
;;; )
;;; ; .... group parameters ......
;;; (display . 20)
;;; ; .... local variables .......
;;; )
;;;_ , tugraz
;;; ("\\`nnml:m\\.do\\.tugraz"
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnml:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist)
;;; (ham spam-use-bogofilter)
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate . true)
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name priv-my-name)
;;; (address priv-my-tugraz-mail-address)
;;; (signature-file (concat emacs-root-dir "gnus/sig/m.academia"))
;;; (body (concat "\n\n"priv-my-firstname",\nwith fondest regards.\n"))
;;; )
;;; ; .... group parameters ......
;;; (display . 20)
;;; ; .... local variables .......
;;; )
;;;_ . work
;;;_ , 1
;;; (,priv-my-gmail3-mail-address-gp
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnml:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist)
;;; (ham spam-use-bogofilter)
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate . true)
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name priv-my-name)
;;; (address priv-my-work0-mail-address)
;;; (signature-file (concat emacs-root-dir "gnus/sig/m.work"))
;;; ;(body (concat "\n\n"priv-my-firstname",\nwith fondest regards.\n"))
;;; )
;;; ; .... group parameters ......
;;; (display . 20)
;;; ; .... local variables .......
;;; )
;;;_ , 2
;;;_ , default
; Note, those need be the last block within each group since they
; catch everything!
;;; ("\\`nnml:m\\..*"
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnml:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist)
;;; (ham spam-use-bogofilter)
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate . true)
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name "NoName")
;;; )
;;; ; .... group parameters ......
;;; (display . 15)
;;; ; .... local variables .......
;;; )
;;;_ . mailing lists
;;;_ , mailing lists default
; Note, those need be the last block within each group since they
; catch everything!
;;; ("\\`nnml:ml\\..*"
;;; ; .... spam rules ............
;;; (spam-contents gnus-group-spam-classification-ham)
;;; (spam-process-destination . "nnml:m.junk")
;;; (spam-process ((spam spam-use-blacklist)
;;; (ham spam-use-whitelist)
;;; (ham spam-use-bogofilter)
;;; (spam spam-use-bogofilter)))
;;; ; .... agent parameters ......
;;; (agent-predicate or high short (not old))
;;; (agent-score . file)
;;; ; - - agent score rule - -
;;; ; .... posting style .........
;;; (posting-style
;;; (name priv-my-firstname)
;;; (address priv-my-gmail1-mail-address)
;;; )
;;; ; .... group parameters ......
;;; (display . [or (not killed) (not expire)])
;;; ; .... local variables ......
;;; (gnus-thread-sort-functions
;;; '(gnus-thread-sort-by-number
;;; gnus-thread-sort-by-date
;;; gnus-thread-sort-by-total-score))
;;; )
("\\`nntp\\+news\\.gmane\\.org:"
; .... spam rules ............
(spam-contents gnus-group-spam-classification-ham)
(spam-process-destination . "nnml:m.junk")
(spam-process ((spam spam-use-gmane)
(spam spam-use-blacklist)
(ham spam-use-whitelist)
(ham spam-use-bogofilter)
(spam spam-use-bogofilter)))
(spam-autodetect . t)
(spam-autodetect-methods spam-use-BBDB ;never mark incoming mail from folk in my BBDB as spam
spam-use-whitelist ;same as above but for sender addresses not in my BBDB
spam-use-regex-headers ;server-side SpamAssassin tags
spam-use-blacklist ;sender addresses from spam declared messages
spam-use-bogofilter) ;therefore bogofilter needs to be installed
; .... agent parameters ......
(agent-predicate or high short (not old))
(agent-score . file)
; - - agent score rule - -
(agent-score
("from"
;("Mr. Foo Bar" 100 nil s)
("debian\\|emacs\\|linux\\|gnu\\|fsf" 100 nil s)
)
("subject"
("Nose and Face" -100 nil s)
("debian\\|emacs\\|linux\\|gnu\\|fsf" 100 nil s)
)
; lower the score of articles that have been
; crossposted to >= 3 groups
("xref"
("[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+" -100 nil r)
)
)
; .... posting style .........
(posting-style
(name priv-my-name)
(address priv-my-sunoano1-mail-address)
)
; .... group parameters ......
(display . 20)
; .... local variables .......
)
))
(setq
;; send mail function
;; send-mail-function 'sendmail-send-it
send-mail-function 'smtpmail-send-it
;; message-send-mail-function 'sendmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-queue-mail nil
;; in case:
smtpmail-debug-info t
smtpmail-local-domain nil
)
(defadvice message-send-mail (around gmail-message-send-mail protect activate)
"Set up SMTP settings to use Gmail's server when mail is from a gmail.com address."
(interactive "P")
(if (save-restriction
(message-narrow-to-headers)
(string-match "gmail.com" (message-fetch-field "from")))
(let ((message-send-mail-function 'smtpmail-send-it)
;; gmail says use port 465 or 587, but 25 works and those don't, go figure
(smtpmail-starttls-credentials '(("smtp.gmail.com" 25 nil nil)))
(smtpmail-auth-credentials '(("smtp.gmail.com" 25 "[email protected]" nil)))
(smtpmail-default-smtp-server "smtp.gmail.com")
(smtpmail-smtp-server "smtp.gmail.com")
(smtpmail-smtp-service 25)
(smtpmail-local-domain "yourdomain.com"))
ad-do-it)
ad-do-it))
;; ******************************************************
;; * END GMAIL *
;; ******************************************************
(setq gnus-secondary-select-methods '((nnml "")))
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
(nnimap-stream ssl)
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnir-search-engine imap)))
;;; My own key bindings.
;;;
;;; I want to be able to refer to a parent in a thread with $ (as well
;;; as A r) since my keyboard is slightly broken.
;;;
;;; Gnus at times handles long lines erroneously, so I want to be able
;;; to fill long lines with F only at a few times.
(add-hook 'gnus-summary-mode-hook
(function (lambda ()
(define-key gnus-summary-mode-map "K" 'gnus-summary-kill-thread)
(define-key gnus-summary-mode-map "F" 'gnus-article-fill-long-lines)
(define-key gnus-summary-mode-map "$" 'gnus-summary-refer-parent-article)
(define-key gnus-summary-mode-map "z" 'scroll-down)
(define-key gnus-summary-mode-map "v" 'scroll-up)
(define-key gnus-summary-mode-map "-" 'gnus-summary-hide-thread)
(define-key gnus-summary-mode-map "+" 'gnus-summary-show-thread)
)))
;; Enable mailinglist support
(when (fboundp 'turn-on-gnus-mailing-list-mode)
(add-hook 'gnus-summary-mode-hook 'turn-on-gnus-mailing-list-mode))
;;;_ . miscellaneous
; See (Info-goto-node "(gnus)Category Syntax")
(require 'gnus-agent)
(setq gnus-agent-go-online t)
(setq gnus-agent-expire-days 30) ; used in `my-article-old-p' (see below)
(setq gnus-agent-synchronize-flags t)
(add-hook 'gnus-select-article-hook 'gnus-agent-fetch-selected-article)
(setq level 2)
(setq
;;
gnus-show-threads t
;; Default thread sorting
;; par date (plus recent en premier) puis par sujets
;;;(setq gnus-thread-sort-functions
;;; '(
;;; gnus-thread-sort-by-total-score
;;; gnus-thread-sort-by-subject
;;; (not gnus-thread-sort-by-date)
;;; ))
;;; gnus-thread-sort-functions '(gnus-thread-sort-by-total-score
;;; gnus-thread-sort-by-date
;;; )
gnus-thread-sort-functions '(gnus-thread-sort-by-total-score
gnus-thread-sort-by-number
gnus-thread-sort-by-most-recent-date)
gnus-sort-gathered-threads-function 'gnus-thread-sort-by-date
;;
gnus-thread-ignore-subject nil
;;; gnus-thread-ignore-subject t
;;
gnus-thread-hide-subject t
;;
gnus-thread-hide-killed t
;;
gnus-thread-hide-subtree nil
;;; ;; Makes presentation more compact by hiding thread subtree
;;; gnus-thread-hide-subtree t
)
(setq
;;
;;
gnus-thread-indent-level 1
;; Gather threads with use of Subject header
gnus-summary-thread-gathering-function #'gnus-gather-threads-by-subject
;;gnus-summary-thread-gathering-function 'gnus-gather-threads-by-references
;; Loose threads
gnus-summary-make-false-root 'empty
;; gnus-summary-make-false-root 'adopt
;;
gnus-summary-same-subject ".../" ; UCS #x00[ab]b or #x25b6
;; Gather subjects by fuzzy string matching in the same thread if we don't have any References.
gnus-summary-gather-subject-limit 'fuzzy
)
(setq
;;
gnus-treat-buttonize t
;;
gnus-use-adaptive-scoring t
;; Don't subscribe to newsgroups automagically.
gnus-subscribe-newsgroup-method 'gnus-subscribe-killed
;; send mail function
;; send-mail-function 'sendmail-send-it
send-mail-function 'smtpmail-send-it
;; message-send-mail-function 'sendmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-queue-mail nil
;; in case:
smtpmail-debug-info t
;; smtpmail-local-domain
;; Turn off nntp server
gnus-nntp-server nil
;; prevent save dribble file message
gnus-use-dribble-file nil
;; Cache ticked and dormant articles
gnus-use-cache t
;; Suppress duplicate article
gnus-suppress-duplicates t
;; i don't use .newsrsc
gnus-read-newsrc-file nil
gnus-save-newsrc-file nil
;; ask when fetching more articles than this.
gnus-large-newsgroup 10000
)
(setq
;;
;; quit quietly
gnus-interactive-exit nil
;; turn off cache
gnus-cacheable-groups "off"
;; don't prompt when switching to plugged
gnus-agent-go-online nil
;;
gnus-group-mode-hook '(gnus-topic-mode gnus-agent-mode)
;; fetch all messages and never expire them
gnus-agent-cache t
;; expire certain directories
gnus-auto-expirable-newsgroups "Trash"
;; buttonize the different parts, please
gnus-buttonized-mime-types '("multipart/encrypted" "multipart/signed")
;; but keep buttons for multiple parts
gnus-inhibit-mime-unbuttonizing t
;; Specifies what to do with cross references (`Xref:' field). If it is nil, cross references are ignored
gnus-use-cross-reference nil
;;; gnus-use-cross-reference t
;;
gnus-summary-check-current t
;;
gnus-select-group-hook nil
;;
gnus-add-to-list t
;;
gnus-summary-display-while-building 10
;; fonts, colors, etc.
gnus-visual t
;;
gnus-activate-foreign-newsgroups gnus-level-subscribed
;; hide the annoying Google Groups signature cruft.
gnus-signature-separator '("^--~--~---[~-]*-~-------~--~----~$")
gnus-treat-hide-signature t
;;
gnus-use-trees nil
;;
gnus-tree-minimize-window 4
;;
gnus-generate-tree-function 'gnus-generate-horizontal-tree
;;
gnus-break-pages nil
;;
gnus-novice-user t
gnus-expert-user nil
)
(setq
;; just show the summary, don't fetch the first article
gnus-auto-select-first nil
;;
gnus-view-pseudos 'automatic
;;
gnus-use-generic-form nil
;;
gnus-auto-select-next 'quietly
;;gnus-auto-select-next nil
gnus-auto-center-summary t
;;gnus-auto-center-summary nil
gnus-auto-select-same nil
gnus-nov-is-evil nil
;; fetch no older articles, but thread everything we got
gnus-fetch-old-headers nil
;;gnus-fetch-old-headers 'some
;; caching
gnus-use-cache t
gnus-cacheable-groups "gmane\\."
gnus-uncacheable-groups "^nnml\\|^nnfolder\\|^nnimap"
;; no auto centering of the summary line
gnus-auto-center-subject nil
;; don't check for newly created groups
gnus-check-new-newsgroups nil
;; since we don't bother with new groups, don't remember what groups are killed
gnus-save-killed-list nil
;; don't read the entire friggin' active file when we connect
gnus-read-active-file 'some
;; headers
gnus-sorted-header-list '("^From:" "^Subject:" "^Date:" "^Newsgroups:" "^To:" "^Cc:")
gnus-visible-headers (format "^%s:"
(regexp-opt'("From" "Subject" "Date" "Newsgroups" "Followup-To"
"Reply-To" "Summary" "To" "Cc" "Posted-To"
"Mail-Copies-To" "Apparently-To" "Resent-From")))
;; setq gnus-boring-article-headers '(empty followup-to reply-to newgroups to-address to-list cc-list)
gnus-treat-hide-boring-headers 'head
;; can munge adjacent URLs, ugh
gnus-treat-unsplit-urls nil
gnus-treat-wash-html nil
gnus-treat-date-local nil
gnus-treat-display-smileys nil
gnus-treat-display-face nil
imap-log t
;; Save sent mail
gnus-message-archive-group "sent-mail"
;;
gnus-sum-thread-tree-root " >"
gnus-sum-thread-tree-single-indent " "
gnus-sum-thread-tree-vertical "|"
gnus-sum-thread-tree-indent " "
gnus-sum-thread-tree-leaf-with-other "+-> "
gnus-sum-thread-tree-single-leaf "`-> "
;; Grab older messages in the thread
gnus-fetch-old-headers 100
)
(setq
;; View all the MIME parts in the current article
gnus-mime-view-all-parts t
gnus-buttonized-mime-types nil
gnus-unbuttonized-mime-types '("text/plain")
)
(setq
;;
gnus-verbose 9
gnus-verbose-backends 9
)
;; wash HTML encoded articles with the built in function.
;; mm-text-html-renderer 'html2text
;;; Remove mail we have already fetched. Only reason to have this set
;;; to anything else than t is that you think Gnus will lose your
;;; mail. Useful if you're experimenting with something.
;; (setq mail-source-delete-incoming t)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Displaying messages
;;; If we have an alternative, don't show HTML or RichText messages at all.
;;;(eval-after-load "mm-decode"
;;; '(progn
;;; (add-to-list 'mm-discouraged-alternatives "text/html")
;;; (add-to-list 'mm-discouraged-alternatives "text/enriched")
;;; (add-to-list 'mm-discouraged-alternatives "text/richtext")))
;;; I want to see To: headers instead of From: headers in my outgoing
;;; archive groups.
;; (setq gnus-extra-headers '(To Newsgroups))
;; (setq nnmail-extra-headers gnus-extra-headers)
;; (add-hook 'gnus-part-display-hook 'gnus-article-date-user)
;; http://www.emacswiki.org/emacs/GroupParameters
;;(setq gnus-parameter-to-list-alist '(("stack.exchange" . "[email protected]")))
;;(setq gnus-total-expirable-newsgroups (regexp-opt '("stack.exchange")))