unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: dm-list-email-notmuch@scs.stanford.edu
To: Jani Nikula <jani@nikula.org>, Mark Walters <markwalters1009@gmail.com>
Cc: notmuch@notmuchmail.org
Subject: Re: folder and path completely broken in HEAD?
Date: Sat, 03 May 2014 18:34:59 -0700	[thread overview]
Message-ID: <8738gqnx6k.fsf@ta.scs.stanford.edu> (raw)
In-Reply-To: <87tx96ycja.fsf@nikula.org>

Jani Nikula <jani@nikula.org> writes:

> It's not going to help you, but I'll mention a few of the issues the old
> folder: search had, which we also had complaints about, and which would
> have been quite hard to fix while preserving the behaviour you want. In
> short, we considered the old folder: search broken.
>
> Given layout:
>
> 	Foo/{cur,new}
> 	foo/{cur,new}
> 	fooing/{cur,new}
> 	bar/foo/{cur,new}
> 	cur
> 	new
>
> It was impossible to refer to the top level folder.
>
> It was impossible to refer to foo without also referring to Foo, fooing,
> and bar/foo.
>
> In your layout, if you also had 2013/.bar.foo, folder:foo would match
> that as well. To not match that, you would have to include each
> folder:.foo.xxx in the search.

First, thanks for the response.  The responsiveness and friendliness of
the notmuch mailing list goes a long way towards compensating for any
missing features / customizability one might want.

I was already aware of the issues you raise, and had worked around them
by just renaming all my mail folders.  I agree that searching for a
particular folder is crucial functionality, and found it weird that I
had to abandon my main top-level mailbox (which I just renamed
.INBOX.Main).

However, currently it seems strange that there are *two* different
search terms (folder and path), and that neither one lets you search for
a portion of your folder name.  Admittedly the old folder code was one
of the parts of the notmuch source that didn't make sense to me (and now
I'm starting to understand why--e.g., the fact that it used stemming,
for instance, was just weird and maybe accidental).

I may be able to hack around this problem in the emacs lisp part or with
a wrapper script.  I'm already having to defadvice around
notmuch-call-notmuch-sexp to implement features I'm missing from
wanderlust and gnus (e.g., the inability to specify regexps matching all
my email addresses).

But to help me understand the current design, can you answer a couple of
questions?


First, are there people out there who do not use a collection of maildir
directories, with all mail in cur and new?  If not, why does notmuch try
to find mail in non-mail-directories, and why do you need search terms
differentiating new and cur?  Conversely, I find it particularly weird
that there's no convenient way to say "stop trying to index stuff that
isn't in a maildir (cur or new)."  You can do the inverse and blacklist
files, but then I end up with stuff like this in my .notmuch-config:

        ignore=dovecot-keywords;dovecot-uidlist;dovecot-uidvalidity;dovecot.index;dovecot.index.cache;dovecot.index.log;dovecot.index.log.2;dovecot.index.search;dovecot.index.search.uids;maildirfolder;

(And still I think there are other junk files that get left around by my
imap server or other software, so notmuch new still repeatedly tries to
index junk whenever I run it.)


Second, does anyone out there have a collection with more than a few
thousand maildirs?  I understand some people index millions of messages,
but even with tiny maildirs of a few hundred messages each, that's a
mere 10,000 maildirs.  So for that, who needs any kind of Xapian
indexing fanciness or dedicated XFOLDER prefix?  Scanning the entire set
of XDIRECTORY terms to apply an arbitrary predicate should take
negligible time.  So all you really need is a boolean search term
containing the directory docid (or with the existing schema the ability
to do a prefix search on XFDIRENTRYn:*).

Thanks,
David

  reply	other threads:[~2014-05-04  1:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-03  4:57 folder and path completely broken in HEAD? dm-list-email-notmuch
2014-05-03  5:49 ` Suvayu Ali
2014-05-03  7:11 ` Mark Walters
2014-05-03 15:55   ` dm-list-email-notmuch
2014-05-03 17:53     ` Jani Nikula
2014-05-04  1:34       ` dm-list-email-notmuch [this message]
     [not found]         ` <87mwewkjzu.fsf@yoom.home.cworth.org>
2014-05-05 22:34           ` Jani Nikula
2014-05-06  7:44             ` Mark Walters
     [not found]               ` <87eh06jngf.fsf@yoom.home.cworth.org>
2014-05-07 19:24                 ` Mark Walters
2014-05-09 20:01         ` Jameson Graef Rollins
2014-05-03 18:57     ` Mark Walters
2014-05-03  7:29 ` Tomi Ollila
  -- strict thread matches above, loose matches on Subject: below --
2014-05-02 17:41 dm-list-email-notmuch
2014-05-02 18:10 ` Mark Walters
2014-05-02 21:16   ` David Mazieres expires 2014-07-31 PDT
2014-05-03  5:44     ` Suvayu Ali
2014-05-02 21:29 ` Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738gqnx6k.fsf@ta.scs.stanford.edu \
    --to=dm-list-email-notmuch@scs.stanford.edu \
    --cc=jani@nikula.org \
    --cc=markwalters1009@gmail.com \
    --cc=mazieres-m3ssd5tf29djdm7jf9qfi4atf2@temporary-address.scs.stanford.edu \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).