* elmo-archive.el (elmo-archive-list-folder-subr): Use it.
* elmo-cache.el (elmo-cache-list-folder): Ditto.
* elmo-dop.el (elmo-dop-list-folder): Ditto.
* elmo-imap4.el (elmo-imap4-list-folder): Ditto.
* elmo-internal.el (elmo-internal-list-folder-subr): Ditto.
* elmo-localdir.el (elmo-localdir-list-folder-subr): Ditto.
* elmo-maildir.el (elmo-maildir-list-folder-subr): Ditto.
* elmo-multi.el (elmo-multi-list-folder): Ditto.
* elmo-nntp.el (elmo-nntp-list-folder): Ditto.
* elmo-pipe.el (elmo-pipe-list-folder): Ditto.
* elmo-pop3.el (elmo-pop3-list-folder): Ditto.
(- (length file-list) (length killed))
(length file-list)))
(setq numbers (sort file-list '<))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers))))
+ (elmo-living-messages numbers killed))))
(defun elmo-archive-list-folder (spec)
(elmo-archive-list-folder-subr spec))
(elmo-msgdb-expand-path nil spec))))
numbers)
(setq numbers (elmo-cache-list-folder-subr spec))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers)))
+ (elmo-living-messages numbers killed)))
(defun elmo-cache-max-of-folder (spec)
(elmo-cache-list-folder-subr spec t))
(append number-list
(list (+ max-num i 1))))
(setq i (+ 1 i)))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- number-list))
- number-list))
+ (elmo-living-messages number-list killed))
(error "Unplugged"))
;; not imap4 folder...list folder
(elmo-call-func folder "list-folder")))
(elmo-msgdb-expand-path nil spec))))
numbers)
(setq numbers (elmo-imap4-list spec "all"))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers)))
+ (elmo-living-messages numbers killed)))
(defun elmo-imap4-list-folder-unread (spec msgdb unread-marks)
(if (elmo-imap4-use-flag-p spec)
(- (length flist) (length killed))
(length flist)))
(setq numbers (sort flist '<))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers))))
+ (elmo-living-messages numbers killed))))
(defun elmo-internal-list-folder (spec)
(elmo-internal-list-folder-subr spec))
(- (length flist) (length killed))
(length flist)))
(setq numbers (sort flist '<))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers))))
+ (elmo-living-messages numbers killed))))
(defun elmo-localdir-append-msg (spec string &optional msg no-see)
(let ((dir (elmo-localdir-get-folder-directory spec))
(- (length flist) (length killed))
(length flist))))
(setq numbers (sort flist '<))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers))))
+ (elmo-living-messages numbers killed))))
(defun elmo-maildir-list-folder (spec)
(elmo-maildir-update-current spec)
(nconc (elmo-msgdb-killed-list-load dir)
msgs))))
+(defun elmo-living-messages (messages killed-list)
+ (if killed-list
+ (delq nil
+ (mapcar (lambda (number)
+ (unless (memq number killed-list) number))
+ messages))
+ messages))
+
(defun elmo-msgdb-finfo-load ()
(elmo-object-load (expand-file-name
elmo-msgdb-finfo-filename
(* elmo-multi-divide-number cur-number) x)))
(elmo-list-folder (car flds)))))
(setq flds (cdr flds)))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers)))
+ (elmo-living-messages numbers killed)))
(defun elmo-multi-folder-exists-p (spec)
(let* ((flds (cdr spec)))
(setq numbers (elmo-nntp-make-msglist
(elmo-match-string 2 response)
(elmo-match-string 3 response)))))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers)))))
+ (elmo-living-messages numbers killed)))))
(defun elmo-nntp-max-of-folder (spec)
(let* ((port (elmo-nntp-spec-port spec))
(elmo-msgdb-expand-path nil spec))))
numbers)
(setq numbers (elmo-list-folder (elmo-pipe-spec-dst spec)))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers)))
+ (elmo-living-messages numbers killed)))
(defun elmo-pipe-list-folder-unread (spec msgdb unread-marks)
(elmo-list-folder-unread (elmo-pipe-spec-dst spec)
(progn
(elmo-pop3-list-by-uidl-subr spec))
(elmo-pop3-list-by-list spec)))
- (if killed
- (delq nil
- (mapcar (lambda (number)
- (unless (memq number killed) number))
- numbers))
- numbers)))
+ (elmo-living-messages numbers killed)))
(defun elmo-pop3-max-of-folder (spec)
(elmo-pop3-commit spec)