mailbox name as variable in browser
It just occurred to me that the heading for this thread was
misleading. so I've changed it...
m
On Wed, Apr 06, 2005 at 02:51:34PM -0400, Matt Price wrote:
> On Tue, Apr 05, 2005 at 11:47:26PM +0200, Jostein Berntsen wrote:
> > On 01.04.05,14:08, Matt Price wrote:
> > > I've put a screenshot on the web at
> > > http://www.derailleur.org/mgt-mutt.jpeg . You can see at the bottom
> > > the multi-gnome-terminal command that produced window 7 ("tlug"):
> > >
> > > multi-gnome-terminal -T -n tlug -e "mutt -f =.tlug" &
> > >
> > > but I don't know how to do this automagically, as I'm not sure how the
> > > mbox name is stored in the browser.
> > >
> > > I tried :
> > > macro browser O "<pipe-entry>multi-gnome-terminal -T -n tlug -e 'mutt
> > > -f =.tlug'\n"
> > > but I get a "key not defined" error. Anyone have any other hints?
> > >
> > > Thanks much,
> > >
> > This will work I believe:
> >
> > macro index .<F3> '!multi-gnome-terminal -T -n tlug -e "mutt"'<enter>
> >
>
> ahh. thank you for the syntax help. That's better. however, while
> this helps, it still obviously doesn't do what I want... what I'd
> like to do is replace "tlug" in the above commands with the name of
> the maildir that the active line is located at in the browser. So if
> I scroll down thel ist to, say, .mycroft, the command would be
> translated automagically into:
> '!multi-gnome-terminal -T -n mycroft -e "mutt -f =mycroft"'<enter>
>
> I imagine one would do that with some kind of string replacement:
> '!multi-gnome-terminal -T -n %f -e "mutt -f =%f"'<enter>
>
> (that's crude I know)... but I don't know whether there's a
> user-accessible variable that stores the filename nor am I ever sure
> how to embed such variables in mutt ocmmands (I have a hard time with
> the escapes).
>
> anyway, thanks much for the help, if there's any more out there I'd be
> grateful.
>
> matt
>
> >
> > - Jostein
> >
>
m