David DeSimone <[EMAIL PROTECTED]> wrote on Mon, 23 Aug 1999:
>     save-hook  ~A     >
> 
> This hook matches all messages and suggests a default save folder of
> ">", which expands to "=received" by default.

...

> It will *also* run the other hooks that match.  Since they occur
> *later*, they can *override* the settings.  Got it yet???  :)

I still don't get it.  I've been thinking of the same problem as Mark,
or at least very similar with just a few different details.

What I was trying to figure how to do was: "How do I specify a default
save folder for every message in folder =foo regardless of other save
hooks, while still having per-message save hook behaviour in other
folders?"

Ie. when I'm in folder =foo, when I press s to save I want Mutt to
suggest my default save folder (whatever I've specified, eg.
=foo-save) always.  That is, regardless of any of the headers etc.
that the message I want to save contains.

While in *other* folders, I want to have a per-message save hooks, eg.
based on sender, recipient address, subject and whatever else I have in
my save hooks.

How can I do this?  Save hooks don't let you match based on the folder
(this would make the problem trivial), and there's no way to negate the
effects of other save hooks while I'm folder =foo (for matching
messages) that I know of.  Also, if I use something like

  folder-hook .    save-hook . >
  folder-hook =foo save-hook . =foo-save

... to set the default, that won't really work because the "save-hook ."
won't override the previous definition, AFAIK.


This isn't a critical problem by any means, in fact I'm living happily
without it.  I was merely thinking of reorganizing my mail reading
method for some folders and that would have required being able to do
what I've described above. :-)


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Warning: Dates in the calendar are closer than they appear.

Reply via email to