nmh-workers
[Top] [All Lists]

[Nmh-workers] Re: mhpath

2005-11-03 10:30:21
Jon Steinhart <jon@fourwinds.com> writes:

I have thought about this.  There are time where one really wants to
know THE current folder, which means none if there is none.

But there *is* a current folder if there isn't one in context, and
it's +inbox.

Why don't you use mhparam instead?

    [wohler@olgas:878]$ mhparam Current-Folder
    [wohler@olgas:879]$ echo $?
    1
    [wohler@olgas:880]$ folder +lists
    lists+ has no messages       ;        (others).
    [wohler@olgas:881]$ mhparam Current-Folder
    lists
    [wohler@olgas:882]$ echo $?
    0

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.



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

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