can now read mails in mu4e

This commit is contained in:
paul-loedige
2024-11-22 21:44:41 +01:00
parent e743d009b1
commit 77562b7b43
+45 -22
View File
@@ -2559,30 +2559,14 @@ and configure it
#+end_src #+end_src
** E-Mail ** E-Mail
*** mu Installation *** isync
#+begin_src config :tangle pkg-list.txt **** Installation
mu isync git is needed to deal with a [[https://bugzilla.redhat.com/show_bug.cgi?id=2314719][current bug]]
#+end_src
*** isync Installation
#+begin_src config :tangle pkg-list.txt #+begin_src config :tangle pkg-list.txt
isync-git isync-git
#+end_src #+end_src
*** msmtp Installation **** mbsync Configuration
#+begin_src config :tangle pkg-list.txt ***** paul@ploedige.com
msmtp
#+end_src
**** recommended config
#+begin_src emacs-lisp :tangle ~/.config/doom/config.el
(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
*** mbsync Configuration
**** paul@ploedige.com
#+begin_src config :tangle ~/.mbsyncrc #+begin_src config :tangle ~/.mbsyncrc
# Account Information # Account Information
IMAPAccount ploedige IMAPAccount ploedige
@@ -2611,13 +2595,52 @@ Create Both
Expunge Both Expunge Both
SyncState * SyncState *
#+end_src #+end_src
***** create mail directory if not yet exists ****** create mail directory if not yet exists
#+begin_src shell :tangle update.sh #+begin_src shell :tangle update.sh
MAILDIR_PATH="$HOME/mail/ploedige" MAILDIR_PATH="$HOME/mail/ploedige"
if [ ! -d "$MAILDIR_PATH" ]; then if [ ! -d "$MAILDIR_PATH" ]; then
mkdir -p "$MAILDIR_PATH" mkdir -p "$MAILDIR_PATH"
fi fi
#+end_src #+end_src
*** mu
**** Installation
#+begin_src config :tangle pkg-list.txt
mu
#+end_src
***** Initialize if needed
#+begin_src shell :tangle update.sh
MAILDIR_PATH="$HOME/mail/ploedige"
if [ ! -d "$HOME/.cache/mu" ]; then
echo "Initializing mu!"
mu init --maildir="$MAILDIR_PATH" --my-address paul@ploedige.com --my-address ploedige@yahoo.com
mu index
fi
#+end_src
*** Setup Emacs
#+begin_src emacs-lisp :tangle ~/.config/doom/config.el
(after! mu4e
(set-email-account! "ploedige.com"
'((mu4e-sent-folder . "/Sent")
(mu4e-drafts-folder . "/Draft")
(mu4e-trash-folder . "/Trash")
(mu4e-refile-folder . "/Bulk")
(smtpmail-smtp-user . "ploedige@yahoo.com"))
t))
#+end_src
*** msmtp Installation
#+begin_src config :tangle pkg-list.txt
msmtp
#+end_src
**** recommended config
#+begin_src emacs-lisp :tangle ~/.config/doom/config.el
(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
** Org Mode ** Org Mode
*** Dependencies *** Dependencies
#+begin_src conf :tangle pkg-list.txt #+begin_src conf :tangle pkg-list.txt