On Thu, Mar 08, 2001 at 08:14:49AM -0800, Gary Johnson ([EMAIL PROTECTED]) 
wrote:
> On Thu, Mar 08, 2001 at 11:02:03AM -0500, Rich Lafferty wrote:
> 
> > I tried playing with changing the value of "folder" with a send-hook,
> > but since it doesn't reset immediately after, it mungs up normal
> > operations (since I still want "folder" to just be "~/mail/").
> > 
> > Is there a straightforward way to do such a thing?
> 
> If your send-hooks work except for the resetting problem, the solution
> is easy.  Just add the following lint to your muttrc _above_ the other
> send-hooks so that it will be executed before the others.
> 
>     send-hook . 'set folder=~/Mail'

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
soon as the message I'm sending is on its way.

Hrm. This gets me very close:

  folder-hook . 'set folder=~/mail'
  send-hook concordia.ca 'set folder=~/mail/conu'
  send-hook !concordia.ca 'set folder=~/mail/personal'

except that going from the send screen to the index doesn't trigger a
folder-hook. (That'd be handy if it did, though, wishlist folks.)

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.

   -Rich

-- 
------------------------------ Rich Lafferty ---------------------------
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC                 (514) 848-7625
------------------------- [EMAIL PROTECTED] ----------------------

Reply via email to