Re: Using message-hook to run messages through a filter

2002-01-02 Thread Andre Majorel

On 2002-01-01 10:03 +, Benjamin Smith wrote:

 On Mon, Dec 31, 2001 at 01:36:03PM +0100, Andre Majorel wrote:
  On 2001-12-28 18:22 +0100, Roman Neuhauser wrote:
  
I thought that 

  message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle

would do the trick but Mutt says pipe-message: unknown command.
   
   It's pipe-message (incl. the angle brackets) isn't it?
  
  I've tried that too and Mutt doesn't like it either.
 
 If you're trying to call a function you need to push or exec it onto the
 keyboard buffer ie.
 
 message-hook ~f joe@blow\.com push
 'pipe-message/usr/local/bin/unmangleReturn' (untested)

When hitting [return] on one of joe's messages, Mutt displays the
message with more(1) or some other pager, displays press any key
to continue and displays it again ad nauseam.

 or

 message-hook ~f joe@blow\.com exec pipe-message
 /usr/local/bin/unmangle (untested)

When hitting [return] on one of joe's messages, Mutt pauses for
one second and then displays the message normally (*without*
filtering it).

Obviously, I don't understand pipe-message.

Thanks, folks.

-- 
André Majorel URL:http://www.teaser.fr/~amajorel/
std::disclaimer (Not speaking for my employer);



Re: Using message-hook to run messages through a filter

2002-01-01 Thread Benjamin Smith

(Neat feature: tagged reply)

On Mon, Dec 31, 2001 at 01:36:03PM +0100, Andre Majorel wrote:
 On 2001-12-28 18:22 +0100, Roman Neuhauser wrote:
 
   I thought that 
   
 message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
   
   would do the trick but Mutt says pipe-message: unknown command.
  
  It's pipe-message (incl. the angle brackets) isn't it?
 
 I've tried that too and Mutt doesn't like it either.

If you're trying to call a function you need to push or exec it onto the
keyboard buffer ie.

message-hook ~f joe@blow\.com push 'pipe-message/usr/local/bin/unmangleReturn' 
(untested)
or
message-hook ~f joe@blow\.com exec pipe-message /usr/local/bin/unmangle (untested)

Although the method I use is in the next message as works 100%:

On Mon, Dec 31, 2001 at 01:37:39PM +0100, Andre Majorel wrote:
 On 2001-12-28 17:15 +0100, Nicolas Rachinsky wrote:
  On Fri, Dec 28, 2001 at 05:09:05PM +0100, Andre Majorel [EMAIL PROTECTED]
  wrote:
   I thought that 
   
 message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
   
   would do the trick but Mutt says pipe-message: unknown command.
  
  I would try
  message-hook . unset display_filter
  message-hook ~f joe@blow\.com set display_filter=/usr/local/bin/unmangle
  
  but this is untested.
 
 Thanks, this works fine, at least for the viewing part of the
 deal. I guess we need a reply_filter variable.


-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22068/pgp0.pgp
Description: PGP signature


Re: Using message-hook to run messages through a filter

2001-12-31 Thread Andre Majorel

On 2001-12-28 11:19 -0500, Dan Boger wrote:
 On Fri, Dec 28, 2001 at 05:09:05PM +0100, Andre Majorel wrote:
  There is one guy out there who has particular and very annoying
  writing idiosyncracies (think Prince or B1FF). I wrote a filter to
  translate his prose to something less obnoxious. Now how do I
  configure Mutt to automatically pipe his messages through the
  filter when reading or replying to him ?
  
  I thought that 
  
message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
  
  would do the trick but Mutt says pipe-message: unknown command.
 
 well, not sure how to do it with mutt - I have written a similar filter
 (for a 40 year old that spells like he's a teenage hacker wannabe), and
 I just run it via procmail...  It is funny to see my replies to him
 spelled correctly (including the quoted part :)

Neat idea, although changing the message that early is a bit
radical, even for me. :-)

-- 
André Majorel [EMAIL PROTECTED]
http://www.teaser.fr/~amajorel/



Re: Using message-hook to run messages through a filter

2001-12-31 Thread Andre Majorel

On 2001-12-28 18:22 +0100, Roman Neuhauser wrote:

  I thought that 
  
message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
  
  would do the trick but Mutt says pipe-message: unknown command.
 
 It's pipe-message (incl. the angle brackets) isn't it?

I've tried that too and Mutt doesn't like it either.

-- 
André Majorel [EMAIL PROTECTED]
http://www.teaser.fr/~amajorel/



Re: Using message-hook to run messages through a filter

2001-12-31 Thread Andre Majorel

On 2001-12-28 17:15 +0100, Nicolas Rachinsky wrote:
 On Fri, Dec 28, 2001 at 05:09:05PM +0100, Andre Majorel [EMAIL PROTECTED]
 wrote:
  I thought that 
  
message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
  
  would do the trick but Mutt says pipe-message: unknown command.
 
 I would try
 message-hook . unset display_filter
 message-hook ~f joe@blow\.com set display_filter=/usr/local/bin/unmangle
 
 but this is untested.

Thanks, this works fine, at least for the viewing part of the
deal. I guess we need a reply_filter variable.

-- 
André Majorel [EMAIL PROTECTED]
http://www.teaser.fr/~amajorel/



Re: Using message-hook to run messages through a filter

2001-12-30 Thread David T-G

Andre  Dan --

...and then Andre Majorel said...
% 
% There is one guy out there who has particular and very annoying
% writing idiosyncracies (think Prince or B1FF). I wrote a filter to
...

...and then Dan Boger said...
% 
% well, not sure how to do it with mutt - I have written a similar filter
% (for a 40 year old that spells like he's a teenage hacker wannabe), and
...

These sound great.  Care to post them?


Happy Holidays to all

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg22020/pgp0.pgp
Description: PGP signature


Using message-hook to run messages through a filter

2001-12-28 Thread Andre Majorel

There is one guy out there who has particular and very annoying
writing idiosyncracies (think Prince or B1FF). I wrote a filter to
translate his prose to something less obnoxious. Now how do I
configure Mutt to automatically pipe his messages through the
filter when reading or replying to him ?

I thought that 

  message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle

would do the trick but Mutt says pipe-message: unknown command.

-- 
André Majorel URL:http://www.teaser.fr/~amajorel/
std::disclaimer (Not speaking for my employer);



Re: Using message-hook to run messages through a filter

2001-12-28 Thread Nicolas Rachinsky

On Fri, Dec 28, 2001 at 05:09:05PM +0100, Andre Majorel [EMAIL PROTECTED] wrote:
 I thought that 
 
   message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
 
 would do the trick but Mutt says pipe-message: unknown command.

I would try
message-hook . unset display_filter
message-hook ~f joe@blow\.com set display_filter=/usr/local/bin/unmangle

but this is untested.

Nicolas



Re: Using message-hook to run messages through a filter

2001-12-28 Thread Dan Boger

On Fri, Dec 28, 2001 at 05:09:05PM +0100, Andre Majorel wrote:
 There is one guy out there who has particular and very annoying
 writing idiosyncracies (think Prince or B1FF). I wrote a filter to
 translate his prose to something less obnoxious. Now how do I
 configure Mutt to automatically pipe his messages through the
 filter when reading or replying to him ?
 
 I thought that 
 
   message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
 
 would do the trick but Mutt says pipe-message: unknown command.

well, not sure how to do it with mutt - I have written a similar filter
(for a 40 year old that spells like he's a teenage hacker wannabe), and
I just run it via procmail...  It is funny to see my replies to him
spelled correctly (including the quoted part :)

HTH

Dan

-- 
Dan Boger
[EMAIL PROTECTED]



msg21980/pgp0.pgp
Description: PGP signature


Re: Using message-hook to run messages through a filter

2001-12-28 Thread Roman Neuhauser

 Date: Fri, 28 Dec 2001 17:09:05 +0100
 From: Andre Majorel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Using message-hook to run messages through a filter
 
 There is one guy out there who has particular and very annoying
 writing idiosyncracies (think Prince or B1FF). I wrote a filter to
 translate his prose to something less obnoxious. Now how do I
 configure Mutt to automatically pipe his messages through the
 filter when reading or replying to him ?
 
 I thought that 
 
   message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
 
 would do the trick but Mutt says pipe-message: unknown command.

It's pipe-message (incl. the angle brackets) isn't it?
-- 
FreeBSD 4.4-STABLE
6:21PM up 2 days, 4:59, 11 users, load averages: 0.00, 0.01, 0.00