X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=64e59fe588bce24e08a94b36dc4b996a1d1b2f00;hp=c5a913cdec7329f71813ec1dc03d1135bcc39c27;hb=1eec45659b1f647c862667b045eb27a691d0f11e;hpb=494c74229bb8bdfc8571ce5de20a7beb0333c5f2 diff --git a/notmuch.c b/notmuch.c index c5a913cd..64e59fe5 100644 --- a/notmuch.c +++ b/notmuch.c @@ -913,7 +913,6 @@ _get_one_line_summary (void *ctx, notmuch_message_t *message) const char *from; time_t date; const char *relative_date; - const char *subject; const char *tags; from = notmuch_message_get_header (message, "from"); @@ -921,12 +920,10 @@ _get_one_line_summary (void *ctx, notmuch_message_t *message) date = notmuch_message_get_date (message); relative_date = _format_relative_date (ctx, date); - subject = notmuch_message_get_header (message, "subject"); - tags = _get_tags_as_string (ctx, message); - return talloc_asprintf (ctx, "%s (%s) %s (%s)", - from, relative_date, subject, tags); + return talloc_asprintf (ctx, "%s (%s) (%s)", + from, relative_date, tags); } static void @@ -1079,7 +1076,7 @@ show_command (void *ctx, unused (int argc), unused (char *argv[])) int ret = 0; const char *headers[] = { - "Subject", "From", "To", "Cc", "Bcc", "Date" + "From", "To", "Cc", "Bcc", "Date" }; const char *name, *value; unsigned int i; @@ -1118,6 +1115,8 @@ show_command (void *ctx, unused (int argc), unused (char *argv[])) printf ("%s\n", _get_one_line_summary (local, 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); @@ -1467,11 +1466,24 @@ command_t commands[] = { "\t\tNote that the individual mail messages will be matched\n" "\t\tagainst the search terms, but the results will be the\n" "\t\tthreads containing the matched messages.\n\n" - "\t\tCurrently, the supported search terms are as follows, (where\n" - "\t\t indicate user-supplied values):\n\n" + "\t\tCurrently, in addition to free text (and quoted phrases)\n" + "\t\twhich match terms appearing anywhere within an email,\n" + "\t\tthe following prefixes can be used to search specific\n" + "\t\tportions of an email, (where indicate user-\n" + "\t\tsupplied values):\n\n" + "\t\t\tfrom:\n" + "\t\t\tto:\n" + "\t\t\tsubject:\n" "\t\t\ttag:\n" "\t\t\tid:\n" "\t\t\tthread:\n\n" + "\t\tThe from: prefix is used to match the name or address of\n" + "\t\tthe sender of an email message.\n\n" + "\t\tThe to: prefix is used to match the names or addresses of\n" + "\t\tany recipient of an email message, (whether To, Cc, or Bcc).\n\n" + "\t\tAny term prefixed with subject: will match only text from\n" + "\t\tthe subject of an email. Quoted phrases are supported when\n" + "\t\tsearching with: subject:\"this is a phrase\".\n\n" "\t\tValid tag values include \"inbox\" and \"unread\" by default\n" "\t\tfor new messages added by \"notmuch new\" as well as any other\n" "\t\ttag values added manually with \"notmuch tag\".\n\n"