From 24b0a37244a305fcab5eae19e996a50a0d1062ed Mon Sep 17 00:00:00 2001 From: Emmet Date: Sun, 10 Dec 2023 10:11:26 -0600 Subject: [PATCH] Fixes mu4e compose new emails --- user/app/doom-emacs/config.el | 2 +- user/app/doom-emacs/doom.org | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index 0a50096..9c6dccb 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -1248,7 +1248,7 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)." (after! mu4e (setq mu4e-sent-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Sent"))) - (setq mu4e-drafts-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Drafts"))) + (setq mu4e-drafts-folder (lambda (msg) (concat "/" user-mail-address "/Drafts"))) (setq mu4e-trash-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Trash"))) (setq mu4e-refile-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Archive"))) diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index 2f26eac..5403d51 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -1472,7 +1472,7 @@ I don't have this active right now since it's kinda weird with pgtk... (after! mu4e (setq mu4e-sent-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Sent"))) - (setq mu4e-drafts-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Drafts"))) + (setq mu4e-drafts-folder (lambda (msg) (concat "/" user-mail-address "/Drafts"))) (setq mu4e-trash-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Trash"))) (setq mu4e-refile-folder (lambda (msg) (concat "/" (nth 1 (split-string (mu4e-message-field msg :maildir) "/" )) "/Archive")))