~/.mew.el

lisp;;----------------------------------------------------------------------------
;; ~/.mew.el
;;----------------------------------------------------------------------------
(setq mew-name "你的名字")
(setq mew-mail-path "存放邮件的目录")
(setq mew-conf-path mew-mail-path)
(setq mew-addrbook-file "MEW通讯录文件的目录")
(setq mew-use-cached-passwd t) ; 缓存密码
(setq mew-use-master-passwd t) ; 主密码(可替代邮件密码)
(setq mew-prog-pgp "gpg") ; (使用gpg加密邮件密码)
;;----------------------------------------------------------------------------
;; Stunnel
;;----------------------------------------------------------------------------
(setq mew-prog-ssl "/usr/local/bin/stunnel") ; stunnel路径
;;----------------------------------------------------------------------------
;; IMAP for Ruby.org
;;----------------------------------------------------------------------------
(setq mew-proto "%") ; 邮箱头符号
(setq mew-from "你的Gmail邮件地址")
(setq mew-imap-server "imap.gmail.com")
(setq mew-imap-user "你的Gmail邮件地址")
(setq mew-imap-auth  t) ; 启用IMAP身份验证
(setq mew-imap-ssl t) ; 启动IMAP加密链接
(setq mew-imap-ssl-port "993") ; IMAP加密链接端口号
(setq mew-smtp-auth t) ; 启用SMTP身份验证
(setq mew-smtp-ssl t) ; 启用SMTP加密链接
(setq mew-smtp-ssl-port "465") ; SMTP加密链接端口号
(setq mew-smtp-server "smtp.gmail.com")
(setq mew-smtp-user "你的Gmail邮件地址")
(setq mew-fcc "%Sent Items") ; 发送文件抄送到%Sent Items目录
(setq mew-imap-trash-folder "%Trash") ; 删除邮件到%Trash目录
;;----------------------------------------------------------------------------
;; Coding
;;----------------------------------------------------------------------------
(setq mew-charset-m17n "utf-8") ; 设置字符集
(setq mew-internal-utf-8p) ; 设置字符集
;;----------------------------------------------------------------------------
;; W3M
;;----------------------------------------------------------------------------
(setq mew-mime-multipart-alternative-list '("text/html" "text/plain" "*."))
 (condition-case nil
 (require 'mew-w3m)
(file-error nil))
(setq mew-use-w3m-minor-mode t)
(setq mew-w3m-auto-insert-image t) ; 调用W3M读取读取HTML邮件,自动显示图片

/usr/local/etc/stunnel/stunnel.conf

chroot = /usr/local/Cellar/stunnel/4.56/var/lib/stunnel/
setuid = nobody
setgid = nogroup
pid = /stunnel.pid
cert = /usr/local/Cellar/stunnel/4.56/etc/stunnel/mail.pem
key = /usr/local/Cellar/stunnel/4.56/etc/stunnel/mail.pem

[pop3s]
accept  = 995
connect = 110

[imaps]
accept  = 993
connect = 143

[ssmtp]
accept  = 465
connect = 25

venmos
462 声望15 粉丝

Maccon, Emacscon, Lolicon, ACG. False geek, Looks like a quiet guy. Love open source, Loves photography and outdoor sports. Favorite programming language is Ruby and Lisp.


引用和评论

0 条评论