diff options
| author | Richard M. Stallman | 2006-10-18 11:11:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-10-18 11:11:32 +0000 |
| commit | 9b3bf5e89ce8b819de97a345fc3578b86cc615d5 (patch) | |
| tree | d80d72e25656ba01abf1e2a686a1afe08f778d34 | |
| parent | 6d44694e8c7bfff871759a681297dec6dc7a85fa (diff) | |
| download | emacs-9b3bf5e89ce8b819de97a345fc3578b86cc615d5.tar.gz emacs-9b3bf5e89ce8b819de97a345fc3578b86cc615d5.zip | |
Comment change.
| -rw-r--r-- | lisp/mail/smtpmail.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 9557844a32a..ac87a93b7a1 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -541,6 +541,17 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 541 | (decoded (base64-decode-string challenge)) | 541 | (decoded (base64-decode-string challenge)) |
| 542 | (hash (rfc2104-hash 'md5 64 16 passwd decoded)) | 542 | (hash (rfc2104-hash 'md5 64 16 passwd decoded)) |
| 543 | (response (concat (smtpmail-cred-user cred) " " hash)) | 543 | (response (concat (smtpmail-cred-user cred) " " hash)) |
| 544 | ;; Osamu Yamane <yamane@green.ocn.ne.jp>: | ||
| 545 | ;; SMTP auth fails because the SMTP server identifies | ||
| 546 | ;; only the first part of the string (delimited by | ||
| 547 | ;; new line characters) as a response from the | ||
| 548 | ;; client, and the rest as distinct commands. | ||
| 549 | |||
| 550 | ;; In my case, the response string is 80 characters | ||
| 551 | ;; long. Without the no-line-break option for | ||
| 552 | ;; base64-encode-sting, only the first 76 characters | ||
| 553 | ;; are taken as a response to the server, and the | ||
| 554 | ;; authentication fails. | ||
| 544 | (encoded (base64-encode-string response t))) | 555 | (encoded (base64-encode-string response t))) |
| 545 | (smtpmail-send-command process (format "%s" encoded)) | 556 | (smtpmail-send-command process (format "%s" encoded)) |
| 546 | (if (or (null (car (setq ret (smtpmail-read-response process)))) | 557 | (if (or (null (car (setq ret (smtpmail-read-response process)))) |