From 6ca6c089e9df7affe6bee0392197509a24ab2546 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 21 Dec 2009 08:23:26 -0800 Subject: 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/index.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/index.cc') 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); -- cgit v1.2.3