Setup mu4e
This commit is contained in:
parent
ac49bd822d
commit
36ee201aa1
|
@ -330,3 +330,18 @@ work if it thinks it needs to."
|
|||
elfeed-enclosure-default-dir (concat org-directory "elfeed/enclosures/")
|
||||
shr-max-width nil)
|
||||
(make-directory elfeed-db-directory t))
|
||||
|
||||
(after! mu4e
|
||||
(setq sendmail-program (executable-find "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! "mccarty.io"
|
||||
'((mu4e-sent-folder . "/nathan@mccarty.io/Sent")
|
||||
(mu4e-drafts-folder . "/nathan@mccarty.io/Drafts")
|
||||
(mu4e-trash-folder . "/nathan@mccarty.io/Trash")
|
||||
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
||||
(smtpmail-smtp-user . "nathan@mccarty.io"))
|
||||
t)
|
||||
|
|
|
@ -528,3 +528,24 @@ Use ~elfeed~ for RSS. Doom provides most of the configuration, but we'll make a
|
|||
shr-max-width nil)
|
||||
(make-directory elfeed-db-directory t))
|
||||
#+end_src
|
||||
** Email
|
||||
Use ~mu4e~ for email. Most of the bootstrap is provided by doom emacs.
|
||||
First, tell mu4e to use msmtp
|
||||
#+begin_src emacs-lisp
|
||||
(after! mu4e
|
||||
(setq sendmail-program (executable-find "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))
|
||||
#+end_src
|
||||
Then tell it where our account's stuff is
|
||||
#+begin_src emacs-lisp
|
||||
(set-email-account! "mccarty.io"
|
||||
'((mu4e-sent-folder . "/nathan@mccarty.io/Sent")
|
||||
(mu4e-drafts-folder . "/nathan@mccarty.io/Drafts")
|
||||
(mu4e-trash-folder . "/nathan@mccarty.io/Trash")
|
||||
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
||||
(smtpmail-smtp-user . "nathan@mccarty.io"))
|
||||
t)
|
||||
#+end_src
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
(java +lsp +meghanada)
|
||||
(javascript +lsp)
|
||||
:email
|
||||
;;(mu4e +org +gmail)
|
||||
(mu4e +org)
|
||||
;;notmuch
|
||||
;;(wanderlust +gmail)
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
extraPackages = [ pkgs.mu ];
|
||||
};
|
||||
# Setup service
|
||||
services.emacs = {
|
||||
|
|
|
@ -7,7 +7,6 @@ with lib; {
|
|||
pass
|
||||
protonmail-bridge
|
||||
mu
|
||||
xapian
|
||||
];
|
||||
# Configure protonmail as a service
|
||||
systemd.user.services.protonmail-bridge = {
|
||||
|
@ -64,10 +63,15 @@ with lib; {
|
|||
create = "maildir";
|
||||
};
|
||||
mu.enable = true;
|
||||
msmtp = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
# Setup mbsync
|
||||
};
|
||||
## Enable email applications
|
||||
# Setup mbsync for incoming emails
|
||||
# For fun reasons this requires enabling the program and the service
|
||||
programs.mbsync = {
|
||||
enable = true;
|
||||
};
|
||||
|
@ -75,9 +79,13 @@ with lib; {
|
|||
enable = true;
|
||||
postExec = "${pkgs.mu}/bin/mu index";
|
||||
};
|
||||
# Setup mu
|
||||
# Setup mu for indexing emails
|
||||
programs.mu = {
|
||||
enable = true;
|
||||
};
|
||||
# Setup msmtp for outbound emails
|
||||
programs.msmtp = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue