unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
To: Mark Walters <markwalters1009@gmail.com>,
	Jani Nikula <jani@nikula.org>, Tomi Ollila <tomi.ollila@iki.fi>,
	notmuch@notmuchmail.org
Cc: tomi.ollila@iki.fi
Subject: Re: [DRAFT PATCH] notmuch new: do not ignore '.notmuch' in non-toplevel directories
Date: Sat, 01 Mar 2014 10:22:03 -0600	[thread overview]
Message-ID: <87ha7hvqhg.fsf@trouble.defaultvalue.org> (raw)
In-Reply-To: <87r46mgrxm.fsf@qmul.ac.uk>

Mark Walters <markwalters1009@gmail.com> writes:

> An alternative would be to ignore any .notmuch path with a xapian
> sub-directory. This would mean if a user indexed some subset of their
> mail before trying to index the whole thing they wouldn't accidentally
> index the old xapian database. 

If you wanted to be fairly careful, perhaps test for
exists(".notmuch/.xapian/flintlock" or ".notmuch/.xapian/iamchert"), or
some other very specific test.

> I think the above was suggested by rlb on irc but I don't think it got
> any reply. 

Not sure.  Though I'm wondering if I may have suggested we could add a
notmuch specific token file, i.e. .notmuch/this-really-is-a-notmuch-dir,
which lead to someone else suggesting we could just use .xapian.

Of course broadly speaking, ".xapian" might be a legitimate maildir too,
but ".notmuch/.xapian" seems fairly unlikely.

In any case, while I might prefer a very narrow test (as long as it
wasn't unduly expensive), all of the proposed solutions would have
handled my situation.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

  reply	other threads:[~2014-03-01 16:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-23  2:16 [BUG] notmuch excludes .notmuch anywhere in the tree Rob Browning
2014-02-23 19:18 ` [DRAFT PATCH] notmuch new: do not ignore '.notmuch' in non-toplevel directories Tomi Ollila
2014-02-23 22:22   ` Jani Nikula
2014-03-01  9:59     ` Mark Walters
2014-03-01 16:22       ` Rob Browning [this message]
2022-01-24 13:39 ` [BUG] notmuch excludes .notmuch anywhere in the tree David Bremner

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=87ha7hvqhg.fsf@trouble.defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=jani@nikula.org \
    --cc=markwalters1009@gmail.com \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /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).