Created
August 31, 2013 02:09
-
-
Save myuhe/6395799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'mu4e) | |
;; default | |
(setq mu4e-maildir (expand-file-name "~/Maildir")) | |
(setq mu4e-drafts-folder "/[Gmail].Drafts") | |
(setq mu4e-sent-folder "/[Gmail].Sent Mail") | |
(setq mu4e-trash-folder "/[Gmail].Trash") | |
(setq mu4e-html2text-command "w3m -dump -T text/html") | |
(setq mu4e-use-fancy-chars t) | |
;; don't save message to Sent Messages, GMail/IMAP will take care of this | |
(setq mu4e-sent-messages-behavior 'delete) | |
;; setup some handy shortcuts | |
(setq mu4e-maildir-shortcuts | |
'(("/INBOX" . ?i) | |
("/[Gmail].すべてのメール" . ?a) | |
("/[Gmail].スター付き" . ?s))) | |
;; allow for updating mail using 'U' in the main view: | |
(setq mu4e-get-mail-command "offlineimap") | |
;; something about ourselves | |
;; I don't use a signature... | |
(setq | |
user-mail-address "[email protected]" | |
user-full-name "Yuhei Maeda" | |
;; message-signature | |
;; (concat | |
;; "Foo X. Bar\n" | |
;; "http://www.example.com\n") | |
) | |
;; sending mail -- replace USERNAME with your gmail username | |
;; also, make sure the gnutls command line utils are installed | |
;; package 'gnutls-bin' in Debian/Ubuntu, 'gnutls' in Archlinux. | |
(require 'smtpmail) | |
(require 'starttls) | |
(setq message-send-mail-function 'smtpmail-send-it | |
starttls-use-gnutls t | |
smtpmail-starttls-credentials | |
'(("smtp.gmail.com" 587 nil nil)) | |
;; smtpmail-auth-credentials | |
;; (expand-file-name "~/.authinfo.gpg") | |
smtpmail-default-smtp-server "smtp.gmail.com" | |
smtpmail-smtp-server "smtp.gmail.com" | |
smtpmail-smtp-service 587 | |
smtpmail-debug-info t) | |
(provide 'init-mu4e) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment