From c897634e1c28697a6df572de00e66579567ad2a6 Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 11 Oct 2012 23:00:43 -0500 Subject: [PATCH] Fixed sortm(1) verbose message and man page to reflect that with -limit 0, the sort is only on the text field. --- man/sortm.man | 2 +- uip/sortm.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/man/sortm.man b/man/sortm.man index dd24014..73b23bb 100644 --- a/man/sortm.man +++ b/man/sortm.man @@ -89,7 +89,7 @@ makes the limit infinity. With .B \-limit .IR 0 , -the sort is instead made textfield\-major, date\-minor. +the sort is instead simply textfield\-major. .PP For example, to order a folder by date-major, grouping messages with the same subject on the same date together, use: diff --git a/uip/sortm.c b/uip/sortm.c index d2486ee..45e2b29 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -221,9 +221,10 @@ main (int argc, char **argv) if (verbose) { /* announce what we're doing */ if (subjsort) - printf ("sorting by %s-major %s-minor\n", - submajor ? subjsort : datesw, - submajor ? datesw : subjsort); + if (submajor) + printf ("sorting by %s\n", subjsort); + else + printf ("sorting by %s-major %s-minor\n", subjsort, datesw); else printf ("sorting by datefield %s\n", datesw); } -- 1.7.10.4