Re: auto pipe to script on viewing message with output to pager

2009-10-10 Thread Eric Smith
This macro which could be an autocommand of course,
works okay but does not send the output to pager which I want.

macro index z 
view-attachmentssearchtextenterpipe-entrytranslate_scriptenter

-- 
- Eric Smith
Eric Smith said:
 I want to run a translation script automatically when viewing a
 mail in the pager.  The output of the script should be displayed
 in the pager.
 
 What I do now is go into the attachment menu and then pipe to the 
 script.  Works perfectly but is too manual.
 But the automatic method should also send only the text part
 to the script (and pager) and only the body and not the headers
 although Subject: would be nice I guess.
 
 Thank you
 
 Eric Smith
   GOOGLE TRANSLATION com numeração à linguagem [pt] *:
 1] Eu quero executar um script de tradução automática ao ver um e-
 mail no pager.
 
 2] A saída do script deve ser exibido no pager.
 
 3] O que quero fazer agora é ir para o menu de penhora e, em seguida,
 tubulação para o script.
 
 4] Funciona perfeitamente, mas é muito manual.
 
 5] Mas o método automático também deve enviar apenas uma parte do texto
 para o script (e pager) e apenas o corpo e não os cabeçalhos embora
 Assunto: seria bom eu acho.
 
 6] Obrigado Eric Smith
 
 
  Original de novo na língua [en]: *
 1] I want to run a translation script automatically when viewing a mail in
 the pager.
 2] The output of the script should be displayed in the pager.
 3] What I do now is go into the attachment menu and then pipe to the
 script.
 4] Works perfectly but is too manual.
 5] But the automatic method should also send only the text part to the
 script (and pager) and only the body and not the headers although
 Subject: would be nice I guess.
 6] Thank you Eric Smith


Re: auto pipe to script on viewing message with output to pager

2009-10-10 Thread Christian Brabandt
Hi Eric!

On Sa, 10 Okt 2009, Eric Smith wrote:

 I want to run a translation script automatically when viewing a
 mail in the pager.  The output of the script should be displayed
 in the pager.

display filter might be what you want.

regards,
Christian
-- 
  • Do you pine for the days when men were men and wrote their own device
drivers?
   Torvalds, Linus and David Diamond (2001). Just for Fun: The Story of an
Accidental Revolutionary, Collins.


Re: auto pipe to script on viewing message with output to pager

2009-10-10 Thread Simon Ruderich
On Sat, Oct 10, 2009 at 12:11:02PM +0200, Eric Smith wrote:
 I want to run a translation script automatically when viewing a
 mail in the pager.  The output of the script should be displayed
 in the pager.

 What I do now is go into the attachment menu and then pipe to the
 script.  Works perfectly but is too manual.
 But the automatic method should also send only the text part
 to the script (and pager) and only the body and not the headers
 although Subject: would be nice I guess.

 Thank you

 Eric Smith

Hi Eric,

You could use the display_filter option with a custom script
which does the filtering.

Hope this helps,
Simon
-- 
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9


signature.asc
Description: Digital signature