]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
libnotmuch: Underlying support for doing partial-results searches.
[notmuch] / notmuch-show.c
index 19787feb2c17cd5dec629f0fc8b2ba35d1fe2dfc..9f81ae161f1fa4975df8cf721630fbab818539c9 100644 (file)
@@ -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);