]> git.eshelyaron.com Git - emacs.git/commitdiff
Followup fix to previous message-update-smtp-method-header change
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Jan 2022 13:20:31 +0000 (14:20 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Jan 2022 13:20:31 +0000 (14:20 +0100)
* lisp/gnus/message.el (message-update-smtp-method-header): Narrow
to the headers first.

lisp/gnus/message.el

index 2735c043b315f2816f2b1d0dd1a4ecb93e82f81e..a6c6a16653dc7a2b670ac375465dedba32103e72 100644 (file)
@@ -4360,6 +4360,7 @@ it is left unchanged."
     (let ((from (cadr (mail-extract-address-components
                        (save-restriction
                          (widen)
+                         (message-narrow-to-headers-or-head)
                          (message-fetch-field "From")))))
           method)
       (catch 'exit