unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [Patch V4] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag
@ 2012-02-02 17:39 Mark Walters
  2012-02-02 17:43 ` [PATCH v4 01/11] cli: add --no-exclude option to count and search Mark Walters
                   ` (11 more replies)
  0 siblings, 12 replies; 25+ messages in thread
From: Mark Walters @ 2012-02-02 17:39 UTC (permalink / raw)
  To: notmuch, Austin Clements


Here is the latest version of this patch set. I think I have fixed most
of the problems raised in review but there are some remaining issues
detailed below.

Changes and queries:

1) Changed --do-not-exclude option to --no-exclude

2) The api notmuch_query_set_omit_excluded_messages remains: without it I
can't see how a user can pass the notmuch_messages_t object around which
does not contain the excluded messages. See
id:"87fweusabh.fsf@qmul.ac.uk"

3) I have introduced a new function notmuch_thread_get_flag_messages
(notmuch_thread_t *thread, unsigned int flag_mask, unsigned int flags)

which returns the number of messages with the specified flags on
flag_mask. (Note the current NOTMUCH_MESSAGE_FLAGs were nominally the
bit position of the flag rather than the actual bit of the flag. I
changed that. I am not completely happy with the style for this commit
(patch 7/11): any comments gratefully received!

4) In id:"20120131044352.GZ17991@mit.edu" Austin suggested that I use a
notmuch_mset_messages_t object rather than an notmuch_doc_id_set_t. I
couldn't see how that would work unless the iterator would generate the
excludes in step with the main query. At the moment the doc_id object
just stores a bitmap listing all relevant excluded messages.

5) If we have a query which overrides the excludes such as "blah and
tag:deleted" should the tag:deleted messages still be marked excluded?
The current implementation does mark them excluded but my preference would
be not to. What do people think?

6) In id:"20120131050748.GA10844@mit.edu" Austin pointed out that the
sort will be influenced by the excluded messages. I do not think either
of us are sure whether it should be or not so I have left it as is for
the moment.

Best wishes

Mark

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2012-02-11 19:16 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02 17:39 [Patch V4] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag Mark Walters
2012-02-02 17:43 ` [PATCH v4 01/11] cli: add --no-exclude option to count and search Mark Walters
2012-02-02 17:43 ` [PATCH v4 02/11] cli: Add --no-exclude to the man pages for search and count Mark Walters
2012-02-02 17:43 ` [PATCH v4 03/11] test: add tests for new cli --no-exclude option Mark Walters
2012-02-02 17:43 ` [PATCH v4 04/11] lib: Rearrange the exclude code in query.cc Mark Walters
2012-02-02 17:43 ` [PATCH v4 05/11] lib: Make notmuch_query_search_messages set the exclude flag Mark Walters
2012-02-02 17:43 ` [PATCH v4 06/11] lib: Add the exclude flag to notmuch_query_search_threads Mark Walters
2012-02-02 17:43 ` [PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages Mark Walters
2012-02-02 21:55   ` Jani Nikula
2012-02-02 22:27     ` Mark Walters
2012-02-02 23:07       ` Jani Nikula
2012-02-02 23:24         ` Mark Walters
2012-02-03  8:48           ` Jani Nikula
2012-02-03  9:36             ` Mark Walters
2012-02-03  9:48               ` Jani Nikula
2012-02-02 17:43 ` [PATCH v4 08/11] cli: Make notmuch-show respect excludes Mark Walters
2012-02-02 22:08   ` Jani Nikula
2012-02-02 22:35     ` Mark Walters
2012-02-02 23:13       ` Jani Nikula
2012-02-02 23:19         ` Mark Walters
2012-02-02 17:43 ` [PATCH v4 09/11] test: update tests to reflect the exclude flag Mark Walters
2012-02-02 17:43 ` [PATCH v4 10/11] cli: omit excluded messages in results where appropriate Mark Walters
2012-02-02 17:43 ` [PATCH v4 11/11] emacs: show: recognize the exclude flag Mark Walters
2012-02-03  8:15   ` David Edmondson
2012-02-11 19:17 ` [Patch V4] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag Mark Walters

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).