Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes jeremy-compostella#200

remove undo from message-sent-hook as it was causing an error and for html drafts to be sent after successful message sending (unintended behavior).

Also discussed in jeremy-compostella#182 where the hook was suspected to be causing problems jeremy-compostella#182

Note, in jeremy-compostella#182 multiple users report no issues after removing hook.

As requested, only turn remove hook from mu4e
  • Loading branch information
jsilve24 committed Dec 6, 2024
1 parent 59e2042 commit 02ba2cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org-msg.el
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,8 @@ Type \\[org-msg-attach] to call the dispatcher for attachment
\\{org-msg-edit-mode-map}"
(setq-local message-sent-message-via nil)
(add-hook 'message-send-hook 'org-msg-prepare-to-send nil t)
(add-hook 'message-sent-hook 'undo t t)
(if (not (equal mail-user-agent #'mu4e-user-agent))
(add-hook 'message-sent-hook 'undo t t))
(add-hook 'completion-at-point-functions 'message-completion-function nil t)
(cond ((message-mail-alias-type-p 'abbrev) (mail-abbrevs-setup))
((message-mail-alias-type-p 'ecomplete) (ecomplete-setup)))
Expand Down

0 comments on commit 02ba2cc

Please sign in to comment.