aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/message.cc
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-05-18 00:13:36 -0400
committerGravatar David Bremner <bremner@debian.org>2012-05-23 22:30:43 -0300
commit67ae2377a9ec2da296a2e012352f962664a4d1a8 (patch)
treeaa2f6316c207673715b7936d62148547cb07a7eb /lib/message.cc
parent0c950146a14fa2bb0a0bf542073b2cdca141afd1 (diff)
lib: Perform the same transformation to _notmuch_database_filename_to_direntry
Now _notmuch_database_filename_to_direntry takes a flags argument and can indicate if the necessary directory documents do not exist. Again, callers have been updated, but retain their original behavior.
Diffstat (limited to 'lib/message.cc')
-rw-r--r--lib/message.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/message.cc b/lib/message.cc
index 00754254..8d552f1f 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -495,9 +495,8 @@ _notmuch_message_add_filename (notmuch_message_t *message,
if (status)
return status;
- status = _notmuch_database_filename_to_direntry (local,
- message->notmuch,
- filename, &direntry);
+ status = _notmuch_database_filename_to_direntry (
+ local, message->notmuch, filename, NOTMUCH_FIND_CREATE, &direntry);
if (status)
return status;
@@ -541,8 +540,8 @@ _notmuch_message_remove_filename (notmuch_message_t *message,
notmuch_status_t status;
Xapian::TermIterator i, last;
- status = _notmuch_database_filename_to_direntry (local, message->notmuch,
- filename, &direntry);
+ status = _notmuch_database_filename_to_direntry (
+ local, message->notmuch, filename, NOTMUCH_FIND_CREATE, &direntry);
if (status)
return status;