nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] pick -nosequence ?

2012-12-05 15:37:29
Hi David,

Paul F. wrote:
Ralph wrote:
i'm happy to prepare a patch to add "-nosequence"...  unless i'm
missing something and it's unnecessary.

Does HISTORY in mh_profile(5) help?

no, not on first (and second and third) read.  should it?

I agree that it doesn't help.

I was thinking along the lines of

    $ grep '^pick:' ~/.mh_profile
    pick: -sequence lp
    $ pick last
    1 hit
    $ pick -list lp
    7019
    $ pwd
    /home/tmp/1354742761.629788533
    $ MHCONTEXT=$PWD/ct pick -nopublic last:10
    10 hits
    $ cat ct
    Current-Folder: inbox
    atr-lp-/home/ralph/mail/inbox: 7005 7007-7009 7012 7015-7019
    $ pick -list lp
    pick: bad message list lp
    $

So far, so bad;  a private sequence `lp' in a folder correctly removes
the public sequence of the same name.  Onwards...

    $ echo mh-sequences: >>ct
    $ pick last
    1 hit
    $ pick -list lp
    7019
    $ MHCONTEXT=$PWD/ct pick -nopublic last:20
    20 hits
    $ cat ct
    Current-Folder: inbox
    atr-lp-/home/ralph/mail/inbox: 6958 6983-6984 6990 6994-6996 7000-7001 
7004-7005 7007-7009 7012 7015-7019
    mh-sequences:
    $ pick -list lp
    7019
    $

The user's own sequences are untouched stored as they are either as
public ones or privately in the user's, not the script's, context files.

Cheers, Ralph.

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

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