]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix wrong-type-argument
authorPhilip Kaludercic <philipk@posteo.net>
Wed, 22 Dec 2021 23:38:28 +0000 (00:38 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Wed, 22 Dec 2021 23:38:34 +0000 (00:38 +0100)
* message.el (message-update-smtp-method-header): Only Use address
part of mail-extract-address-component.

lisp/gnus/message.el

index 8c88ac8257cd36eb9c85c2bf554eb6ca9a6b2f4c..c18560b164b2015d8e5a9e24db02792fb7f7ff22 100644 (file)
@@ -4356,7 +4356,7 @@ header."
 (defun message-update-smtp-method-header ()
   "Check `message-server-alist' to insert a SMTP-Method header."
   (unless (message-fetch-field "X-Message-SMTP-Method")
-    (let ((from (mail-extract-address-components (message-fetch-field "From")))
+    (let ((from (cadr (mail-extract-address-components (message-fetch-field "From"))))
           method)
       (catch 'exit
         (dolist (server message-server-alist)