diff options
author | Keith Packard <keithp@keithp.com> | 2009-11-16 19:57:14 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-11-16 22:10:36 -0800 |
commit | 6b135cae1e6e29a5ce8d8acb0cde2b50628ab8f1 (patch) | |
tree | 544719fab0ebb181ee477fc85d0af6761c0d3c2c | |
parent | dac31c9e01a18130f141994c98a48800cdb03efa (diff) |
notmuch_message_file_get_header returns "" for missing headers, not NULL
This makes notmuch reply fail to add From: addresses to the list of
recipients.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | notmuch-reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c index d734de3..4a4a782 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -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); |