<<< Date Index >>>     <<< Thread Index >>>

Re: [repost] macro to open mailbox in new multi-gnome-terminal tab



On Tue, Apr 05, 2005 at 11:47:26PM +0200, Jostein Berntsen wrote:
> On 01.04.05,14:08, Matt Price wrote:
> > hey, posted this a couple of days ago, haven't seen it, sorry if it
> > ends up as a duplicate...
> > 
> > hi folks,
> > 
> > I'm playing around with multi-gnome-terminal and have defined  a nice
> > class of windows with a bunch of mailboxes opened in various tabs.
> > I'd like to define a browser macro that would allow me to open up the
> > selected mailbox in a new tab.  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,
> > 
> > matt
> > 
> > 
> 
> 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
> 

--------------------------
 .''`.       Matt Price 
: :'  :      Debian User
`. `'`       & hemi-geek
  `-     
-------------------------- 
if you're an evil spambot, these addresses are for you:  
aardvark@xxxxxxxxxxxxxx, zeus@xxxxxxxxxxxxxx