(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