wish: notmuch-emacs: provide completion in notmuch-search for path: as for tag:

2018-02-07 Thread Gregor Zattler
Dear notmuch developers,

when used interactively notmuch-search provides completion for
tag: (and is:) but not for e.g. path: (and folder:) prefixes.

For obvious reasons it would be very convenient if directory/file name
completion were available especially for users who still filter
their emails in different folders.

Other candidates for completion are mimetype: id: and perhaps attachment:.


Thanks for developing notmuch and your attention, Gregor

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: emacs-notmuch: A Xapian exception occurred parsing query

2018-02-07 Thread David Bremner
Kai Wang  writes:

> When I use emacs-notmuch, in the notmuch-search mode, I press 't' and
> select a tag, it gives a parsing query error:
>
> ==
>
> [Tue Feb  6 10:41:04 2018]
> notmuch search: A Xapian exception occurred
> A Xapian exception occurred parsing query: Syntax:  AND 
> 
> Query string was: * and tag:flagged
> command: /usr/local/bin/notmuch search --format\=sexp --format-version\=4 
> --sort\=newest-first \*\ and\ tag\:flagged
> exit status: 1
> stderr:
> notmuch search: A Xapian exception occurred
> A Xapian exception occurred parsing query: Syntax:  AND 
> 
> Query string was: * and tag:flagged
>

Hi Kai;

Thanks for the report.  This is a more or less known problem with "*";
if you try 't' in any other search it should work.

The underlying issue is that * is parsed (simplistically) by notmuch
before passing to Xapian, so only works if it is the entire query.

For cases like you report, where the user has not entered '*', but
rather it is contained in some generated query string, we could fix the
problem by adding a prefix like "special:*". This would allow Xapian to
parse it, but only for Xapian versions >= 3.5.  How many users of older
systems do we think this would affect? E.g. users of Debian oldstable
(jessie) would have to compile Xapian in order to use the newest
notmuch.

d
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] debian: drop export-dir from gbp.conf

2018-02-07 Thread David Bremner
Daniel Kahn Gillmor  writes:

> No one knows why this invocation is here.  it does weird things during
> the build.  If a developer really wants this behavior, they can
> specify it in their own ~/.gbp.conf
>

pushed.

d
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch