Skip to content

Commit

Permalink
Ensure `User-Agent' is set
Browse files Browse the repository at this point in the history
* Set `message-newsreader' before calling `mu4e--prepare-draft-buffer' so that
`User-Agent' is properly set.

* Fixes #2750.
  • Loading branch information
manphiz committed Aug 28, 2024
1 parent f101e0d commit 411407f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mu4e/mu4e-draft.el
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,8 @@ Returns the new buffer."
;; compose-func
(let ((draft-buffer)
(oldframe (selected-frame))
(oldwinconf (current-window-configuration)))
(oldwinconf (current-window-configuration))
(message-newsreader mu4e-user-agent-string))
(with-temp-buffer
;; provide a temp buffer so the compose-func can do its thing
(setq draft-buffer (mu4e--validate-hidden-buffer (funcall compose-func)))
Expand Down

0 comments on commit 411407f

Please sign in to comment.