Re: Messing with message-hooks
On 2003-10-28, Leo Breebaart <leo@xxxxxxxxxx> wrote:
> Hi all,
>
> I have a mutt configuration problem and I've reached the point where I
> no longer have any idea whether what I'm trying to achieve is even
> possible, so I am turning to the list for help.
>
> My problem is this. There are a number of messages that, if they exhibit
> certain characteristics, should always be saved to a certain folder. So
> I figured I'd use a combination of message-hook and
> save-hook for that, e.g. as follows:
>
> message-hook "~h foo | ~t fuu-me@mydomain" "save-hook ~A +foo-folder"
>
> Works like a charm.
>
> Except that once I hit such a foo-message, the save-hook is installed
> for all other messages as well, and so *everything* gets saved to
> 'foo-folder' from then on.
So how about replacing that with:
save-hook "~h foo | ~t fuu-me@mydomain" +foo-folder
HTH,
Gary
--
Gary Johnson | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA