On 03/04/2004 2:24 PM, Jim Ramsay wrote:

> I think your 
> solution will just work for .forward and .forward-default, which is not 
> quite what I want to do.  I want to have .forward-tmda and 
> .forward-tmda-default working, and I don't think postfix can ever do 
> that on its own.

Postfix can handle the .forward-tmda already.  maildrop can take care of all
the rest when Postfix falls back to .forward-default.  So, a
.forward-tmda-default could be handled in a .mailfilter file like this:

  if ($EXTENSION =~ /^tmda-ext1-ext2$/)
    {
      to whatever
    }

  if ($EXTENSION =~ /^tmda-ext1$/)
    {
      to wherever
    }

...and so on.  In this case, actually, regexp matching isn't needed, but you
get the idea.

You just need to change the comparison on EXTENSION to match whatever you
like and place them in the order you want them handled.  maildrop and
regular expressions are quite powerful, so there are many possibilities
other than the above, but the basic idea is the same; match on the extension
and do something.

-- 
Ron Bickers
Logic Etc, Inc.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to