]> git.cworth.org Git - obsolete/notmuch-old/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>
Mon, 21 Dec 2009 16:26:43 +0000 (08:26 -0800)
commit2c86b5e93cca873a3115e153836083718f0fe24b
tree6b6851bdead138e25ee7426aa3e21a0b94728e43
parent156c40e865bc00f61d3ec72dec769b07ebbf732f
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