Hi Guy!

On Do, 08 Mai 2014, Guy Gold wrote:

> Greetings List. 
> 
> I'm trying to add this command:
> 
> vim -c ':r !cat /tmp/file' to be used in a send hook :
> 
> send-hook ~t...@domain.com set editor= "vim ':r !cat /tmp/bla'"
> 
> The contents of /tmp/file should then be 'cat > ' into the new
> email. 
> While the above works fine from the main declaration in
> my muttrc (set editor=)_, I can't seem to hit it with the right
> syntax in the send hook. Your help is appreciated. 

I am surprised, this works for your normal editor command. From my 
understanding, Vim should try to open 2 files, namely ':r !cat /tmp/bla' 
and the /tmp/mutt-... (which is your actual mail template.

To make this work, you should at least add the -c command to vim, to 
make sure, you want the argument be interpreted as a command to execute 
on startup.

regards,
Christian
-- 
I'm a soldier, not a diplomat.  I can only tell the truth.
                -- Kirk, "Errand of Mercy", stardate 3198.9

Reply via email to