diff options
| author | David Bremner <david@tethera.net> | 2017-05-05 23:26:57 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-07-14 17:58:09 -0300 |
| commit | cbb2d5608ef6dd54d6e9e19b2bb570d3fe54b28b (patch) | |
| tree | 3ef9a10b516b62ec61149958016d9470a524b6be /lib/index.cc | |
| parent | d7fea369160c548524fd8958ff88d6faacfabe3a (diff) | |
lib/cli: replace use of g_mime_message_get_sender
This function changes semantics in gmime-3.0 so make a new function
that provides the same functionality in both
Diffstat (limited to 'lib/index.cc')
| -rw-r--r-- | lib/index.cc | 6 |
1 files changed, 2 insertions, 4 deletions
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); |
