]> git.notmuchmail.org Git - notmuch/commit
notmuch_message_get_filename: Support old-style filename storage.
authorCarl Worth <cworth@cworth.org>
Thu, 7 Jan 2010 17:22:34 +0000 (09:22 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 7 Jan 2010 17:22:34 +0000 (09:22 -0800)
commita274848f95e3eb074b48d14cf22774c75b80c735
treec4a072526098cfd4641d74b7ab63ce95729b63d3
parent1a38cb841ca4ce87f6b57f9b1baf1a5f8b8e35b7
notmuch_message_get_filename: Support old-style filename storage.

When a notmuch database is upgraded to the new database format, (to
support file rename and deletion), any message documents corresponding
to deleted files will not currently be upgraded. This means that a
search matching these documents will find no filenames in the expected
place.

Go ahead and return the filename as originally stored, (rather than
aborting with an internal error), in this case.
lib/message.cc