while moving messages.
* elmo2.el (elmo-read-msg): Don't use cache if `elmo-inhibit-read-cache'
is non-nil.
* elmo-vars.el (elmo-inhibit-read-cache): New global switch.
+2001-02-07 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-pipe.el (elmo-pipe-drain): Bind `elmo-inhibit-read-cache' as t
+ while moving messages.
+
+ * elmo2.el (elmo-read-msg): Don't use cache if
+ `elmo-inhibit-read-cache' is non-nil.
+
+ * elmo-vars.el (elmo-inhibit-read-cache): New global switch.
+
+\f
2001-01-30 Yuuichi Teranishi <teranisi@gohome.org>
* elmo-util.el (elmo-folder-local-p): Treat pipe and filter.
(defun elmo-pipe-drain (src dst)
"Move all messages of SRC to DST."
- (let (elmo-nntp-use-cache
- elmo-imap4-use-cache
- elmo-pop3-use-cache ; Inhibit caching while moving messages.
+ (let ((elmo-inhibit-read-cache t); Inhibit caching while moving messages.
elmo-pop3-use-uidl) ; No need to use UIDL
(message "Checking %s..." src)
(let ((srclist (elmo-list-folder src))
(defvar elmo-display-progress-threshold 20
"*Displaying progress gauge if number of messages are more than this value.")
+(defvar elmo-inhibit-read-cache nil
+ "*Global switch to inhibit reading cache.")
+
(require 'product)
(product-provide (provide 'elmo-vars) (require 'elmo-version))
(defun elmo-read-msg (folder msg outbuf msgdb &optional force-reload)
"Read message into outbuf."
(let ((inhibit-read-only t))
+ (if elmo-inhibit-read-cache
;;Only use elmo-read-msg-with-cache, because if folder is network and
;;elmo-use-cache-p is nil, cannot read important msg. (by muse)
;;(if (not (elmo-use-cache-p folder msg))
- ;; (elmo-read-msg-no-cache folder msg outbuf)
- (elmo-read-msg-with-cache folder msg outbuf msgdb force-reload)))
+ (elmo-read-msg-no-cache folder msg outbuf)
+ (elmo-read-msg-with-cache folder msg outbuf msgdb force-reload))))
(defun elmo-read-msg-with-cache (folder msg outbuf msgdb
&optional force-reload)