about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-07-08T16·55+0200
committerVincent Ambo <vincent@spotify.com>2013-07-08T16·55+0200
commitb65611db02e7d63c7b2d23f70eece5381c6ab700 (patch)
tree39a669e4fc9eb8fe5ae9ccd2ca5c11f7f6365a8d
parentf2c32a12be3dc69e82d7a8cc6bce762885afb424 (diff)
emacs: Initial mail settings
-rw-r--r--emacs.d/init-mail.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/emacs.d/init-mail.el b/emacs.d/init-mail.el
new file mode 100644
index 000000000000..982b78156ff3
--- /dev/null
+++ b/emacs.d/init-mail.el
@@ -0,0 +1,18 @@
+(require 'gnus)
+
+(setq gnus-select-method '(nnimap "gmail"
+				  (nnimap-address "imap.gmail.com")
+				  (nnimap-server-port 993)
+				  (nnimap-stream ssl)))
+
+(setq message-send-mail-function 'smtpmail-send-it
+      smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
+      smtpmail-auth-credentials '(("smtp.gmail.com" 587 "vincent@spotify.com" nil))
+      smtpmail-default-smtp-server "smtp.gmail.com"
+      smtpmail-smtp-server "smtp.gmail.com"
+      smtpmail-smtp-service 587
+      smtpmail-local-domain "spotify.com")
+
+ ;; Make Gnus NOT ignore [Gmail] mailboxes
+(setq gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
+