X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-show.c;h=9f81ae161f1fa4975df8cf721630fbab818539c9;hp=19787feb2c17cd5dec629f0fc8b2ba35d1fe2dfc;hb=d3349358c6a5048559bd2a4faebe476ebd222170;hpb=13569ad6c96c3f3a653ac51274056614647ad7ef diff --git a/notmuch-show.c b/notmuch-show.c index 19787feb..9f81ae16 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -128,7 +128,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[])) char *query_string; const char *headers[] = { - "From", "To", "Cc", "Bcc", "Date" + "Subject", "From", "To", "Cc", "Bcc", "Date" }; const char *name, *value; unsigned int i; @@ -153,7 +153,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[])) return 1; } - for (messages = notmuch_query_search_messages (query); + for (messages = notmuch_query_search_messages (query, 0, -1); notmuch_messages_has_more (messages); notmuch_messages_advance (messages)) { @@ -167,8 +167,6 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[])) printf ("%s\n", _get_one_line_summary (ctx, message)); - printf ("%s\n", notmuch_message_get_header (message, "subject")); - for (i = 0; i < ARRAY_SIZE (headers); i++) { name = headers[i]; value = notmuch_message_get_header (message, name);