-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gnus
95 lines (79 loc) · 3.15 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
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
;;----------------------------------------------------------------------------
;; My Gnus Configuration
;;----------------------------------------------------------------------------
;; usage
;; "B m" => move mail to trash
;; "B <DEL>" => delete mail completely
;; mail-add-attachment => add attachment
;; "o" => download attachment at point
;; "X m" => download specific type of attachment.
;; "C-c C-s" => send mail
;; "C-c C-k" => kill mail buffer
;; "r" => reply mail
;; "R" => reply mail with original mail
;; some other e-mail address
;; chenhuming@gmail.com
;; Bright_Chen@huatek.com
;; set your name and email address
(setq user-full-name "Bright.Chen"
user-mail-address "Bright.Chen@ptn.advantest.com")
;; fetch news from newsgroup
;; (setq gnus-select-method '(nntp "news.gmane.org"))
;; (setq gnus-read-active-file nil)
;; set "nnml" method and POP server configuration
;; so that we could retrieve emails from POP server
;; (setq gnus-select-method '(nnml "pop-mail"))
;; do not delete emails on server when using POP3
(setq pop3-leave-mail-on-server t)
;; receive mails from a POP server
;; (setq mail-sources
;; '((pop :server "pop.ee-post.com" ;; pop3 mail server
;; :user "bright_chen@huatek.com" ;; user name
;; :port "pop3" ;; port
;; :password "********"))) ;; password
;; add this to be able to list all labels in gmail
(setq gnus-ignored-newsgroups "")
;; to be able to search within your gmail/imap mail
;; "G G" => search in *Group*
(require 'nnir)
;; receive gmail
(add-to-list 'gnus-secondary-select-methods
'(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnir-search-engine imap)
(nnimap-authinfo-file "~/.authinfo")))
;; send mails with huatek's smtp server
;; (setq smtpmail-auth-credentials
;; '(("smtp.ee-post.com" ;; smtp used to send mails
;; 25 ;; port
;; "bright_chen@huatek.com" ;; user name
;; "********" ;; password
;; ))
;; smtpmail-default-smtp-server "smtp.ee-post.com"
;; smtpmail-smtp-server "smtp.ee-post.com")
;; send mails with gmail's smtp server
(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
smtpmail-auth-credentials '(("smtp.gmail.com" 587 "chenhuming@gmail.com" nil))
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587
;; message-send-mail-function 'smtpmail-send-it
;; smtpmail-local-domain "yourcompany.com"
)
;; function used to send mail
(setq send-mail-function 'smtpmail-send-it
;; message-send-mail-function 'smtpmail-send-it
)
;; show debug info where sending mails failed
(setq smtpmail-debug-info t
smtpmail-debug-verb t)
;; automatic linebreaking
(defun my-message-mode-setup ()
(setq fill-column 72)
(turn-on-auto-fill))
(add-hook 'message-mode-hook 'my-message-mode-setup)
;; load smtpmail library
(require 'smtpmail)
;;; .gnus ends here