]> git.notmuchmail.org Git - notmuch/commit
database: Store mail filename as a new 'direntry' term, not as 'data'.
authorCarl Worth <cworth@cworth.org>
Mon, 21 Dec 2009 16:23:26 +0000 (08:23 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:05 +0000 (10:32 -0800)
commit6ca6c089e9df7affe6bee0392197509a24ab2546
tree69eaca4254d5548d19da8ed989230d91a9088a9f
parent84742d86ab2fd3e5b5b601f073351454b993575e
database: Store mail filename as a new 'direntry' term, not as 'data'.

Instead of storing the complete message filename in the data portion
of a mail document we now store a 'direntry' term that contains the
document ID of a directory document and also the basename of the
message filename within that directory. This will allow us to easily
store multple filenames for a single message, and will also allow us
to find mail documents for files that previously existed in a
directory but that have since been deleted.
lib/database.cc
lib/index.cc
lib/message.cc
lib/notmuch-private.h