about summary refs log tree commit diff
path: root/config.el
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-05-18T15·33-0400
committerGriffin Smith <root@gws.fyi>2020-05-18T15·33-0400
commit67d95c58c09b67457a51ad780f9c7b5499036862 (patch)
treee777f6b8ca3e0653db362a71df8650e51aa3a92c /config.el
parent2bc8919a241e0d65c547e5671e3909e1c85b347f (diff)
no more mu
Diffstat (limited to 'config.el')
-rw-r--r--config.el49
1 files changed, 32 insertions, 17 deletions
diff --git a/config.el b/config.el
index 0c70b4420423..12eca00ae738 100644
--- a/config.el
+++ b/config.el
@@ -1163,13 +1163,6 @@ SCHEDULED: <%s>"
 (use-package! github-review
   :after forge)
 
-(after! mu4e
-  (setq sendmail-program "/usr/bin/msmtp"
-        send-mail-function #'smtpmail-send-it
-        message-sendmail-f-is-evil t
-        message-sendmail-extra-arguments '("--read-envelope-from")
-        message-send-mail-function #'message-send-mail-with-sendmail))
-
 (defun grfn/org-add-db-connection-params ()
   (interactive)
   (ivy-read
@@ -1211,16 +1204,38 @@ SCHEDULED: <%s>"
    )
   )
 
-(after! mu4e
-  (setq mu4e-contexts
-        `(,(make-mu4e-context
-            :name "work"
-            :vars
-            '())
-          ,(make-mu4e-context
-            :name "personal"
-            :vars
-            '()))))
+;; (use-package! mu4e
+;;   :config
+;;   (setq mu4e-contexts
+;;         `(,(make-mu4e-context
+;;             :name "work"
+;;             :match-func
+;;             (lambda (msg)
+;;               (when msg
+;;                 (string-match-p "^/work"
+;;                                 (mu4e-message-field msg :maildir))))
+;;             :vars
+;;             '((user-mail-address . "griffin@urbint.com")))
+;;           ,(make-mu4e-context
+;;             :name "personal"
+;;             :match-func
+;;             (lambda (msg)
+;;               (when msg
+;;                 (string-match-p "^/personal"
+;;                                 (mu4e-message-field msg :maildir))))
+;;             :vars
+;;             '((user-mail-address . "root@gws.fyi"))))
+;;         mu4e-maildir (expand-file-name "mail" "~")
+;;         sendmail-program "msmtp"
+;;         send-mail-function #'smtpmail-send-it
+;;         message-sendmail-f-is-evil t
+;;         message-sendmail-extra-arguments '("--read-envelope-from")
+;;         message-send-mail-function #'message-send-mail-with-sendmail)
+
+;;   (set-email-account!
+;;    "work"
+;;    '((user-mail-address . "griffin@urbint.com")
+;;      (smtmpmail-smtp-user . "griffin@urbint.com"))))
 
 (solaire-global-mode -1)