From 62379f3dee5bc3673007271bc43ecc2587ac4e22 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 4 Feb 2010 12:32:28 -0800 Subject: [PATCH] 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. --- notmuch-reply.c | 3 +++ 1 file changed, 3 insertions(+) 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)