Date: Fri, 20 Apr 2007 13:29:21 -0400 From: David Banning <david+dated+1177522163.c2852b@skytracker.ca> To: dan@dpcsys.com Cc: questions@freebsd.org Subject: Re: procmailrc question - solution? Message-ID: <20070420172920.GA91489@skytracker.ca> In-Reply-To: <20070420163612.GA73171@skytracker.ca> References: <20070420154103.GA51017@skytracker.ca> <20070420163612.GA73171@skytracker.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> It seems that anything that is not processed by the global procmailrc
> file is processed by the local .procmailrc file. What I would like to
> do is flag a few users only and send them to the their users .procmailrc
> file. Kind of the reverse of the normal.
>
> If I had to improvise;
>
> :0
> * ^To.*david@banning
> What to put here to send to home .procmailrc
>
> :0
> * ^To.*anyoneelse
> /var/mail/$LOGNAME
I may have found a solution here. It is possible to direct the email
back through procmail again, using the -m option to use the
private rc file;
:0
* ^To.*david@skytracker.ca
|/usr/local/bin/procmail -m /usr/david/.procmailrc
the man page states;
-m Turns procmail into a general purpose mail filter.
seems to work.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070420172920.GA91489>
