Hi David,
Alternatively, something like this (completely untested)?
msgs=`inc -format '%(msg)'` && [ -n "$msgs" ] && mhfixmsg $msgs
but then i'd lose the default output of inc.
msgs=`inc -format '%(msg)'` && [ -n "$msgs" ] && scan $msgs && mhfixmsg $msgs
Still a bit of a kludge? inc updates *all* sequences in
unseen-sequence, so Paul could add one just for this task which he
zeroes before inc so it contains just the inc'd ones.
Though I wonder if inc could really do with an orthogonal -sequence that
it sets to precisely what it just created, i.e. it zeroes it beforehand.
Cheers, Ralph.
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers