mu-wizard

shell script to easily configure mu4e accounts on Emacs
git clone git://git.ckyln.com/mu-wizard
Log | Files | Refs | LICENSE

commit bcd329a87f10416e2d902a2e8f833c6e54672b7f
parent d94b6902530b6d2d35fe4b24c835b784a0f739af
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  6 Nov 2020 01:48:09 +0300

mu4e-sent-messages-behavior: set locally instead of globally.

Since some mail domains (such as gmail) handle sent-messages internally the
usage of 'mu4e-sent-messages-behavior' should be handled locally instead of from
the global configuration. The users are encouraged to update their account
configurations to add this string to their configuration files themselves.

Diffstat:
Mbin/muw | 2++
Mmu4e-config.el | 3+--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/muw b/bin/muw @@ -201,6 +201,7 @@ set_accountlisp() { :to "$fulladdr"))) :vars '((user-mail-address . "$fulladdr") (message-sendmail-extra-arguments . ("-a" "$title")) + (mu4e-sent-messages-behavior . '$msg_behavior) (mu4e-drafts-folder . "/$title/${drafts:=Drafts}") (mu4e-trash-folder . "/$title/${trash:=Trash}") (mu4e-maildir-shortcuts . (("/$title/${inbox:-INBOX}" . ?i) @@ -293,6 +294,7 @@ main() { sharedir=/usr/share/mu-wizard ssltype=IMAPS + msg_behavior=sent mkdir -p "${config_home:=${XDG_CONFIG_HOME:-$HOME/.config}}" \ "${confdir:=$config_home/mu4e}" \ diff --git a/mu4e-config.el b/mu4e-config.el @@ -22,8 +22,7 @@ (setq mu4e-get-mail-command "mbsync -a" mail-user-agent 'mu4e-user-agent message-send-mail-function 'message-send-mail-with-sendmail - sendmail-program (executable-find "msmtp") - mu4e-sent-messages-behavior 'sent) + sendmail-program (executable-find "msmtp")) ;; Make mu4e-contexts an empty list.