'unread.
(elmo-read-msg-with-cache): Set `msgdb' argument as nil.
* elmo-archive.el (elmo-archive-read-msg): Fixed arguments.
* elmo-cache.el (elmo-cache-read-msg): Ditto.
* elmo-filter.el (elmo-filter-read-msg): Ditto.
* elmo-imap4.el (elmo-imap4-read-msg): Ditto.
* elmo-internal.el (elmo-internal-read-msg): Ditto.
* elmo-localdir.el (elmo-localdir-read-msg): Ditto.
* elmo-localnews.el (elmo-localnews-read-msg): Ditto.
* elmo-maildir.el (elmo-maildir-read-msg): Ditto.
* elmo-multi.el (elmo-multi-read-msg): Ditto.
* elmo-nntp.el (elmo-nntp-read-msg): Ditto.
* elmo-pipe.el (elmo-pipe-read-msg): Ditto.
* elmo-pop3.el (elmo-pop3-read-msg): Ditto.
+2001-02-13 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo2.el (elmo-prefetch-msg): Set `unread' argument of
+ `elmo-read-msg' as 'unread.
+ (elmo-read-msg-with-cache): Set `msgdb' argument as nil.
+
+ * elmo-archive.el (elmo-archive-read-msg): Fixed arguments.
+ * elmo-cache.el (elmo-cache-read-msg): Ditto.
+ * elmo-filter.el (elmo-filter-read-msg): Ditto.
+ * elmo-imap4.el (elmo-imap4-read-msg): Ditto.
+ * elmo-internal.el (elmo-internal-read-msg): Ditto.
+ * elmo-localdir.el (elmo-localdir-read-msg): Ditto.
+ * elmo-localnews.el (elmo-localnews-read-msg): Ditto.
+ * elmo-maildir.el (elmo-maildir-read-msg): Ditto.
+ * elmo-multi.el (elmo-multi-read-msg): Ditto.
+ * elmo-nntp.el (elmo-nntp-read-msg): Ditto.
+ * elmo-pipe.el (elmo-pipe-read-msg): Ditto.
+ * elmo-pop3.el (elmo-pop3-read-msg): Ditto.
+
2001-02-09 Yuuichi Teranishi <teranisi@gohome.org>
* elmo2.el (elmo-buffer-cache-message): Call `elmo-read-msg' with
;;; Article file related functions
;;; read(extract) / append(move) / delete(delete) / query(list)
-(defun elmo-archive-read-msg (spec number outbuf)
+(defun elmo-archive-read-msg (spec number outbuf &optional msgdb unread)
(save-excursion
(let* ((type (nth 2 spec))
(arc (elmo-archive-get-archive-name (nth 1 spec) type spec))
;; return nil if failed.
(elmo-cache-force-delete file locked)))
-(defun elmo-cache-read-msg (spec number outbuf &optional set-mark)
+(defun elmo-cache-read-msg (spec number outbuf &optional msgdb unread)
(save-excursion
(let* ((dir (elmo-cache-get-folder-directory spec))
(file (expand-file-name
(defun elmo-filter-append-msg (spec string &optional msg no-see)
(elmo-call-func (nth 2 spec) "append" string))
-(defun elmo-filter-read-msg (spec number outbuf)
- (elmo-call-func (nth 2 spec) "read-msg" number outbuf))
+(defun elmo-filter-read-msg (spec number outbuf &optional msgdb unread)
+ (elmo-call-func (nth 2 spec) "read-msg" number outbuf msgdb unread))
(defun elmo-filter-delete-msgs (spec msgs)
(elmo-call-func (nth 2 spec) "delete-msgs" msgs))
(elmo-imap4-read-msg spec msg outbuf 'unseen))
(defun elmo-imap4-read-msg (spec msg outbuf
- &optional leave-seen-flag-untouched)
+ &optional msgdb leave-seen-flag-untouched)
(let ((session (elmo-imap4-get-session spec))
response)
(elmo-imap4-session-select-mailbox session
(let ((pair (assq number loc-alist)))
(elmo-msgdb-global-mark-delete (cdr pair))))
-(defun elmo-internal-read-msg (spec number outbuf &optional msgdb)
+(defun elmo-internal-read-msg (spec number outbuf &optional msgdb unread)
(save-excursion
(let* ((loc-alist (if msgdb (elmo-msgdb-get-location msgdb)
(elmo-msgdb-location-load (elmo-msgdb-expand-path
(progn (delete-file file)
t))))
-(defun elmo-localdir-read-msg (spec number outbuf &optional set-mark)
+(defun elmo-localdir-read-msg (spec number outbuf &optional msgdb unread)
(save-excursion
(let* ((number (int-to-string number))
(dir (elmo-localdir-get-folder-directory spec))
(elmo-localnews-as-newsdir
(elmo-localdir-delete-msgs dir number)))
-(defun elmo-localnews-read-msg (spec number outbuf)
+(defun elmo-localnews-read-msg (spec number outbuf &optional msgdb unread)
(elmo-localnews-as-newsdir
(elmo-localdir-read-msg spec number outbuf)))
(progn (delete-file file)
t))))
-(defun elmo-maildir-read-msg (spec number outbuf &optional msgdb)
+(defun elmo-maildir-read-msg (spec number outbuf &optional msgdb unread)
(save-excursion
(let* ((loc-alist (if msgdb (elmo-msgdb-get-location msgdb)
(elmo-msgdb-location-load (elmo-msgdb-expand-path
(defun elmo-multi-append-msg (spec string)
(error "Cannot append messages to multi folder"))
-(defun elmo-multi-read-msg (spec number outbuf)
+(defun elmo-multi-read-msg (spec number outbuf &optional msgdb unread)
(let* ((flds (cdr spec))
(folder (nth (- (/ number elmo-multi-divide-number) 1) flds))
(number (% number elmo-multi-divide-number)))
- (elmo-call-func folder "read-msg" number outbuf)))
+ (elmo-call-func folder "read-msg" number outbuf msgdb unread)))
(defun elmo-multi-delete-msgs (spec msgs)
(let ((flds (cdr spec))
(with-current-buffer (elmo-network-session-buffer session)
(std11-field-body "Newsgroups")))))
-(defun elmo-nntp-read-msg (spec number outbuf)
+(defun elmo-nntp-read-msg (spec number outbuf &optional msgdb unread)
(let ((session (elmo-nntp-get-session spec)))
(with-current-buffer (elmo-network-session-buffer session)
(elmo-nntp-select-group session (elmo-nntp-spec-group spec))
(defun elmo-pipe-append-msg (spec string &optional msg no-see)
(elmo-append-msg (elmo-pipe-spec-dst spec) string))
-(defun elmo-pipe-read-msg (spec number outbuf)
+(defun elmo-pipe-read-msg (spec number outbuf &optional msgdb unread)
(elmo-call-func (elmo-pipe-spec-dst spec)
"read-msg"
- number outbuf))
+ number outbuf msgdb unread))
(defun elmo-pipe-delete-msgs (spec msgs)
(elmo-delete-msgs (elmo-pipe-spec-dst spec) msgs))
(insert-buffer-substring (process-buffer process) start (- end 3))
(elmo-delete-cr-get-content-type)))))
-(defun elmo-pop3-read-msg (spec number outbuf &optional msgdb)
+(defun elmo-pop3-read-msg (spec number outbuf &optional msgdb unread)
(let* ((loc-alist (if elmo-pop3-use-uidl
(if msgdb
(elmo-msgdb-get-location msgdb)
"Read messsage specified by FOLDER and MSG(number) into OUTBUF
without cacheing.
If optional UNREAD is non-nil, message is keeped as unread."
- (elmo-call-func folder "read-msg" msg outbuf unread))
+ (elmo-call-func folder "read-msg" msg outbuf nil unread))
(defun elmo-force-cache-msg (folder number msgid &optional loc-alist)
"Force cache message."
((elmo-folder-local-p (car real-fld-num)))
(t (setq ret-val (elmo-call-func (car real-fld-num)
"read-msg"
- (cdr real-fld-num) outbuf))))
+ (cdr real-fld-num)
+ outbuf
+ nil 'unread))))
(if ret-val
(elmo-cache-save message-id
(elmo-string-partial-p ret-val)
folder msg))
(if (setq ret-val (elmo-call-func (car real-fld-num)
"read-msg"
- (cdr real-fld-num) outbuf unread))
+ (cdr real-fld-num) outbuf
+ nil unread))
(if (and message-id
(not (elmo-local-file-p folder msg))
(elmo-use-cache-p folder msg))