diff options
author | Adrian Kummerlaender | 2020-06-25 22:41:44 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2020-06-25 22:41:44 +0200 |
commit | 5845130869c6b45fc3c1027ab6b81ea15ac23d7e (patch) | |
tree | 8d1877a0a6d88daebde85ae2722ceca91e76dc4b /gui/conf | |
parent | 2def27a99df173aabf0e1aab023574080d912385 (diff) | |
download | nixos_home-5845130869c6b45fc3c1027ab6b81ea15ac23d7e.tar nixos_home-5845130869c6b45fc3c1027ab6b81ea15ac23d7e.tar.gz nixos_home-5845130869c6b45fc3c1027ab6b81ea15ac23d7e.tar.bz2 nixos_home-5845130869c6b45fc3c1027ab6b81ea15ac23d7e.tar.lz nixos_home-5845130869c6b45fc3c1027ab6b81ea15ac23d7e.tar.xz nixos_home-5845130869c6b45fc3c1027ab6b81ea15ac23d7e.tar.zst nixos_home-5845130869c6b45fc3c1027ab6b81ea15ac23d7e.zip |
Add missing email.el file
Diffstat (limited to 'gui/conf')
-rw-r--r-- | gui/conf/email.el | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gui/conf/email.el b/gui/conf/email.el new file mode 100644 index 0000000..1ce3958 --- /dev/null +++ b/gui/conf/email.el @@ -0,0 +1,46 @@ +(use-package mu4e + :config + (setq mu4e-maildir "~/mail") + (setq mu4e-get-mail-command "true") + (setq mu4e-update-interval 120) + (setq mu4e-use-fancy-chars t) + (setq mu4e-headers-attach-mark '("a" . "@")) ; alignment fix + (setq mu4e-change-filenames-when-moving t) + (setq sendmail-program "msmtp" + send-mail-function 'smtpmail-send-it + message-sendmail-f-is-evil t + message-send-mail-function 'message-send-mail-with-sendmail) + (setq mu4e-hide-index-messages t) + (require 'org-mu4e) + (evil-collection-init 'mu4e) + (setq doom-modeline-mu4e t)) + +(use-package mu4e-alert + :ensure t + :config + (mu4e-alert-set-default-style 'libnotify) + (add-hook 'after-init-hook #'mu4e-alert-enable-notifications)) + +(setq mu4e-contexts + `(,(make-mu4e-context + :name "private" + :match-func (lambda (msg) + (when msg + (string-match-p "^/automatix" (mu4e-message-field msg :maildir)))) + :vars '((user-mail-address . "adrian@kummerlaender.eu") + (user-full-name . "Adrian Kummerländer") + (mu4e-sent-folder . "/automatix/Sent") + (mu4e-drafts-folder . "/automatix/Drafts") + (mu4e-trash-folder . "/automatix/Trash") + (message-sendmail-extra-arguments . ("--read-envelope-from" "--account=automatix")))) + ,(make-mu4e-context + :name "KIT" + :match-func (lambda (msg) + (when msg + (string-match-p "^/kit" (mu4e-message-field msg :maildir)))) + :vars '((user-mail-address . "adrian.kummerlaender@student.kit.edu") + (user-full-name . "Adrian Kummerländer") + (mu4e-sent-folder . "/kit/Sent") + (mu4e-drafts-folder . "/kit/Drafts") + (mu4e-trash-folder . "/kit/Trash") + (message-sendmail-extra-arguments . ("--read-envelope-from" "--account=kit")))))) |