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

2007-10-25 Thread Patrick Schoenfeld
Hey Karl, it may have sounded arrogant, but indeed it wasn't intended to sound that. But... On Thu, Oct 25, 2007 at 10:35:31AM +1300, Karl. wrote: > Given that you asked for advice, perhaps you should work on accepting > all advice _graciously_, rather than being arrogant? You'll find it a Yo

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

2007-10-25 Thread Karl.
On Wed, Oct 24, 2007 at 09:37:34PM +0200, Patrick Schoenfeld wrote: > 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_. Given that you asked for advice, perhaps you should

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: 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 specifi

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 scr

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

2007-10-24 Thread Rado S
=- Patrick Schoenfeld wrote on Wed 24.Oct'07 at 16:40:33 +0200 -= > Why? According to what I read this works for macros, why shouldn't > it work for message hooks? Because macros operate on functions, while hooks operate on muttrc commands. See http://WIKI.mutt.org/ -> MuttGuide -> Syntax for det

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 I think your stdin has changed to the > > messages you piped. And read expects your answer from that filehandle. > > So you might try expli

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 05:30:45PM +0200, Christian Brabandt wrote: > > If you have used I think your stdin has changed to the > > messages you piped. And read expects your answer from that filehandle. > > So you might try explicitly s

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 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

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 or > > Hm. That and what Dav

Re: Howto run a command in message hooks

2007-10-24 Thread Christian Brabandt
Hi Patrick! Do you mind formating your message with a width < 80 chars? On Wed, 24 Oct 2007, Patrick Schoenfeld wrote: > I want to write a script that _asks_ the user, if he wants to send a > return receipt (note how that differs from your assumption that a > macro would be suffice. For me it wou

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 or Hm. That and what Dave Evans wrote works, at least partially. Now the script is lau

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 m

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): > > |/home/schoenfeld/.mutt/

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_recei

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

2007-10-24 Thread Patrick Shanahan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Patrick Schoenfeld <[EMAIL PROTECTED]> [10-24-07 10:42]: > I want to write a script that _asks_ the user, if he wants to send a return > receipt (note how that differs from your assumption that a macro would be > suffice. For me it wouldn't because w