>Arguably this is a problem already: all the time I have to keep in my
>head that I must be careful about changing nmh state among my (usual)
>four terminal windows: I'm reading one email in one folder, see
>something arrive in another folder, look at that in another window, go
>back to the first window, decide the original message is irrelevant and
>rmm it — except now I'm rmm'ing something else in another folder because
>I switched context in the other window.

You are allowed to have multiple contexts (see mh-profile(5), the MHCONTEXT
environment variable).  You could in your shell startup script do something
like:

export MHCONTEXT context-$$

Might want to do some cleanup of those files, but you get the idea.
That would give each shell it's own context, so a folder change in one
window wouldn't affect other windows.  You could do private sequences if
you want to have per-window sequences for things like "cur", but you'd
need to think carefully about the implications there.

That might solve the specific problem of being in the wrong folder when you
issue an rmm.  But remember ... with individual commands, I am unclear
how you can fundamentally solve this problem without requiring the user
to know what they are doing.  My question to you would be: in the above
scenario, what do you EXPECT nmh to do?

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to