nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] mhfixmsg invocation


From: Paul Fox
Subject: Re: [Nmh-workers] mhfixmsg invocation
Date: Wed, 19 Nov 2014 15:43:04 -0500

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
 > address@hidden
 > https://lists.nongnu.org/mailman/listinfo/nmh-workers

=----------------------
 paul fox, address@hidden (arlington, ma, where it's 28.2 degrees)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]