From b1cfdb3573facdceae3785478c62c2e2548564ec Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Thu, 23 Dec 2021 00:38:28 +0100 Subject: [PATCH] Fix wrong-type-argument * message.el (message-update-smtp-method-header): Only Use address part of mail-extract-address-component. --- lisp/gnus/message.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 8c88ac8257c..c18560b164b 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -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) -- 2.39.2