]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
notmuch_message_file_get_header returns "" for missing headers, not NULL
[notmuch] / notmuch-reply.c
index d734de39c1da5be3b91b214d05d72b7e76ea9f3c..4a4a782b1636a269aa505f8b560f06eaa2cd337c 100644 (file)
@@ -236,7 +236,7 @@ notmuch_reply_command (void *ctx, int argc, char *argv[])
 
            recipients = notmuch_message_get_header (message,
                                                     reply_to_map[i].header);
 
            recipients = notmuch_message_get_header (message,
                                                     reply_to_map[i].header);
-           if (recipients == NULL && reply_to_map[i].fallback)
+           if ((recipients == NULL || recipients[0] == '\0') && reply_to_map[i].fallback)
                recipients = notmuch_message_get_header (message,
                                                         reply_to_map[i].fallback);
 
                recipients = notmuch_message_get_header (message,
                                                         reply_to_map[i].fallback);