| 1 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 2 |
;;; |
| 3 |
;;; A sample file of .mew.el |
| 4 |
;;; |
| 5 |
; |
| 6 |
; This is just a sample. You should customize as you like... |
| 7 |
; |
| 8 |
|
| 9 |
;; (setq mew-name "your name") ;; (user-full-name) |
| 10 |
;; (setq mew-user "user name of e-mail address") ;; (user-login-name) |
| 11 |
;(setq mew-mail-domain "domain of e-mail address") |
| 12 |
|
| 13 |
;; For SMTP |
| 14 |
;(setq mew-smtp-server "your SMTP server") ;; if not localhost |
| 15 |
;; Set 587 or submission to use submission port. |
| 16 |
;(setq mew-smtp-port "smtp") |
| 17 |
;; Set 'ipv6 for IPv6 |
| 18 |
;(setq mew-smtp-submission-family 'ipv4) |
| 19 |
;; Set a user name to enable SMTP AUTH |
| 20 |
;(setq mew-smtp-user "[email protected]") |
| 21 |
|
| 22 |
;; For POP |
| 23 |
;; (setq mew-pop-user "your POP account") ;; (user-login-name) |
| 24 |
;(setq mew-pop-server "your POP server") ;; if not localhost |
| 25 |
|
| 26 |
;; To use local mailbox "mbox" or "maildir" instead of POP |
| 27 |
;(setq mew-mailbox-type 'mbox) |
| 28 |
;(setq mew-mbox-command "incm") |
| 29 |
;(setq mew-mbox-command-arg "-u -d /path/to/mbox") |
| 30 |
;; If /path/to/mbox is a file, it means "mbox". |
| 31 |
;; If /path/to/mbox is a directory, it means "maildir". |
| 32 |
|
| 33 |
;; For IMAP |
| 34 |
;(setq mew-proto "%") |
| 35 |
;; (setq mew-imap-user "your IMAP account") ;; (user-login-name) |
| 36 |
;(setq mew-imap-server "your IMAP server") ;; if not localhost |
| 37 |
|
| 38 |
;; For NNTP |
| 39 |
;; (setq mew-nntp-user "your NNTP account") |
| 40 |
;(setq mew-nntp-server "your NNTP server") |
| 41 |
|
| 42 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 43 |
;;; |
| 44 |
;;; POP/SMTP over SSL |
| 45 |
;;; |
| 46 |
; |
| 47 |
; This setting is necessary for Gmail etc. |
| 48 |
; stunnel has to be installed. |
| 49 |
; |
| 50 |
;(setq mew-mail-domain "example.jp") |
| 51 |
;(setq mew-ssl-verify-level 0) ;;; See a comment in mew-ssl.el for more detail |
| 52 |
;(setq mew-prog-ssl "/usr/local/bin/stunnel") ;;; for UNIX |
| 53 |
;(setq mew-prog-ssl "C:/Program Files (x86)/stunnel/tstunnel.exe") ;;; for Windows (instead of using stunnel.exe) |
| 54 |
;(setq mew-smtp-ssl t) |
| 55 |
;(setq mew-smtp-user "[email protected]") |
| 56 |
;(setq mew-smtp-server "smtp.example.com") |
| 57 |
;(setq mew-pop-ssl t) |
| 58 |
;(setq mew-pop-user "[email protected]") |
| 59 |
;(setq mew-pop-server "pop.example.com") |
| 60 |
;(setq mew-pop-auth 'pass) |
| 61 |
;(setq mew-use-cached-passwd t) |
| 62 |
|
| 63 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 64 |
;;; |
| 65 |
;;; Citation tip |
| 66 |
;;; |
| 67 |
;;; |
| 68 |
;;; From: Kazu-kun |
| 69 |
;;; Subject: Hello World |
| 70 |
;;; Date: Thu, 08 Dec 1994 11:44:08 +0900 |
| 71 |
;;; Message-Id: <[email protected]> |
| 72 |
;;; |
| 73 |
;;; Kazu-kun> The quick brown fox jumped over the very lazy dog. |
| 74 |
;;; |
| 75 |
|
| 76 |
(setq mew-cite-fields '("From:" "Subject:" "Date:" "Message-ID:")) |
| 77 |
(setq mew-cite-format "From: %s\nSubject: %s\nDate: %s\nMessage-ID: %s\n\n") |
| 78 |
(setq mew-cite-prefix-function 'mew-cite-prefix-username) |
| 79 |
;(setq mew-addrbook-for-cite-label 'nickname) |
| 80 |
;(setq mew-addrbook-for-cite-prefix 'nickname) |
| 81 |
|
| 82 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 83 |
;;; |
| 84 |
;;; Pick macro |
| 85 |
;;; |
| 86 |
|
| 87 |
;(mew-pick-define-macro "tocc=#" "to=#|cc=#") |
| 88 |
;(mew-pick-define-macro "mew" "tocc=mew"))) |
| 89 |
|
| 90 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 91 |
;;; |
| 92 |
;;; ? and / |
| 93 |
;;; |
| 94 |
|
| 95 |
;; To whose who want to search Japanese key in the entire of messages. |
| 96 |
;; ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/mg-xxx |
| 97 |
;; ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/jcode-xxx.pl |
| 98 |
;; |
| 99 |
;; (setq mew-prog-grep "mg") |
| 100 |
;; |
| 101 |
;; 1. Search an EUC key (after converting to JIS) on JIS messages. |
| 102 |
;; (setq mew-prog-grep-opts '("-j" "jis" "-l" "-e")) |
| 103 |
;; |
| 104 |
;; 2. Search an EUC key (after converting to JIS) on JIS messages |
| 105 |
;; decoding their encoded-words. |
| 106 |
;; (setq mew-prog-grep-opts '("-j" "jis" "-l" "-e" "-x" "&mime")) |
| 107 |
;; |
| 108 |
;; 3. Search an EUC key on JIS messages after converting to EUC by nkf. |
| 109 |
;; (setq mew-prog-grep-opts '("-l" "-e" "-z" "nkf -e")) |
| 110 |
;; |
| 111 |
;; 4. Search an EUC key on JIS messages after converting to EUC |
| 112 |
;; and decoding their encoded-words by nkf. Make sure that |
| 113 |
;; "nkf" has the "-m" option. |
| 114 |
;; (setq mew-prog-grep-opts '("-l" "-e" "-z" "nkf -e -m")) |
| 115 |
;; |
| 116 |
;; |
| 117 |
;; Also, set mew-prog-vgrep and mew-prog-vgrep-opts |
| 118 |
|
| 119 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 120 |
;;; |
| 121 |
;;; Using the "eww" browser |
| 122 |
;;; |
| 123 |
;;; shr-render-region is built into Emacs 24.1 and later. |
| 124 |
|
| 125 |
;(setq mew-use-text/html t) ; decode HTML for all folders |
| 126 |
;(setq mew-mime-multipart-alternative-list '("Text/Html" "Text/Plain" ".*")) |
| 127 |
;(if (and (fboundp 'shr-render-region) |
| 128 |
; ;; \\[shr-render-region] requires Emacs to be compiled with libxml2. |
| 129 |
; (fboundp 'libxml-parse-html-region)) |
| 130 |
; (setq mew-prog-text/html 'shr-render-region)) |
| 131 |
|
| 132 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 133 |
;;; |
| 134 |
;;; Using "w3m" with "emacs-w3m" |
| 135 |
;;; |
| 136 |
;;; w3m: please use w3m-m17n based on w3m 0.2.5 (or greater maybe). |
| 137 |
;;; http://www2u.biglobe.ne.jp/~hsaka/w3m/ |
| 138 |
;;; |
| 139 |
;;; emacs-w3m: |
| 140 |
;;; cvs -d :pserver:[email protected]:/storage/cvsroot login |
| 141 |
;;; cvs -d :pserver:[email protected]:/storage/cvsroot co emacs-w3m |
| 142 |
|
| 143 |
|
| 144 |
;(setq mew-use-text/html t) ; decode HTML for all folders |
| 145 |
;(setq mew-mime-multipart-alternative-list '("Text/Html" "Text/Plain" ".*")) |
| 146 |
|
| 147 |
;(condition-case nil |
| 148 |
; (require 'mew-w3m) |
| 149 |
; (file-error nil)) |
| 150 |
|
| 151 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 152 |
;;; |
| 153 |
;;; Using "wvHtml", "xlhtml", and "ppthtml" |
| 154 |
;;; |
| 155 |
;;; Unicode is necessary. Emacs 22.0.50 or later includes Unicode by |
| 156 |
;;; default. For earlier versions, install Mule-UCS. |
| 157 |
;;; |
| 158 |
;;; ftp://ftp.m17n.org/pub/mule/Mule-UCS/ |
| 159 |
|
| 160 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 161 |
;;; |
| 162 |
;;; Using "wvHtml" |
| 163 |
;;; http://www.wvware.com/ |
| 164 |
;;; |
| 165 |
;;; The default configuration is for the version greater than |
| 166 |
;;; or equal to 0.7. For the version prior to 0.7, set as follows: |
| 167 |
|
| 168 |
;(setq mew-use-old-wvhtml t) |
| 169 |
|
| 170 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 171 |
;;; |
| 172 |
;;; Using "xlhtml" and "ppthtml" |
| 173 |
;;; http://chicago.sourceforge.net/xlhtml/ |
| 174 |
;;; |
| 175 |
;;; The default configuration is for the version greater than |
| 176 |
;;; or equal to 0.3. For the version prior to 0.3, set as follows: |
| 177 |
|
| 178 |
;(setq mew-prog-application/msexcel "xlHtml") |
| 179 |
;(setq mew-prog-application/mspowerpoint "pptHtml") |
| 180 |
|
| 181 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 182 |
;;; |
| 183 |
;;; Using Apache OpenOffice / LibreOffice / StarSuite |
| 184 |
;;; |
| 185 |
|
| 186 |
;(setq mew-prog-msword '("soffice" nil t)) |
| 187 |
;(setq mew-prog-msexcel '("soffice" nil t)) |
| 188 |
;(setq mew-prog-mspowerpoint '("soffice" nil t)) |
| 189 |
|
| 190 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 191 |
;;; |
| 192 |
;;; Replying messages and character set |
| 193 |
;;; |
| 194 |
|
| 195 |
;; When replying, select input method according to the character set |
| 196 |
;; of the message to be replied. |
| 197 |
|
| 198 |
;(setq mew-charset-input-method-alist |
| 199 |
; '(("iso-8859-1" "latin-1-postfix") |
| 200 |
; ("iso-8859-2" "latin-2-postfix") |
| 201 |
; ("iso-8859-15" "latin-9-postfix"))) |
| 202 |
|
| 203 |
|
| 204 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 205 |
;;; |
| 206 |
;;; Printing Message mode to your PS printer |
| 207 |
;;; |
| 208 |
|
| 209 |
;(setq mew-print-function 'ps-print-buffer) |
| 210 |
;(setq ps-multibyte-buffer 'non-latin-printer) ;; for Japanese |
| 211 |
;(setq ps-print-header nil) |
| 212 |
|
| 213 |
;;; |
| 214 |
;;; End |
| 215 |
;;; |