mu4e-compose: handle no-fcc-path in sent-hook

Workaround for #2688.
This commit is contained in:
Dirk-Jan C. Binnema 2024-04-13 13:08:05 +03:00
parent 32d73260d3
commit d3e7b9cf05
1 changed files with 7 additions and 6 deletions

View File

@ -560,12 +560,13 @@ appropriate flag at the message forwarded or replied-to."
;; appropriate flag at the message forwarded or replied-to.
(add-hook 'message-sent-hook
(lambda ()
(mu4e--set-parent-flags fcc-path)
;; we end up with a ((buried) buffer here, visiting
;; the fcc-path; not quite sure why. But let's
;; get rid of it (#2681)
(when-let ((buf (find-buffer-visiting fcc-path)))
(kill-buffer buf)))
(when fcc-path ;; hmmm... #2688
(mu4e--set-parent-flags fcc-path)
;; we end up with a ((buried) buffer here, visiting
;; the fcc-path; not quite sure why. But let's
;; get rid of it (#2681)
(when-let ((buf (find-buffer-visiting fcc-path)))
(kill-buffer buf))))
nil t))))
;;; Crypto