procmail
[Top] [All Lists]

Re: splitting Delivered-to headers

2008-03-08 12:59:57
On Sat, 08 Mar 2008 19:03:06 +0000, John K Masters wrote:
Sorry if this is too simple but I've looked for answers and cannot seem
to get exactly what I need.

There is one server receiving mail for several users who have accounts on the
server. I am using fetchmail to fetch these to a local machine with one
user (me). I need to filter these according to the Delivered-To header
and then into separate boxes according to the To or From header.

My first thought was to do 

:0
* ^Delivered-to:account1(_at_)server1(_dot_)net
{
      secondary recipes
}

:0
* ^Delivered-to:account2(_at_)server1(_dot_)net
{
      secondary recipes
}

Is it possible to do an INCLUDERC within the braces so that I can keep
the recipes in a separate file?

:0
 * ^Delivered-to:account(1|2)1(_at_)server1\(_dot_)net
 {
        secondary recipes
 }

Or, maybe I'm unclear about the details of what you're trying to do.

Jonesy
-- 
  Marvin L Jones    | jonz          | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
    *** Killfiling google posts: <http://jonz.net/ng.htm>

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>