X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Findex.cc;h=044e4111dc0b1420139fe0da429c34421891dd1f;hb=fd6e4a99535cb5142381803bc4ea4f4f79d8d459;hp=0c4e232924ce1e139066c02c9f03bb5336f4167d;hpb=6dd00d64863dfc0563877ca7899231b8c3058c49;p=notmuch diff --git a/lib/index.cc b/lib/index.cc index 0c4e2329..044e4111 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -490,7 +490,7 @@ _notmuch_message_index_file (notmuch_message_t *message, { GMimeMessage *mime_message; InternetAddressList *addresses; - const char *from, *subject; + const char *subject; notmuch_status_t status; status = _notmuch_message_file_get_mime_message (message_file, @@ -498,9 +498,7 @@ _notmuch_message_index_file (notmuch_message_t *message, if (status) return status; - from = g_mime_message_get_sender (mime_message); - - addresses = internet_address_list_parse_string (from); + addresses = g_mime_message_get_from (mime_message); if (addresses) { _index_address_list (message, "from", addresses); g_object_unref (addresses);