]> git.eshelyaron.com Git - emacs.git/commitdiff
Reuse already read `capabilities'
authorManuel Giraud <manuel@ledu-giraud.fr>
Fri, 9 Aug 2024 15:41:51 +0000 (17:41 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Aug 2024 07:31:40 +0000 (09:31 +0200)
* lisp/mail/smtpmail.el (smtpmail-via-smtp): Reuse already read
`capabilities'.  (Bug#72544)

(cherry picked from commit 24b7f810d843f2264131b881c6f451e7bd041b40)

lisp/mail/smtpmail.el

index 98083c0489acec5dbe9bcad5a47bf845cd0c76aa..c98fdfd10ed3954fa550a622121524f0aec010b1 100644 (file)
@@ -800,11 +800,7 @@ Returns an error if the server cannot be contacted."
                  (smtpmail-command-or-throw
                   process (format "HELO %s" (smtpmail-fqdn)))
                ;; EHLO was successful, so we parse the extensions.
-               (dolist (line (delete
-                              ""
-                              (split-string
-                               (plist-get (cdr result) :capabilities)
-                               "\r\n")))
+               (dolist (line (delete "" (split-string capabilities "\r\n")))
                  (let ((name
                          ;; Use ASCII case-table to prevent I
                          ;; downcasing to a dotless i under some