mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 05:34:11 +01:00
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>
This commit is contained in:
parent
dac31c9e01
commit
6b135cae1e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue