* elmo-imap4.el (elmo-imap4-elist): New function
* elmo-imap4.el (elmo-imap4-parse-response): Added support for
ESEARCH feature (RFC4731).
+ * elmo-imap4.el (toplevel): Require time-stamp
+ * elmo-imap4.el (elmo-imap4-send-command, elmo-imap4-send-string,
+ elmo-imap4-read-response elmo-imap4-read-untagged
+ elmo-imap4-arrival-filter elmo-imap4-parse-response): Change
+ logging format.
2010-01-05 TAKAHASHI Kaoru <kaoru@kaisei.org>
(require 'elmo-net)
(require 'utf7)
(require 'elmo-mime)
+(require 'time-stamp)
(eval-when-compile (require 'cl))
session))
(message "Waiting for IMAP response...done"))
(setq elmo-imap4-parsing t)
- (elmo-imap4-debug "<-(%s)- %s" tag command)
(while (setq token (car command-args))
(cond ((stringp token) ; formatted
(setq cmdstr (concat cmdstr token)))
(t
(error "Invalid argument")))
(setq command-args (cdr command-args)))
+ (elmo-imap4-debug "[%s] <- %s" (time-stamp-hh:mm:ss) cmdstr)
(process-send-string process (concat cmdstr "\r\n"))
tag)))
(elmo-network-session-process-internal session))
(setq elmo-imap4-current-response nil)
(goto-char (point-min))
- (elmo-imap4-debug "<-- %s" string)
+ (elmo-imap4-debug "[%s] <-- %s" (time-stamp-hh:mm:ss) string)
(process-send-string (elmo-network-session-process-internal session)
string)
(process-send-string (elmo-network-session-process-internal session)
'(open run))
(accept-process-output (elmo-network-session-process-internal session)
1)))
- (elmo-imap4-debug "=>%s" (prin1-to-string elmo-imap4-current-response))
+ (elmo-imap4-debug "[%s] =>%s" (time-stamp-hh:mm:ss) (prin1-to-string elmo-imap4-current-response))
(setq elmo-imap4-parsing nil)
elmo-imap4-current-response))
(with-current-buffer (process-buffer process)
(while (not elmo-imap4-current-response)
(accept-process-output process 1))
- (elmo-imap4-debug "=>%s" (prin1-to-string elmo-imap4-current-response))
+ (elmo-imap4-debug "[%s] =>%s" (time-stamp-hh:mm:ss) (prin1-to-string elmo-imap4-current-response))
elmo-imap4-current-response))
(defun elmo-imap4-read-continue-req (session)
"IMAP process filter."
(when (buffer-live-p (process-buffer proc))
(with-current-buffer (process-buffer proc)
- (elmo-imap4-debug "-> %s" string)
(goto-char (point-max))
(insert string)
(let (end)
(defun elmo-imap4-parse-response ()
"Parse a IMAP command response."
+ (elmo-imap4-debug "[%s] -> %s" (time-stamp-hh:mm:ss) (buffer-substring (point) (point-max)))
(let (token)
(case (setq token (read (current-buffer)))
(+ (progn