+2000-09-04 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-imap4.el (elmo-imap4-authenticator-alist): Added `plain' entry.
+ (elmo-imap4-send-command): Use `elmo-imap4-current-response' instead
+ of `response'.
+ (elmo-imap4-list-folders): Removed unused local variable.
+ (elmo-network-initialize-session): Ditto.
+ (elmo-imap4-delete-msg-by-id): Ditto.
+ (elmo-imap4-parse-fetch): Ditto.
+ (elmo-imap4-copy-msgs): Ditto.
+ Use `dst-spec' instead of `dst-folder'.
+ (elmo-network-authenticate-session): Check authenticate type `plain'.
+
2000-09-01 Yuuichi Teranishi <teranisi@gohome.org>
* elmo-imap4.el (elmo-imap4-parse-response): Use string-match for
(defvar elmo-imap4-authenticator-alist
'((login elmo-imap4-auth-login)
(cram-md5 elmo-imap4-auth-cram-md5)
- (digest-md5 elmo-imap4-auth-digest-md5))
+ (digest-md5 elmo-imap4-auth-digest-md5)
+ (plain elmo-imap4-login))
"Definition of authenticators.")
;;;;
"Send COMMAND to the SESSION.
Returns a TAG string which is assigned to the COMAND."
(let* ((command-args (if (listp command)
- command
+ command
(list command)))
(process (elmo-network-session-process-internal session))
cmdstr tag token kind)
(goto-char (point-min))
(if (elmo-imap4-response-bye-p elmo-imap4-current-response)
(signal 'elmo-imap4-bye-error
- (list (elmo-imap4-response-error-text response))))
+ (list (elmo-imap4-response-error-text
+ elmo-imap4-current-response))))
(setq elmo-imap4-current-response nil)
(if elmo-imap4-parsing
(error "IMAP process is running. Please wait (or plug again.)"))
(with-current-buffer (elmo-network-session-buffer session)
elmo-imap4-server-namespace)))
elmo-imap4-default-hierarchy-delimiter))
- response result append-serv type)
+ result append-serv type)
;; Append delimiter
(if (and root
(not (string= root ""))
(luna-define-method elmo-network-initialize-session ((session
elmo-imap4-session))
(let ((process (elmo-network-session-process-internal session))
- response capability mechanism)
+ capability)
(with-current-buffer (process-buffer process)
(set-process-filter process 'elmo-imap4-arrival-filter)
(set-process-sentinel process 'elmo-imap4-sentinel)
(elmo-network-session-process-internal session))
(unless (eq elmo-imap4-status 'auth)
(unless (or (not (elmo-network-session-auth-internal session))
+ (eq (elmo-network-session-auth-internal session) 'plain)
(and (memq (intern
(format "auth=%s"
(elmo-network-session-auth-internal
(elmo-imap4-send-command-wait (elmo-imap4-get-session spec) "expunge")))
(defun elmo-imap4-delete-msg-by-id (spec msgid)
- (let* ((session (elmo-imap4-get-session spec))
- response msgs)
+ (let ((session (elmo-imap4-get-session spec)))
(elmo-imap4-session-select-mailbox session
(elmo-imap4-spec-mailbox spec))
(elmo-imap4-delete-msgs-no-expunge
(defun elmo-imap4-copy-msgs (dst-spec
msgs src-spec &optional expunge-it same-number)
"Equivalence of hostname, username is assumed."
- (let ((src-folder (elmo-imap4-spec-mailbox src-spec))
- (dst-folder (elmo-imap4-spec-mailbox dst-spec))
- (session (elmo-imap4-get-session src-spec)))
+ (let ((session (elmo-imap4-get-session src-spec)))
(elmo-imap4-session-select-mailbox session
(elmo-imap4-spec-mailbox src-spec))
(while msgs
"uid copy %s "
"copy %s ")
(car msgs))
- (elmo-imap4-mailbox dst-folder)))
+ (elmo-imap4-mailbox dst-spec)))
(setq msgs (cdr msgs)))
(when expunge-it
(elmo-imap4-send-command-wait session "expunge"))
(defun elmo-imap4-parse-fetch (response)
(when (eq (char-after) ?\()
- (let (element list bodydetail)
+ (let (element list)
(while (not (eq (char-after) ?\)))
(elmo-imap4-forward)
(let ((token (elmo-imap4-fetch-read (current-buffer))))