unmatch condition checking.
* elmo-localdir.el (elmo-folder-search): Don't short cut if unmatch
condition.
* elmo-pop3.el (elmo-pop3-parse-list-response): Allow multiple
space delimiter for list response.
(2001-11-30 Tatsuya Kinoshita <tats@iris.ne.jp>)
+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-11-30 Tatsuya Kinoshita <tats@iris.ne.jp>
+
+ * elmo-pop3.el (elmo-pop3-parse-list-response): Allow multiple
+ space delimiter for list response.
+
2001-12-02 Yuuichi Teranishi <teranisi@gohome.org>
* 2.6.1 is released.
(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)))
(with-temp-buffer
(insert string)
(goto-char (point-min))
- (while (re-search-forward "^\\([0-9]+\\)[\t ]\\([0-9]+\\)$" nil t)
+ (while (re-search-forward "^\\([0-9]+\\)[\t ]+\\([0-9]+\\)$" nil t)
(setq alist
(cons
(cons (elmo-match-buffer 1)
(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)