David --

...and then David Ellement said...
% On 000317, at 20:08:03, David T-G wrote:
% > 
% >   send-hook . 'set folder="~/Mail"'
% >   send-hook 'long|but|definite|regexp' 'set folder="~/Mail/subdir"'
% > 
% > Well, sort of.  If I want to save some other email that doesn't belong in
% > ~/Mail/subdir *before* I've sent something else, $folder doesn't get
% > reset.
% 
% Try:
% 
%     set folder="~/Mail"
% 
% in addition to the send-hooks.

Thanks for the idea, but I already have that -- and that would only work
once per muttrc reading anyway.  My problem is that $folder gets reset to
.../APD (just like I requested) but that I have to do something to invoke
a hook -- and that's either change a folder or send (start) some mail --
to find a way to un-reset it.

I was thinking about a macro set (assuming first finding an available
key, but let's just assume ^f) like ^fa for .../APD and ^fu for .../UGA
and so on and ^f or ^fd for default.  It would be easier if mutt had a
real scripting language that would let me specify

  - do something
  - wait for input
  - do something else

but that's a while off.

Now that I think about it, though, maybe I can use %o in a save-hook, or
even in an fcc-hook, and never reset $folder.  Something like

  fcc-save-hook 'some}long}expression' =APD/%o
  fcc-save-hook 'other|expression' =UGA/%o

might do the trick...  In fact, I think I'll send this to the whole list
for comment and since I can't play to implement it right now :-)


% 
% -- 
% David Ellement

Thanks again!


:-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.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*

PGP signature

Reply via email to