nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Questionable code - the bigger picture


From: Norman Shapiro
Subject: Re: [Nmh-workers] Questionable code - the bigger picture
Date: Sat, 14 May 2005 13:13:44 -0700

Jon Steinhart <address@hidden> writes:
 of changes are worthwhile.  Can we agree on some way to work this?
>
>Oh, just for discussion, here's another change that I'd like to make.  I need
>to make some changes in the way the context/profile stuff is handled.  Without
>going into a lot of detail here, I'm adding a -nochangecontext option to many
>of the programs so that you can, for example, show +newfolder without changing
>the current folder. 

I accomplish a similar functionality with an sh function for use in scripts:

newmh () 
{ 
    local oldContext="${MHCONTEXT-context}";
    local path=`mhpath +`;
    export MHCONTEXT=,"$oldContext.$$";
    cp "$path/$oldContext" "$path/$MHCONTEXT"
}


    Norman Shapiro
    798 Barron Avenue
    Palo Alto CA 94306-3109
    (650) 565-8215
    address@hidden




reply via email to

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