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