I want to be able to step through the indexes of each of my
mailboxes in order with a series of single keystrokes. So for
example, from viewing the index for one mailbox, instead of
pressing c=<Tab><Tab>jjjjj (or however many j's it is down to the
next mailbox), I just want to press I, and through iterating a
count it knows how many j's it is to the next mailbox in the
browser.
Writing a function to do this kind of thing was easy when I was
using MH, but my shell programming knowledge is lacking, so I am
having a lot of difficulty doing it with mutt.
What I did was try this macro:
macro index I "c=<Tab><Tab>`JAY=j$JAY ; echo $JAY`"
I exported JAY through all my initialization files for my login
and inter/active shells, but it still doesn't work.
$ JAY=j$JAY ; echo $JAY
$ jjjj
works fine on the command line, incrementing and
everything. When it is in .muttrc, however, although, $JAY is
being echoed with one more j than it had before the macro was
performed, the next time I press I, it always returns to the same
folder, that is, it appears exiting from the sub-shell, $JAY is
returning to the value it had before the subshell was called.
I think this means it must be something about subshells not
returning results to parent shells, but this is guesswork. What I
want is to be able to step through my folders, without pressing c
and j all the time, or memorizing all the names of my 25 mailboxes.
Does anyone have some advice to help me?
--
Greg Matheson
Chinmin College, Taiwan
[EMAIL PROTECTED]