From: Carl Worth Date: Thu, 4 Feb 2010 20:32:28 +0000 (-0800) Subject: notmuch reply: Prevent GMIME assertion complaints for empty Reply-to header. X-Git-Tag: 0.1~119 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=62379f3dee5bc3673007271bc43ecc2587ac4e22;hp=82e47ec92b41973567f4d89bbd6afdb22fc634bd;ds=sidebyside 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. --- diff --git a/notmuch-reply.c b/notmuch-reply.c index 885bedb1..0d29cf07 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -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)