aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/index.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-21 08:23:26 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-01-06 10:32:05 -0800
commit6ca6c089e9df7affe6bee0392197509a24ab2546 (patch)
tree69eaca4254d5548d19da8ed989230d91a9088a9f /lib/index.cc
parent84742d86ab2fd3e5b5b601f073351454b993575e (diff)
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.
Diffstat (limited to 'lib/index.cc')
-rw-r--r--lib/index.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/index.cc b/lib/index.cc
index 125fa6c9..e58bc870 100644
--- a/lib/index.cc
+++ b/lib/index.cc
@@ -31,7 +31,7 @@ _index_address_mailbox (notmuch_message_t *message,
{
InternetAddressMailbox *mailbox = INTERNET_ADDRESS_MAILBOX (address);
const char *name, *addr;
- void *local = talloc_new (NULL);
+ void *local = talloc_new (message);
name = internet_address_get_name (address);
addr = internet_address_mailbox_get_addr (mailbox);