hal King <[EMAIL PROTECTED]> wrote on Fri, 22 Sep 2000:
> I've written a small perl script to take addresses like the 't' command in
>       pine.

I wonder what the t command in Pine does?  Well, since I have to guess,
I suppose it picks out email addresses from the current email.

> Yes, I know there is a python script, but I like perl and wanted to
>       hack mutt. Odd thing is, after the script runs input seems to be 'hung'.
>       I after the process has gone back to mutt, I have to hit a key before I
>       get any command to mutt. I've closed STDIN, STDOUT and the alias file. What
>       am I missing?

I don't know.  Maybe there is a "press any key to continue" prompt, but
it's not visible for some reason?

Try changing the value of $wait_key, if you have it set.

> One other question I have not found the answer to in the docs or the email
>       archive: can one macro be made to both run a script and then source a file?

The answer is:  Yes.


(Oh, how?  Something like:

  macro index <f10> "<shell-escape>scriptname<enter><enter-command>source 
.muttrc<enter>

... and possibly add unsetting the value of $wait_key and then setting
it afterwards.)


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
                   "Stay Alive!" -- Big Country

Reply via email to