]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch show: Don't show the subject line twice.
authorCarl Worth <cworth@cworth.org>
Fri, 6 Nov 2009 17:32:24 +0000 (09:32 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 6 Nov 2009 17:32:24 +0000 (09:32 -0800)
I recently added a print of the subject line for use as part of a
two-line summary in the emacs client. But of course, the subject was
already being printed on the next line. So I didn't really need to add
anything, I could have just stopped hiding what was already
printed. Anyway, we now avoid printing it twice in a row.

notmuch.c

index 5dce65217e0ba0e70e965a0a8bee8ae013741533..64e59fe588bce24e08a94b36dc4b996a1d1b2f00 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -1076,7 +1076,7 @@ show_command (void *ctx, unused (int argc), unused (char *argv[]))
     int ret = 0;
 
     const char *headers[] = {
     int ret = 0;
 
     const char *headers[] = {
-       "Subject", "From", "To", "Cc", "Bcc", "Date"
+       "From", "To", "Cc", "Bcc", "Date"
     };
     const char *name, *value;
     unsigned int i;
     };
     const char *name, *value;
     unsigned int i;