From: hmurata Date: Sun, 6 Jan 2002 10:47:06 +0000 (+0000) Subject: * wl-summary.el (wl-summary-pick): Use `elmo-folder-search' X-Git-Tag: wl-2_9_5~30 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=1618c55cf7b3a3fb014f59ad9466bad85284f8d7;p=elisp%2Fwanderlust.git * wl-summary.el (wl-summary-pick): Use `elmo-folder-search' instead of `elmo-msgdb-search'. --- diff --git a/wl/ChangeLog b/wl/ChangeLog index 399102e..62acbdc 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,5 +1,8 @@ 2002-01-06 Hiroya Murata + * wl-summary.el (wl-summary-pick): Use `elmo-folder-search' + instead of `elmo-msgdb-search'. + * Version number is increased to 2.9.3. 2002-01-05 OKAZAKI Tetsurou diff --git a/wl/wl-summary.el b/wl/wl-summary.el index 83b79cc..f83765b 100644 --- a/wl/wl-summary.el +++ b/wl/wl-summary.el @@ -3670,10 +3670,12 @@ If optional argument NUMBER is specified, mark message specified by NUMBER." (defun wl-summary-pick (&optional from-list delete-marks) (interactive) - (let ((result (elmo-msgdb-search - wl-summary-buffer-elmo-folder - (elmo-read-search-condition wl-summary-pick-field-default) - (wl-summary-buffer-msgdb)))) + (let* ((condition (car (elmo-parse-search-condition + (elmo-read-search-condition + wl-summary-pick-field-default)))) + (result (elmo-folder-search wl-summary-buffer-elmo-folder + condition + from-list))) (if delete-marks (let ((mlist wl-summary-buffer-target-mark-list)) (while mlist @@ -3681,12 +3683,11 @@ If optional argument NUMBER is specified, mark message specified by NUMBER." (wl-summary-unmark)) (setq mlist (cdr mlist))) (setq wl-summary-buffer-target-mark-list nil))) - (if from-list - (setq result (elmo-list-filter from-list result))) - (message "%d message(s) are picked." (length result)) - (if (null result) - (message "No message was picked.") - (wl-summary-target-mark-msgs result)))) + (if result + (progn + (wl-summary-target-mark-msgs result) + (message "%d message(s) are picked." (length result))) + (message "No message was picked.")))) (defun wl-summary-unvirtual () "Exit from current virtual folder."