-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mew.el.old
164 lines (125 loc) · 5.01 KB
/
.mew.el.old
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
(setq mew-name "Simon Unge") ;; (user-full-name)
(setq mew-use-biff t)
(setq mew-use-biff-bell t)
(setq mew-biff-interval 1) ; check every minute
(setq mew-config-alist
'(
(default
(user "su")
(mail-domain "tail-f.com")
(smtp-server "mail.tail-f.com")
(smtp-port 25)
(smtp-ssl t)
; (smtp-auth-list ("PLAIN" "LOGIN"))
(smtp-user "su")
(smtp-mail-from "su@tail-f.com")
(proto "%")
(imap-user "su")
(imap-server "mail.tail-f.com")
(imap-ssl t)
(imap-size 0)
)
(cisco
(user "sunge")
(mail-domain "cisco.com")
(smtp-server "outbound.cisco.com")
(smtp-port 25)
(smtp-ssl nil)
(smtp-mail-from "sunge@cisco.com")
(proto "%");
(imap-user "sunge")
(imap-server "mail.cisco.com")
(imap-ssl t)
(imap-size 0)
)
))
;; (setq mew-cs-database-for-encoding
;; `(((ascii) nil "7bit" "7bit" nil)
;; ;; West European (Latin 1)
;; ((ascii latin-iso8859-1) iso-8859-1 "quoted-printable" "Q" nil)
;; ;; New West European (Latin 9 or Latin 0)
;; ((ascii latin-iso8859-15) iso-8859-15 "quoted-printable" "Q" nil)
;; (nil utf-8 "base64" "B" t)))
(setq mew-ssl-verify-level 0)
(setq mew-summary-form '(type (5 date) " " (14 from) " " t (0 subj)))
;; Use and hihglight unread mark
(setq mew-use-unread-mark t)
(setq mew-theme-file "~/.mew-theme.el")
;; spam
; use 'ls' in Summary mode
(setq mew-spam-prog "ssh")
(setq mew-spam-prog-args '("mail.tail-f.com" "/home/su/bin/learn-spam"))
; use 'lh' in Summary mode
(setq mew-ham-prog "ssh")
(setq mew-ham-prog-args '("mail.tail-f.com" "/home/su/bin/learn-ham"))
;; Use nice thread functions (tt in summary mode)
(setq mew-use-fancy-thread t)
(setq mew-use-thread-separator t)
(setq mew-use-thread-heuristics t)
(setq mew-demo nil)
(setq mew-demo-picture nil)
;; Should this really be needed??
(setq mew-cs-binary 'binary)
;; To: field list picked at mew-summary-reply if Reply-To: exists.
(setq mew-replyto-to-list '("Reply-To:"))
;; Prompt user for CC: field if non-nil
(setq mew-ask-cc nil)
;; If non-nil, ask for a range for scanning. If false, always use default.
(setq mew-ask-range nil)
;; If non-nil, ask whether or not you really want to send the message
;; which you composed without explicit C-cC-m.
(setq mew-ask-send nil)
;; If non-nil, ask whether or not you really want to pack.
(setq mew-ask-pack nil)
;; If non-nil, mark processing when scanning a folder or exiting Emacs.
(setq mew-ask-mark-process t)
;; If non-nil, the previous dir is used as the default dir for save etc.
(setq mew-summary-preserve-dir t)
;; If non-nil, the previous dir is used as the default dir for copy, etc.
(setq mew-draft-preserve-dir t)
(add-hook 'mew-draft-mode-hook
(function (lambda () (auto-fill-mode 1))))
(add-hook 'mew-quit-hook
(function (lambda () (delete-other-windows))))
(setq mew-fcc "%outbox")
(setq mew-cite-fields '("From:"))
(setq mew-cite-format "%s wrote:\n")
(setq mew-cite-prefix "> ")
(setq mew-cite-prefix-function nil)
;; (defvar has-w3m (require 'mew-w3m nil t))
;; (if has-w3m
;; (progn
;; (define-key mew-summary-mode-map "T" 'mew-w3m-view-inline-image)
;; (setq mew-ext-url-alist
;; '(("^application/" "Fetch by emacs-w3m" mew-w3m-ext-url-fetch nil)
;; (t "Browse by emacs-w3m" mew-w3m-ext-url-show nil)))))
(defun flush-queue ()
(interactive)
(mew-smtp-flush-queue mew-case))
(add-hook 'mew-smtp-sentinel-hook 'flush-queue)
;; External programs
;;(setq mew-prog-postscript '("gnome-open" ("-geom" "+0+0") t))
(setq mew-prog-pdf '("open" nil t))
;; (setq mew-prog-ooffice "libreoffice")
;; (setq mew-prog-msword-ext "libreoffice")
;; (setq mew-prog-msexcel-ext "libreoffice")
;; (setq mew-prog-mspowerpoint-ext "libreoffice")
;;(setq mew-prog-msword '("ooffice" () t))
;;(setq mew-prog-msexcel '("ooffice" () t))
;;(setq mew-prog-mspowerpoint '("ooffice" () t))
(setq mew-use-master-passwd t)
;; (defun my-calendar (cache begin end &optional params)
;; ;; called in Message buffer
;; (save-excursion
;; (let ((start (point)))
;; ;; We need to keep composite properties of charset.
;; ;; This must be "insert-buffer-substring".
;; (insert-buffer-substring cache begin end)
;; (icalendar-import-buffer "%diary-tmp" t nil))))
;; (defvar my-calendar-prog 'my-calendar)
;; (add-hook 'mew-init-hook
;; (function
;; (lambda ()
;; (setcar
;; (cdr (cdr (cdr (assoc "text/calendar" mew-mime-content-type))))
;; 'my-calendar-prog))))