Skip to content

Commit

Permalink
mu4e-compose: handle no-fcc-path in sent-hook
Browse files Browse the repository at this point in the history
Workaround for #2688.
  • Loading branch information
djcb committed Apr 13, 2024
1 parent 32d7326 commit d3e7b9c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions mu4e/mu4e-compose.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3e7b9c

Please sign in to comment.