]> 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 42060665743e24534f0bb8db52e8b8110697f81b..4a4a782b1636a269aa505f8b560f06eaa2cd337c 100644 (file)
@@ -24,7 +24,7 @@
 #include "gmime-filter-reply.h"
 
 static void
-reply_part(GMimeObject *part, int *part_count)
+reply_part (GMimeObject *part, int *part_count)
 {
     GMimeContentDisposition *disposition;
     GMimeContentType *content_type;
@@ -236,7 +236,7 @@ notmuch_reply_command (void *ctx, int argc, char *argv[])
 
            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);