<<< Date Index >>>     <<< Thread Index >>>

Re: specifying generic save-hook



On April 06 (08:54 EDT), Stewart V. Wright wrote:
> * Chris Grossmann <chris@xxxxxxxxxxxx> [040406 13:20]:
> > Is this a way to set up a generic rule like this?  For
> > instance, I might get email from "foobar.com", can I write a
> > rule such that it will be saved automatically to "=foobar",
> > without having to enter in a new save-hook?
> 
> I use the following
> 
>   fcc-save-hook   ~A      +People/%O.gz
> 
> Is this the sort of thing you are looking for?

If so, I don't know how to do it.

I want to save messages from "user@xxxxxxxxxxx" into the
folder "=company".

For instance:

save-hook company.com =company

This does what I want, but I want it to be general, such
that "user@xxxxxxxxxxxx" goes to "=company2", and
"someotheruser@xxxxxxxxxxxxxxxxxxxxx" goes into
"=somerandomcompany".