unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Possible bug with named queries
@ 2017-12-13 13:23 Adam Washington
  2017-12-13 16:42 ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Washington @ 2017-12-13 13:23 UTC (permalink / raw)
  To: notmuch


I've either stumbled across a bug in the handling of named queries or
(more likely) a bug in their documentation.  I've tried creating some
named queries by adding the following three lines to my
.notmuch-config file.

[query]
sasview=from:sasview.org or (from:github subject:sasview) or (from:github subject:sasmodels)
mantid=from:mantidproject.org

If I run `notmuch config list`, the following lines are amongst the output

crypto.gpg_path=gpg
query.sasview=from:sasview.org or (from:github subject:sasview) or (from:github subject:sasmodels)
query.mantid=from:mantidproject.org
built_with.compact=true

However, the queries do not seem to work.

$ notmuch count from:mantidproject.org
7
$ notmuch count query:mantid
0

Also, while the output from `notmuch config list` showed both queries,
trying to view them gives no result.

$ notmuch config get mantid

$

I'm guessing that the queries aren't configured properly, but I can't
seem to find any documentation that indicates that I'm doing something
wrong.  The man page for notmuch-config states that the explanation
for named queries is in notmuch-search-terms, which, in turn, points
back to notmuch-config.

Is this a bug or have I declared my queries incorrectly?

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

end of thread, other threads:[~2017-12-14  1:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13 13:23 Possible bug with named queries Adam Washington
2017-12-13 16:42 ` David Bremner
2017-12-13 23:09   ` Carl Worth
2017-12-13 23:47     ` config file vs. config in the database [was: Re: Possible bug with named queries] Daniel Kahn Gillmor
2017-12-14  0:10     ` Possible bug with named queries David Bremner

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).