From d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 24 Jun 2020 21:31:11 +0200 Subject: Update mu4e mail setup --- gui/conf/init.el | 15 +++++++++++++-- gui/emacs.nix | 1 + gui/email.nix | 8 ++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) (limited to 'gui') diff --git a/gui/conf/init.el b/gui/conf/init.el index dbcffcc..bf442f1 100644 --- a/gui/conf/init.el +++ b/gui/conf/init.el @@ -356,15 +356,26 @@ (use-package mu4e :config (setq mu4e-maildir "~/mail") - (setq mu4e-get-mail-command "mbsync -a") + (setq mu4e-get-mail-command "true") + (setq mu4e-index-cleanup nil) + (setq mu4e-index-lazy-check t) + (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) (require 'org-mu4e) - (evil-collection-init '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 diff --git a/gui/emacs.nix b/gui/emacs.nix index c674213..15b9049 100644 --- a/gui/emacs.nix +++ b/gui/emacs.nix @@ -56,6 +56,7 @@ source-sans-pro source-serif-pro emacs-all-the-icons-fonts + mu ]; # see https://github.com/rycee/home-manager/issues/589#issuecomment-466594137 diff --git a/gui/email.nix b/gui/email.nix index 675233d..99246af 100644 --- a/gui/email.nix +++ b/gui/email.nix @@ -14,7 +14,7 @@ address = "adrian@kummerlaender.eu"; userName = "adrian@kummerlaender.eu"; - passwordCommand = "pass it/automatix_mail"; + passwordCommand = "${pkgs.pass}/bin/pass it/automatix_mail"; gpg = { key = "61F4C67D12636E70AFB10C3D83E758150AB49859"; @@ -44,7 +44,7 @@ address = "adrian.kummerlaender@student.kit.edu"; userName = "urdzx@student.kit.edu"; - passwordCommand = "pass kit"; + passwordCommand = "${pkgs.pass}/bin/pass kit"; imap = { host = "imap.kit.edu"; @@ -68,4 +68,8 @@ msmtp.enable = true; }; }; + + services.mbsync = { + enable = true; + }; } -- cgit v1.2.3