Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ken Hornstein
>Nope, not mixed versions, but your guess is as good as mine as to what's up. >I can poke around some more in the next few days/keep my eyes peeled. A system call trace would probably be very illuminating. ___ Nmh-workers mailing list Nmh-workers@nongnu

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Jerrad Pierce
Nope, not mixed versions, but your guess is as good as mine as to what's up. I can poke around some more in the next few days/keep my eyes peeled. ___ Nmh-workers mailing list Nmh-workers@nongnu.org https://lists.nongnu.org/mailman/listinfo/nmh-workers

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ken Hornstein
>In fact, the more I think about it, the more I wonder WHAT is going >on, exactly. The things you describe happening do not make sense to >me. Since the unseen sequence is not modified until the very end of >rcvstore, there should be nothing to remove from the unseen sequence >during the hook ope

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Jerrad Pierce
>I can save you the trouble; that's not going to change anything. All >set_unseen does is modify the sequence status bit vector in the folder >structure. The locks don't get released until seq_save() is called. Actually it did solve the problem. Sorry if I was not clear, the idea of moving it w

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ken Hornstein
>The overall problem is that calling nmh commands inside the hook script >was removing the message from the Unseen-Sequence*. Delaying that call >until after the hook invocation is complete ensures that whatever operations >are done in the hook, the message ends up in Unseen-Sequence after the >pro

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ken Hornstein
>>Of course, if you want to CALL mark inside of a hook, then all bets are >>off :-) I'm unclear how we can make that better. I will note that rcvstore >>can add messages to specific sequences, and there was a deprecated feature > >Nice! If that happens after add-hook we're 90% there. >The only pr

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Jerrad Pierce
>Of course, if you want to CALL mark inside of a hook, then all bets are >off :-) I'm unclear how we can make that better. I will note that rcvstore >can add messages to specific sequences, and there was a deprecated feature Nice! If that happens after add-hook we're 90% there. The only problem

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ken Hornstein
>>My *intent* when adding the hook code was to allow external, non-nmh programs >>to access the message store keeping track of changes. I added this code for >>a specific purpose, and never thought about anyone executing nmh commands >>inside of hook code. So I support Ken's conclusion that doing

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Jon Steinhart
Jerrad Pierce writes: > >My *intent* when adding the hook code was to allow external, non-nmh programs > >to access the message store keeping track of changes. I added this code for > >a specific purpose, and never thought about anyone executing nmh commands > >inside of hook code. So I support K

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Jerrad Pierce
>My *intent* when adding the hook code was to allow external, non-nmh programs >to access the message store keeping track of changes. I added this code for >a specific purpose, and never thought about anyone executing nmh commands >inside of hook code. So I support Ken's conclusion that doing so

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Jon Steinhart
Ken Hornstein writes: > Hooks are a relatively new addition to nmh, and it was never really defined > very well what you could expect to work inside of them. I am unsure how > we can guarantee that you can safely modify nmh metadata INSIDE of a hook > when running a program that also modifies nmh

Re: [Nmh-workers] What about an nmh-1.6-RC1

2014-02-26 Thread Ken Hornstein
>It looks like, when it finally comes out, nmh-1.6 will represent a >revolutionary change it the way nmh deals with MIME. > >But, in the nearly two years since nmh-1.5, there have been many other >important (at least important to me) improvements. For example, to sortm, >mhbuld, mhstore, and messag

Re: [Nmh-workers] What about an nmh-1.6-RC1

2014-02-26 Thread David Levine
Norm wrote: > So I wonder if I could prevail upon somebody to create and release an > nmh-1.6-RC1. I can't -- way about my pay grade. Instead of that, how about trying the sequence of commands below? You probably have some of the packages already installed, such as openssl and readline. Just ma

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ken Hornstein
>kh>Well, think about what's going on. You're changing sequences in the >kh>middle of an operation which is changing sequences. At a minimum you're >kh>going to be on the fringe of supported behavior. > >But other than the explicit calls to mark and Previous-Sequence, >sequences oughn't be being

[Nmh-workers] What about an nmh-1.6-RC1

2014-02-26 Thread norm
It looks like, when it finally comes out, nmh-1.6 will represent a revolutionary change it the way nmh deals with MIME. But, in the nearly two years since nmh-1.5, there have been many other important (at least important to me) improvements. For example, to sortm, mhbuld, mhstore, and message sequ

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ralph Corderoy
Hi Jerrad, > But other than the explicit calls to mark and Previous-Sequence, > sequences oughn't be being touched...? And I thought commands were > meant to open, close, reread sequences as needed rather than keep > a long lock? This is add-hook from rcvstore, via slocal. You might find strace(1

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Jerrad Pierce
kh>Are you using 1.3 (ewww), 1.5, or post-1.5 for your nmh implementation? 1.5+dev pulled from master on Monday (2/24) morning kh>Well, think about what's going on. You're changing sequences in the kh>middle of an operation which is changing sequences. At a minimum you're kh>going to be on the

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread Ken Hornstein
>I suppose I could try, but I've not used a C debugger > >Hmm, on a hunch I just discovered that somehow the call to mhstore in >mime-add-hook's for loop is the trigger... of course that's the raison >d'etre of the script :-/ Well, think about what's going on. You're changing sequences in the mid

Re: [Nmh-workers] problem with mark zeroing out sequences

2014-02-26 Thread David Levine
Jerrad wrote: > >Try feeding mhstore from a file instead of a message, something like: > Alas, mhstore -file did not solve the problem; Though it looks like mhstore causes the problem? I don't understand why -file wouldn't solve it. > I seem to have found a workaround that works, even with the