aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/index.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-12 09:38:24 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-12 09:38:24 -0800
commit4d35c3544d7bb0143cb1a17cc197cfe271670bf8 (patch)
tree4ba708c8cf46fb89e10a804ea1edbcd03f649bdd /lib/index.cc
parentf0d4c3ace230dd043984c0acc57e20ae92c85337 (diff)
Don't create "contact" terms in the database.
We never did export any interface to get at these, and when I went to use these, I found them inadequate, (because I wanted to distinguish address found in from: from those found in To:). Meanwhile, it was easy enough to extract addresses with a search like: notmuch show tag:sent | grep ^To: so the storage of contact terms was just wasting space. Stop that.
Diffstat (limited to 'lib/index.cc')
-rw-r--r--lib/index.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/index.cc b/lib/index.cc
index 747a4e63..65b83b3f 100644
--- a/lib/index.cc
+++ b/lib/index.cc
@@ -31,23 +31,11 @@ _index_address_mailbox (notmuch_message_t *message,
{
InternetAddressMailbox *mailbox = INTERNET_ADDRESS_MAILBOX (address);
const char *name, *addr;
- char *contact;
int own_name = 0;
name = internet_address_get_name (address);
addr = internet_address_mailbox_get_addr (mailbox);
- if (addr) {
- if (name) {
- contact = talloc_asprintf (message, "\"%s\" <%s>",
- name, addr);
- _notmuch_message_add_term (message, "contact", contact);
- talloc_free (contact);
- } else {
- _notmuch_message_add_term (message, "contact", addr);
- }
- }
-
/* In the absence of a name, we'll strip the part before the @
* from the address. */
if (! name) {