On Tue, Feb 11, 2014 at 01:50:16PM -0700, Selene Scriven wrote:
Sorry for the delay, I was busy with something else.
Steps to reproduce the issue:
- Open a virtual folder in mutt-kz.
- [s]ave a message to a different Maildir. (original gets
marked as [D]eleted)
- Purge deleted messages.
I'm no able to reproduce the problem, maybe you can try to compile
mutt with --enable-debug and run ./mutt -d 2 and check the file
~/.muttdebug0. You will see something like:
[2014-03-06 10:28:52] nm: db open '/home/kzak/Mail/Maildir/' [WRITE] (timeout 5)
[2014-03-06 10:28:52] nm: rename filename,
/home/kzak/Mail/Maildir/bee/cur/1394097976.25403_1.x2:2,S ->
/home/kzak/Mail/Maildir/misc/cur/1394098132.25667_1.x2:2,S
[2014-03-06 10:28:52] nm: db trans start
[2014-03-06 10:28:52] nm: rename: add
'/home/kzak/Mail/Maildir/misc/cur/1394098132.25667_1.x2:2,S'
[2014-03-06 10:28:52] nm: rename: rem
'/home/kzak/Mail/Maildir/bee/cur/1394097976.25403_1.x2:2,S'
[2014-03-06 10:28:52] nm: rename: syncing duplicate filename
[2014-03-06 10:28:52] nm: add tag: 'rh'
[2014-03-06 10:28:52] nm: db trans end
[2014-03-06 10:28:52] nm: db close
that's produced by code that rename files.
/home/selene/mail/receipts//new/1392149990.21796_1.mutt
Mutt-kz then prints an error. It's a bit hard to catch before
the screen redraws, but it looks like... "Writing
notmuch://?query=(folder:INBOX or (... (...older:in...ror: A
Xapian exception occurred flushing database: Can't commit during
a transaction"
this problem (exception) with unbalanced transaction should be fixed now
git pull; make
At this point, I can query notmuch directly to see the broken
pathname. 'notmuch search folder:$HOME' works, but I prefer this
for more detail:
> nm-files id:3f06c38c-d6f9-4c78-a27b-527d0c4352fd@xtinmta06.xt.local
=== id:3f06c38c-d6f9-4c78-a27b-527d0c4352fd@xtinmta06.xt.local ===
thread:000000000003ff58 Today 10:31 [1/1] H&R Block; Appointments available now –
give us a call (unread)
/home/selene/mail//home/selene/mail/receipts//new/1392149990.21796_1.mutt
hmm... I don't understand how is it possible to add to DB such path
when we use notmuch_database_add_message() that parses the message.
IMHO it's mistake that there is no "notmuch fsck" command to clean up the
DB.
Karel
--
Karel Zak <kzak(a)redhat.com>
http://karelzak.blogspot.com