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/")
|
elfeed-enclosure-default-dir (concat org-directory "elfeed/enclosures/")
|
||||||
shr-max-width nil)
|
shr-max-width nil)
|
||||||
(make-directory elfeed-db-directory t))
|
(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)
|
shr-max-width nil)
|
||||||
(make-directory elfeed-db-directory t))
|
(make-directory elfeed-db-directory t))
|
||||||
#+end_src
|
#+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)
|
(java +lsp +meghanada)
|
||||||
(javascript +lsp)
|
(javascript +lsp)
|
||||||
:email
|
:email
|
||||||
;;(mu4e +org +gmail)
|
(mu4e +org)
|
||||||
;;notmuch
|
;;notmuch
|
||||||
;;(wanderlust +gmail)
|
;;(wanderlust +gmail)
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
extraPackages = [ pkgs.mu ];
|
||||||
};
|
};
|
||||||
# Setup service
|
# Setup service
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
|
|
|
@ -209,7 +209,7 @@ with lib;
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Home Manager System Tray";
|
Description = "Home Manager System Tray";
|
||||||
Requires = [ "graphical-session-pre.target" "waybar.service" ];
|
Requires = [ "graphical-session-pre.target" "waybar.service" ];
|
||||||
After = ["waybar.service"];
|
After = [ "waybar.service" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ with lib; {
|
||||||
pass
|
pass
|
||||||
protonmail-bridge
|
protonmail-bridge
|
||||||
mu
|
mu
|
||||||
xapian
|
|
||||||
];
|
];
|
||||||
# Configure protonmail as a service
|
# Configure protonmail as a service
|
||||||
systemd.user.services.protonmail-bridge = {
|
systemd.user.services.protonmail-bridge = {
|
||||||
|
@ -64,10 +63,15 @@ with lib; {
|
||||||
create = "maildir";
|
create = "maildir";
|
||||||
};
|
};
|
||||||
mu.enable = true;
|
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 = {
|
programs.mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
@ -75,9 +79,13 @@ with lib; {
|
||||||
enable = true;
|
enable = true;
|
||||||
postExec = "${pkgs.mu}/bin/mu index";
|
postExec = "${pkgs.mu}/bin/mu index";
|
||||||
};
|
};
|
||||||
# Setup mu
|
# Setup mu for indexing emails
|
||||||
programs.mu = {
|
programs.mu = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
# Setup msmtp for outbound emails
|
||||||
|
programs.msmtp = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue