+2001-12-19 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-util.el (elmo-file-field-primitive-condition-match): Fixed
+ unmatch condition checking.
+
+ * elmo-localdir.el (elmo-folder-search): Don't short cut if unmatch
+ condition.
+
2001-12-17 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* elmo.el (elmo-folder-confirm-appends): Fixed docstring.
(cond
;; short cut.
((and (vectorp condition)
+ (not (eq (elmo-filter-type condition) 'unmatch))
(string= (elmo-filter-key condition) "last"))
(nthcdr (max (- (length msgs)
(string-to-int (elmo-filter-value condition)))
0)
msgs))
((and (vectorp condition)
+ (not (eq (elmo-filter-type condition) 'unmatch))
(string= (elmo-filter-key condition) "first"))
(let ((rest (nthcdr (string-to-int (elmo-filter-value condition) )
msgs)))
(cond
((string= (elmo-filter-key condition) "last")
(setq result (<= (length (memq number number-list))
- (string-to-int (elmo-filter-value condition)))))
+ (string-to-int (elmo-filter-value condition))))
+ (if (eq (elmo-filter-type condition) 'unmatch)
+ (setq result (not result))))
((string= (elmo-filter-key condition) "first")
(setq result (< (- (length number-list)
(length (memq number number-list)))
- (string-to-int (elmo-filter-value condition)))))
+ (string-to-int (elmo-filter-value condition))))
+ (if (eq (elmo-filter-type condition) 'unmatch)
+ (setq result (not result))))
(t
(elmo-set-work-buf
(as-binary-input-file (insert-file-contents file))
(setq result
(elmo-buffer-field-primitive-condition-match
condition number number-list)))))
- (if (eq (elmo-filter-type condition) 'unmatch)
- (setq result (not result)))
result))
(defun elmo-file-field-condition-match (file condition number number-list)