2000-11-19 Kenichi OKADA <okada@opaopa.org>
+ * elmo-pop3.el (elmo-network-authenticate-session): Split
+ encoded response value.
+
+2000-11-19 Kenichi OKADA <okada@opaopa.org>
+
* elmo-pop3.el (elmo-network-authenticate-session): Abolish
`elmo-pop3-force-login'.
Redefine `sasl-mechanisms'.
(sasl-step-data step) 'no-line-break))))))
(catch 'done
(while t
- (setq response (elmo-pop3-read-response process t))
+ (unless (setq response (elmo-pop3-read-response process t))
+ (signal 'elmo-authenticate-error
+ (list (intern
+ (concat "elmo-pop3-auth-"
+ (downcase name))))))
(if (string-match "^\+OK" response)
(if (sasl-next-step client step)
(signal 'elmo-authenticate-error
(throw 'done nil)))
(sasl-step-set-data
step
- (elmo-base64-decode-string response))
+ (elmo-base64-decode-string
+ (cadr (split-string response " "))))
(setq step (sasl-next-step client step))
(elmo-pop3-send-command
process