Howto run a command in message hooks (was: Re: How to send a return receipt)

2007-10-24 Thread Patrick Schoenfeld
it wouldn't because w/o the question _I_ would forget to send the return receipt). Something like this can automatically be triggered only by message hooks. But as the solution is extern (= a script), how do i call it from within the message hook? I added a hook like this: message-hook ~h Return

Re: Howto run a command in message hooks (was: Re: How to send a return receipt)

2007-10-24 Thread Patrick Shanahan
the question _I_ would forget to send the return receipt). Something like this can automatically be triggered only by message hooks. But as the solution is extern (= a script), how do i call it from within the message hook? I added a hook like this: message-hook ~h Return-Receipt-To: |/home

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 10:47:58AM -0400, Patrick Shanahan wrote: * Patrick Schoenfeld [EMAIL PROTECTED] [10-24-07 10:42]: And even though the specified file is a valid executable script mutt says (when I open this mail in the pager): first *guess* w/b that ~/.mutt/return_receipt script

Re: Howto run a command in message hooks

2007-10-24 Thread Dave Evans
On Wed, Oct 24, 2007 at 04:40:33PM +0200, Patrick Schoenfeld wrote: message-hook ~h Return-Receipt-To: |/home/schoenfeld/.mutt/return_receipt And even though the specified file is a valid executable script mutt says (when I open this mail in the pager):

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 04:53:23PM +0200, Patrick Schoenfeld wrote: What information do you expect me to presentate? Eventually my whole mutt configuration just to ask why one specific message-hook (which I presentated) is not working? There is only one information that I see that I really

Re: Howto run a command in message hooks

2007-10-24 Thread Patrick Schoenfeld
Hi Christian, On Wed, Oct 24, 2007 at 04:56:13PM +0200, Christian Brabandt wrote: Do you mind formating your message with a width 80 chars? no, thats no problem. Depending on what your want try either shell-escape or pipe-message Hm. That and what Dave Evans wrote works, at least partially.

Re: Howto run a command in message hooks

2007-10-24 Thread Christian Brabandt
it wouldn't because w/o the question _I_ would forget to send the return receipt). Something like this can automatically be triggered only by message hooks. But as the solution is extern (= a script), how do i call it from within the message hook? I added a hook like this: message-hook ~h Return

Re: Howto run a command in message hooks

2007-10-24 Thread Christian Brabandt
Hi Patrick! On Wed, 24 Oct 2007, Patrick Schoenfeld wrote: On Wed, Oct 24, 2007 at 04:56:13PM +0200, Christian Brabandt wrote: Do you mind formating your message with a width 80 chars? no, thats no problem. Depending on what your want try either shell-escape or pipe-message Hm.

Re: Howto run a command in message hooks

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 05:30:45PM +0200, Christian Brabandt wrote: If you have used pipe-message I think your stdin has changed to the messages you piped. And read expects your answer from that filehandle. So you might try explicitly setting your tty with read yn /dev/tty Okay, that might be

Re: Howto run a command in message hooks

2007-10-24 Thread Dave Evans
On Wed, Oct 24, 2007 at 05:38:55PM +0200, Patrick Schoenfeld wrote: On Wed, Oct 24, 2007 at 05:30:45PM +0200, Christian Brabandt wrote: If you have used pipe-message I think your stdin has changed to the messages you piped. And read expects your answer from that filehandle. So you might try

Re: Howto run a command in message hooks

2007-10-24 Thread Rado S
=- Patrick Schoenfeld wrote on Wed 24.Oct'07 at 17:18:54 +0200 -= and waits for an input (read yn), but mutt adds its Press any key to continue So it seems that mutt already answers the question (what it shouldn't do). Also if I do press return to that question, it restarts the script and

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Shanahan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Patrick Schoenfeld [EMAIL PROTECTED] [10-24-07 11:01]: On Wed, Oct 24, 2007 at 04:53:23PM +0200, Patrick Schoenfeld wrote: What information do you expect me to presentate? Eventually my whole mutt configuration just to ask why one specific

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 01:39:17PM -0400, Patrick Shanahan wrote: ls -la ~/.mutt/return_receipt You should work on you ability to _read_ mails others write _properly_. I told you, that the file _is_ executable. And as you eventually noticed someone else already pointed the right solution out to

Re: message-hooks - more examples

2002-03-25 Thread David T-G
Rob -- ...and then Feztaa said... % % Alas! Sven Guckes spake thus: % Sven [mmh.. ye... deeper.. oh, yeah..] % % You sure that's a massage you're getting? ;) No, it's a m-e-ssage, but it's from one of those lists ;-) :-D -- David T-G * It's easier to fight for

Re: message-hooks - more examples

2002-03-24 Thread Rob 'Feztaa' Park
Alas! Sven Guckes spake thus: Sven [mmh.. ye... deeper.. oh, yeah..] You sure that's a massage you're getting? ;) -- Rob 'Feztaa' Park [EMAIL PROTECTED] -- Of course there's no reason for it, it's just our policy. msg26037/pgp0.pgp Description: PGP signature

Re: message-hooks - more examples

2002-03-24 Thread Sven Guckes
* Rob 'Feztaa' Park [EMAIL PROTECTED] [2002-03-25 05:33]: Alas! Sven Guckes spake thus: Sven [mmh.. ye... deeper.. oh, yeah..] You sure that's a massage you're getting? ;) I dunno... but I'm certainly HOOKED. hehe Sven

message-hooks

2002-01-16 Thread Dan Boger
I'm trying to do something here, maybe it's not doable - who knows? what I want is that whenever I write or reply to a certain address, that message will be automagically BCCed to another address. I tried using send-hooks, but those do not seem to affect the current message, only subsequent

Re: message-hooks

2002-01-16 Thread Roman Neuhauser
Date: Wed, 16 Jan 2002 08:36:55 -0500 From: Dan Boger [EMAIL PROTECTED] To: Mutt Users [EMAIL PROTECTED] Subject: message-hooks I'm trying to do something here, maybe it's not doable - who knows? what I want is that whenever I write or reply to a certain address, that message

Re: message-hooks

2002-01-16 Thread Dan Boger
On Wed, Jan 16, 2002 at 07:21:28PM +0100, Roman Neuhauser wrote: what I want is that whenever I write or reply to a certain address, that message will be automagically BCCed to another address. I tried using send-hooks, but those do not seem to affect the current message, only subsequent

Re: message-hooks

2002-01-16 Thread Dan Boger
On Wed, Jan 16, 2002 at 01:16:59PM -0500, Dan Boger wrote: On Wed, Jan 16, 2002 at 07:21:28PM +0100, Roman Neuhauser wrote: what I want is that whenever I write or reply to a certain address, that message will be automagically BCCed to another address. I tried using send-hooks, but