2000-10-02 Yuuichi Teranishi <teranisi@gohome.org>
* elmo-nntp.el (elmo-nntp-search-primitive): Decode header field.
+ (elmo-nntp-search-primitive): Fixed problem when condition is
+ 'unmatch'.
* elmo-util.el (elmo-buffer-field-primitive-condition-match): Fixed.
(key-datestr (elmo-date-make-sortable-string key-date))
(since (string= "since" search-key))
result)
+ (if (eq (elmo-filter-type condition) 'unmatch)
+ (setq since (not since)))
(setq result
(delq nil
(mapcar
result)))
(t
(let ((val (elmo-filter-value condition))
+ (negative (eq (elmo-filter-type condition) 'unmatch))
(case-fold-search t)
result)
(setq result
(eword-decode-string
(decode-mime-charset-string
(cdr pair) elmo-mime-charset)))
- (car pair)))
+ (unless negative (car pair))
+ (if negative (car pair))))
(elmo-nntp-retrieve-field spec search-key
from-msgs))))
(if from-msgs