* modb.el (elmo-msgdb-match-condition): Rewrite with
`elmo-condition-match'.
(elmo-msgdb-match-condition-primitive): New function.
* modb-entity.el (elmo-msgdb-message-match-condition): Removed
arguments `flags' and `numbers'.
(elmo-msgdb-match-condition-primitive): Abolished (merged to
`elmo-msgdb-message-match-condition').
(modb-buffer-entity-handler): New class.
* elmo.el (elmo-folder-search): Optimize condition to use
`elmo-condition-optimize'.
(elmo-message-buffer-match-condition): New function.
(elmo-message-match-condition): Use
`elmo-message-buffer-match-condition' instead of
`elmo-buffer-field-condition-match'.
* elmo-util.el (elmo-condition-match): New function.
(elmo-condition-optimize): Ditto.
(elmo-buffer-field-primitive-condition-match): Abolish.
(elmo-buffer-field-condition-match): Ditto.
* elmo-archive.el (elmo-archive-field-condition-match): Use
`elmo-message-buffer-match-condition' instead of
`elmo-buffer-field-condition-match'.