Merge pull request #2751 from manphiz/issue-2750

Ensure `User-Agent' is set
This commit is contained in:
Dirk-Jan C. Binnema
2024-08-28 23:03:41 +03:00
committed by GitHub

View File

@ -723,7 +723,8 @@ Returns the new buffer."
;; compose-func ;; compose-func
(let ((draft-buffer) (let ((draft-buffer)
(oldframe (selected-frame)) (oldframe (selected-frame))
(oldwinconf (current-window-configuration))) (oldwinconf (current-window-configuration))
(message-newsreader mu4e-user-agent-string))
(with-temp-buffer (with-temp-buffer
;; provide a temp buffer so the compose-func can do its thing ;; provide a temp buffer so the compose-func can do its thing
(setq draft-buffer (mu4e--validate-hidden-buffer (funcall compose-func))) (setq draft-buffer (mu4e--validate-hidden-buffer (funcall compose-func)))