aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-02-04 12:32:28 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-02-04 12:42:09 -0800
commit62379f3dee5bc3673007271bc43ecc2587ac4e22 (patch)
tree724404f07a745c349bb21b38bea415f37acaa0d6 /notmuch-reply.c
parent82e47ec92b41973567f4d89bbd6afdb22fc634bd (diff)
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.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c3
1 files changed, 3 insertions, 0 deletions
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)