diff options
author | Carl Worth <cworth@cworth.org> | 2010-03-09 10:12:58 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-03-09 10:12:58 -0800 |
commit | 2303d9366e2a4f18173983ab02a0c4d9b05d607c (patch) | |
tree | 9dab31d8e3d027793ae2096f433fe52f33be113c /notmuch-show.c | |
parent | c375f7a4078f88f9d35503cbe3feea063aee3358 (diff) |
notmuch show: Don't show empty headers.
This is a fairly old regression. There has always been code to avoid
printing empty headers (such as Cc or Bcc with no values), but it has
been broken since notmuch_message_get_header was changed to return
an empty string rather than a NULL pointer for these fields.
Diffstat (limited to 'notmuch-show.c')
-rw-r--r-- | notmuch-show.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-show.c b/notmuch-show.c index 36bb0d3..cb5e47a 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -160,7 +160,7 @@ format_headers_text (const void *ctx, notmuch_message_t *message) for (i = 0; i < ARRAY_SIZE (headers); i++) { name = headers[i]; value = notmuch_message_get_header (message, name); - if (value) + if (value && strlen (value)) printf ("%s: %s\n", name, value); } } |