From: David Levine Date: Sun, 27 Jan 2013 15:34:58 +0000 (-0600) Subject: Changed sortm warning message from an amonish() to and advise(), X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c248af059357c7247055f643f4af00e1465b4247?hp=-c Changed sortm warning message from an amonish() to and advise(), and included the remedy of using the file mtime, per suggestions of Norm and Ralph. --- c248af059357c7247055f643f4af00e1465b4247 diff --git a/test/folder/test-sortm b/test/folder/test-sortm index 7ef656cd..930b0581 100755 --- a/test/folder/test-sortm +++ b/test/folder/test-sortm @@ -388,7 +388,7 @@ check "$expected" "$actual" # check -check cat >"$expected" < $MH_TEST_DIR/Mail/inbox/14 run_test 'sortm -check -nocheck' \ - "sortm: can't parse date field in message 14, continuing..." + "sortm: can't parse date field in message 14, will use file mtime" scan >"$actual" check "$expected" "$actual" diff --git a/uip/sortm.c b/uip/sortm.c index 429f75f9..28e2bd64 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -423,7 +423,8 @@ get_fields (char *datesw, int msg, struct smsg *smsg) if (!datecomp || (tw = dparsetime (datecomp)) == NULL) { struct stat st; - admonish (NULL, "can't parse %s field in message %d", datesw, msg); + advise (NULL, "can't parse %s field in message %d, will use file mtime", + datesw, msg); fstat (fileno (in), &st); smsg->s_clock = st.st_mtime; check_failed = 1;