diff options
| author | Simon Josefsson | 2005-12-28 08:46:05 +0000 |
|---|---|---|
| committer | Simon Josefsson | 2005-12-28 08:46:05 +0000 |
| commit | c3f69831cb76026c71a047d7fa4036ee436896d8 (patch) | |
| tree | 2001ebfdfe45a405e0180f61d131e9cc512affd2 | |
| parent | 6281e1e84dc30a52084fa6d9a8b4e6291182415c (diff) | |
| download | emacs-c3f69831cb76026c71a047d7fa4036ee436896d8.tar.gz emacs-c3f69831cb76026c71a047d7fa4036ee436896d8.zip | |
Fix AUTH PLAIN authentication.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 11 |
2 files changed, 9 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fc9221e9a84..b327ed6c20f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-12-05 Ralf Angeli <angeli@iwi.uni-sb.de> | ||
| 2 | |||
| 3 | * mail/smtpmail.el (smtpmail-try-auth-methods): Send | ||
| 4 | credentials together with "AUTH PLAIN" command. | ||
| 5 | |||
| 1 | 2005-12-27 Richard M. Stallman <rms@gnu.org> | 6 | 2005-12-27 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * mouse.el (mouse-drag-region-1): When remapping mouse-1 to | 8 | * mouse.el (mouse-drag-region-1): When remapping mouse-1 to |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 0eb956981ce..76598ab8a8d 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -560,16 +560,13 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 560 | (>= (car ret) 400)) | 560 | (>= (car ret) 400)) |
| 561 | (throw 'done nil))) | 561 | (throw 'done nil))) |
| 562 | ((eq mech 'plain) | 562 | ((eq mech 'plain) |
| 563 | (smtpmail-send-command process "AUTH PLAIN") | 563 | (smtpmail-send-command process |
| 564 | (if (or (null (car (setq ret (smtpmail-read-response process)))) | 564 | (concat "AUTH PLAIN " |
| 565 | (not (integerp (car ret))) | 565 | (base64-encode-string |
| 566 | (not (equal (car ret) 334))) | ||
| 567 | (throw 'done nil)) | ||
| 568 | (smtpmail-send-command process (base64-encode-string | ||
| 569 | (concat "\0" | 566 | (concat "\0" |
| 570 | (smtpmail-cred-user cred) | 567 | (smtpmail-cred-user cred) |
| 571 | "\0" | 568 | "\0" |
| 572 | passwd))) | 569 | passwd)))) |
| 573 | (if (or (null (car (setq ret (smtpmail-read-response process)))) | 570 | (if (or (null (car (setq ret (smtpmail-read-response process)))) |
| 574 | (not (integerp (car ret))) | 571 | (not (integerp (car ret))) |
| 575 | (not (equal (car ret) 235))) | 572 | (not (equal (car ret) 235))) |