X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Findex.cc;h=65b83b3f706f4fc3df571cd2caefc86c1d25ec10;hp=747a4e63334c1aa3c5602134f39ecfb1ab8d3978;hb=4d35c3544d7bb0143cb1a17cc197cfe271670bf8;hpb=f0d4c3ace230dd043984c0acc57e20ae92c85337 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) {