nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] mhfixmsg invocation

2014-11-19 14:43:20
ralph wrote:
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.

yes, that would be better.

there's another wrinkle, as well:  mhfixmsg leaves cur set to the last
message processed, which means cur is no longer what it was when inc
was finished.  so cur needs to be saved and restored, as well.

paul


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

=----------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 28.2 degrees)

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>