Implement new IMAP search feature, proposed by egh@e6h.org
authordmaus <dmaus>
Sun, 17 Jul 2011 17:17:13 +0000 (17:17 +0000)
committerdmaus <dmaus>
Sun, 17 Jul 2011 17:17:13 +0000 (17:17 +0000)
commit49f6557473b894b9c1d6bcdcf9f2bc65403ab5c1
tree57b1a28f014d148adad170ab0cc8e0499f28762e
parent3c9673ee9968615c8a890d040cce22d7a4234a2a
Implement new IMAP search feature, proposed by egh@e6h.org

2011-07-17  David Maus  <dmaus@ictsoc.de>

* elmo-util.el (elmo-list-difference): New function. Return
difference of two lists.
* elmo-imap4.el (elmo-imap4-search-generate-vector): Use function.

2011-07-03  Erik Hetzner  <egh@e6h.org>

* elmo-imap4.el (elmo-imap4-search-internal-primitive): Removed.
(elmo-imap4-search-build-full-command): New function. Build full
IMAP search command.
(elmo-imap4-search-perform): New function. Perform IMAP search.
(elmo-imap4-search-generate-vector): New function. Generate search
vector.
(elmo-imap4-search-mergeable-p): New function. Return non-nil if
two search conditions are mergeable.
(elmo-imap4-search-mergeable-charset): New function. Return
charset of two searches for merging.
(elmo-imap4-search-generate-uid): New function. Return search for
a set of messages.
(elmo-imap4-search-generate-and): New function. Return search that
returns intersection of two search commands.
(elmo-imap4-search-generate-or): New function. Return search that
returns union of two search commands.
(elmo-imap4-search-generate): New function. Return search in
folder.
(elmo-imap4-search-internal): Use new search functions.
elmo/ChangeLog
elmo/elmo-imap4.el
elmo/elmo-util.el