+2004-02-08 Yoichi NAKAYAMA <yoichi@geiin.org>
+
+ * elmo-util.el (elmo-buffer-field-primitive-condition-match): Use
+ elmo-multiple-field-body instead of std11-field-body to check all
+ headers.
+
2004-02-07 TAKAHASHI Kaoru <kaoru@kaisei.org>
* elmo-util.el (elmo-cache-expire): Completion require match "age"
* elmo-util.el (elmo-msgdb-insert-file-header): Moved from
modb-legacy.el.
- (elmo-multiple-field-body): Moved from elmo-util.el.
+ (elmo-multiple-field-body): Moved from elmo-msgdb.el.
* elmo-msgdb.el (elmo-multiple-field-body): Moved to elmo-util.el.
(setq result (search-forward (elmo-filter-value condition)
nil t))))
(t
- (let ((fval (std11-field-body (elmo-filter-key condition))))
+ (dolist (fval (elmo-multiple-field-body (elmo-filter-key condition)))
(if (eq (length fval) 0) (setq fval nil))
(if fval (setq fval (eword-decode-string fval)))
- (setq result (and fval (string-match
- (elmo-filter-value condition) fval))))))
+ (setq result (or result
+ (and fval (string-match
+ (elmo-filter-value condition) fval)))))))
(if (eq (elmo-filter-type condition) 'unmatch)
(setq result (not result)))
result))