On Thu, Mar 08, 2001 at 11:29:23AM -0500, Rich Lafferty wrote:

> Well, with that I end up with
>  
>   send-hook . 'set folder=~/Mail'
>   send-hook concordia.ca 'set folder=~/Mail/conu'
>   send-hook !concordia.ca 'set folder=~/Mail/personal'
> 
> and, as you can see, that first condition never happens. :-) But this
> helped me realize what the problem is -- with your default send-hook,
> it resets "folder" as soon as I go to *send* again. What I need is for
> "folder" to be set as I go to send, and to be reset to "~/Mail/" as

> I'm beginning to think that there *is* no hook that takes place after
> a message is sent, so I can't think of any way to improve on the
> above.

OK, now I think I understand the problem.  I can't think of any hooks
that work the way you want, either.  I did think of something else that
might work, though.

    macro compose y "<send-message>:push :set folder=~/Mail"

I have not tried that to see if it actually works.  One problem with
this approach is that you really need to create such macros for every
command that leaves the compose menu, such as 'q' and 'P', and such a
macro for 'q' would not work if 'postpone' was set to 'ask-yes' or
'ask-no'.

Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | RF Communications PGU
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA

Reply via email to