* senator galt on Tuesday, February 05, 2008 at 12:05:57 -0700
> On Feb 4, 2008 2:31 PM, Christian Ebert <[EMAIL PROTECTED]> wrote:
>> You can try out viewhtmlmsg from my python package at
>> <http://www.blacktrash.org/hg/muttils/>.
>> 
> I installed muttils and based on the suggestions in doc/example-muttrc,
> I added this to my .muttrc
> macro index <f7> "\
> <enter-command> set my_wait_key=\$wait_key wait_key=no<enter>\
> <pipe-message>viewhtmlmsg -s<enter>\
> <enter-command> set wait_key=\$my_wait_key &my_wait_key<enter>\
> " "view HTML (safe) in browser"
> 
> But when I start my mutt, I get these errors:
> Error in /home/sengalt/.muttrc, line 257: <enter-command>: unknown command
> Error in /home/sengalt/.muttrc, line 258: <pipe-message>viewhtmlmsg:
> unknown command
> Error in /home/sengalt/.muttrc, line 259: <enter-command>: unknown command
> Error in /home/sengalt/.muttrc, line 260:  view: unknown command
> source: errors in /home/sengalt/.muttrc
> 
> What's the reason for this?
> 
> Info about my mutt:
> bash$ mutt -v
> Mutt 1.5.15+20070412 (2007-04-11)

Does your Mutt version already support $my_variables?

You might want to start with a simpler entry for testing:

macro index <f7> "<pipe-message>viewhtmlmsg -s<enter>"

Does the script work if called directly?

c
-- 
__   _    _         _  __  _               _    
\ \ | |__| |__ _ __| |_\ \| |_ _ _ __ _ __| |_  
 \ \| '_ \ / _` / _| / /\ \  _| '_/ _` (_-< ' \   http://www.blacktrash.org/
  \_\_.__/_\__,_\__|_\_\ \_\__|_| \__,_/__/_||_|  Jabber-ID: [EMAIL PROTECTED]

Reply via email to