Hi David,
sort(1) has this functionality. It's -c for check. -check? Don't
see why we should deviate.
sortm already has a -check, for a slightly different purpose. It was
recently added, though, so maybe its meaning could be changed?
Ah, OK.
sortm always issues a warning for each message that is missing a
"Date:" field, has a "Date:" field that cannot be parsed, or has a
format error in any header field. With the -check switch, sortm
inhibits all modifications to the folder if there are any such
messages, and exits with non-zero status. With the default of
-nocheck, sortm sorts messages with a missing or invalid "Date:"
field using their file modification times.
-wantdate?
Cheers, Ralph.
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers