From: David Levine Date: Fri, 12 Oct 2012 04:00:43 +0000 (-0500) Subject: Fixed sortm(1) verbose message and man page to reflect that with X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=c897634e1c28697a6df572de00e66579567ad2a6;p=mmh Fixed sortm(1) verbose message and man page to reflect that with -limit 0, the sort is only on the text field. --- 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); }