Ensure `User-Agent' is set

* Set `message-newsreader' before calling `mu4e--prepare-draft-buffer' so that
`User-Agent' is properly set.

* Fixes #2750.
This commit is contained in:
Xiyue Deng
2024-08-28 12:40:53 -07:00
parent f101e0d4ca
commit 411407f03e

View File

@ -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)))