mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
notmuch reply: Prevent GMIME assertion complaints for empty Reply-to header.
Apparently, GMime doesn't want to create a valid address list object for an empty string. That's annoying, but it's easy enough to test for the empty string and avoid the problem.
This commit is contained in:
parent
82e47ec92b
commit
62379f3dee
1 changed files with 3 additions and 0 deletions
|
@ -207,6 +207,9 @@ mailing_list_munged_reply_to (notmuch_message_t *message)
|
|||
InternetAddressMailbox *mailbox;
|
||||
|
||||
header = notmuch_message_get_header (message, "reply-to");
|
||||
if (*header == '\0')
|
||||
return 0;
|
||||
|
||||
list = internet_address_list_parse_string (header);
|
||||
|
||||
if (internet_address_list_length (list) != 1)
|
||||
|
|
Loading…
Reference in a new issue