]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix AUTH PLAIN authentication.
authorSimon Josefsson <jas@extundo.com>
Wed, 28 Dec 2005 08:46:05 +0000 (08:46 +0000)
committerSimon Josefsson <jas@extundo.com>
Wed, 28 Dec 2005 08:46:05 +0000 (08:46 +0000)
lisp/ChangeLog
lisp/mail/smtpmail.el

index fc9221e9a84c82a8c1e1552bee033380dc806d20..b327ed6c20fff47cf3a54aab0a82c41a278ff137 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-05  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+       * mail/smtpmail.el (smtpmail-try-auth-methods): Send
+       credentials together with "AUTH PLAIN" command.
+
 2005-12-27  Richard M. Stallman  <rms@gnu.org>
 
        * mouse.el (mouse-drag-region-1): When remapping mouse-1 to
index 0eb956981ce5105fe151271848f945e05262bccd..76598ab8a8d44a73958ee7b6f33e8a5f9b19bcae 100644 (file)
@@ -560,16 +560,13 @@ This is relative to `smtpmail-queue-dir'.")
                (>= (car ret) 400))
            (throw 'done nil)))
        ((eq mech 'plain)
-       (smtpmail-send-command process "AUTH PLAIN")
-       (if (or (null (car (setq ret (smtpmail-read-response process))))
-               (not (integerp (car ret)))
-               (not (equal (car ret) 334)))
-           (throw 'done nil))
-       (smtpmail-send-command process (base64-encode-string
+       (smtpmail-send-command process
+                              (concat "AUTH PLAIN "
+                                      (base64-encode-string
                                        (concat "\0"
                                                (smtpmail-cred-user cred)
                                                "\0"
-                                               passwd)))
+                                               passwd))))
        (if (or (null (car (setq ret (smtpmail-read-response process))))
                (not (integerp (car ret)))
                (not (equal (car ret) 235)))