4
30
2011
0

Emacs MEW GMAIL IMAP设置

终于比较完整了,贡献给大家参考学习

(大量参考了某日文网站和Emacser的相关文章)

5-1 第一次发布,含有帐号设置

5-2 增加回复、签名档、密码缓存和GPG签名验证设置

;;;;; 该部代码节选自 Ekd123 的 .emacs 文件,略有改动 ;;;;;;;;;

;;;;; 其中注释内容用 <M-;> 取消注释 ;;;;;;;;

;;Mew
;--------------------
;回复
(setq mew-summary-reply-with-citation-position 'body)
(setq mew-cite-fields '("Date:" "From:"))
(setq mew-cite-format "\n\nOn %s %s wrote:\n")
(add-hook 'mew-before-cite-hook 'mew-header-goto-body)
(add-hook 'mew-draft-mode-newdraft-hook 'mew-draft-insert-signature)
;签名档 请确认你写好了签名文件,不自动加分隔符
;; (setq mew-signature-file "~/Mail/signature")
;; (setq mew-signature-as-lastpart t)
;; (setq mew-signature-insert-last t)
;Spam
(setq mew-summary-form-mark-spam t)
;帐号设置
(setq mew-proto "%")
(setq mew-user "whoami")
(setq mew-name "Who AmI")
(setq mew-mail-domain "gmail.com")
(setq mew-imap-server "imap.gmail.com")
(setq mew-imap-user "whoami@gmail.com")
(setq mew-imap-auth t)
(setq mew-imap-ssl t)
(setq mew-imap-ssl-port "993")
(setq mew-smtp-auth t)
(setq mew-smtp-ssl t)
(setq mew-smtp-ssl-port "465")
(setq mew-smtp-user "whoami@gmail.com")
(setq mew-smtp-server "smtp.gmail.com")
(setq mew-ssl-verify-level 0) ;;没有会导致验证失败
;密码缓存
(setq mew-use-cached-passwd t)
;GPG签名设置(非加密) 首先确认你有没有GPG ID。
;; (setq mew-pgp-ascii-suffix "84599A3C")
;; (setq mew-protect-privacy-always t)
;; (setq mew-protect-privacy-always-type 'pgp-signature)
Category: 技术 | Tags: emacs | Read Count: 4853

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Powered by Chito | Hosted at is-Programmer | Theme: Aeros 2.0 by TheBuckmaker.com