Skip to content
Browse files

daily commit Fri Sep 21 17:09:18 CST 2012

  • Loading branch information...
1 parent 22d91c6 commit dfad36e5c85e81b5b770e12e2b6c93b8ba4b4760 @eggcaker committed
Showing with 13 additions and 0 deletions.
  1. +1 −0 plugins/pelm-evil.el
  2. +12 −0 plugins/pelm-mail.el
View
1 plugins/pelm-evil.el
@@ -87,6 +87,7 @@
(inferior-emacs-lisp-mode . emacs)
(shell-mode . emacs)
(mu4e-main-mode . emacs)
+ (mu4e-view-mode . emacs)
(mu4e-headers-mode . emacs)
(magit-branch-manager-mode-map . emacs)
(magit-mode . emacs))
View
12 plugins/pelm-mail.el
@@ -84,5 +84,17 @@
(setq mu4e-html2text-command "w3m -dump -T text/html")
(setq w3m-command "/usr/local/bin/w3m")
+;; password encrypt
+(require 'epa-file)
+(require 'netrc)
+(require 'offlineimap)
+(setq smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg"))
+
+(defun pelm-get-password (host port)
+ (let* ((netrc (netrc-parse (expand-file-name "~/.authinfo.gpg")))
+ (hostentry (netrc-machine netrc host port port)))
+ (when hostentry (netrc-get hostentry "password"))))
+
+
(provide 'pelm-mail)
;;; pelm-mail.el ends here

0 comments on commit dfad36e

Please sign in to comment.
Something went wrong with that request. Please try again.