condition `larger' and `smaller'.
* wl-util.el (wl-read-search-condition-internal): Add "Larger" and
"Smaller".
* wl-folder.el (wl-folder-complete-filter-condition): Ditto.
+2005-09-02 Yoichi NAKAYAMA <yoichi@geiin.org>
+
+ * modb-entity.el (elmo-msgdb-message-match-condition): Add new
+ condition `larger' and `smaller'.
+
2005-07-30 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-util.el (elmo-safe-filename): Rewrite to replace
(if (string= key "since")
(not (elmo-time< field-date specified-date))
(elmo-time< field-date specified-date))))
+ ((or (string= key "larger")
+ (string= key "smaller"))
+ (let ((bytes (elmo-msgdb-message-entity-field handler entity 'size))
+ (threshold (string-to-int (elmo-filter-value condition))))
+ (if (string= key "larger")
+ (> bytes threshold)
+ (< bytes threshold))))
((setq field-value (elmo-msgdb-message-entity-field handler
entity
(intern key)
+2005-09-02 Yoichi NAKAYAMA <yoichi@geiin.org>
+
+ * wl-util.el (wl-read-search-condition-internal): Add "Larger" and
+ "Smaller".
+ * wl-folder.el (wl-folder-complete-filter-condition): Ditto.
+
2005-08-04 Yoichi NAKAYAMA <yoichi@geiin.org>
* wl-vars.el (wl-summary-showto-folder-regexp): Update docstring.
(mapcar (lambda (x) (list (concat (downcase x) ":")))
(append '("last" "first"
"from" "subject" "to" "cc" "body"
- "since" "before" "tocc")
+ "since" "before" "tocc"
+ "larger" "smaller")
elmo-msgdb-extra-fields))))
(if (not flag)
(try-completion string candidate)
(let* ((completion-ignore-case t)
(denial-fields (nconc (mapcar 'capitalize elmo-msgdb-extra-fields)
'("Flag" "Since" "Before"
- "From" "Subject" "To" "Cc" "Body" "ToCc")))
+ "From" "Subject" "To" "Cc" "Body" "ToCc"
+ "Larger" "Smaller")))
(field (completing-read
(format "%s (%s): " prompt default)
(mapcar 'list