procmail
[Top] [All Lists]

Re: Big Brother functionality

2003-03-18 19:18:44
Daryle,

Is there a way of using the match operator \/ in order to match the
person that way I'd eliminate the lengthy list of people? I do need
individual not a big glob of people. I need to deliver to individual
Inbox.Employee1 style in the bigbrother inbox. I'm trying to learn how
to use the match operator as well. I was thinking of something like 

:0c
* ^TO_\/@domain.com
/home/bigbrother/Maildir/.$MATCH/

Would this work and save me from having to micro manager hirings and
firings?

Thanks for your time.

Jayson

On Tue, 2003-03-18 at 18:01, Daryle A. Tilroe wrote:
I think this is pretty easy; how about something like
this in your /etc/procmailrc depending on if you want
to include or exclude (note that if you have your MTA
deliver direct to procmail you do not need .forward's):

---------------------------------------------
# exclude from bigbrother
:0 H
* !^To:(_dot_)*thepresident(_at_)mycompany(_dot_)com
{
   :0c:
   /somepath/BigBrotherInbox
}
---------------------------------------------

OR

---------------------------------------------
# include in bigbrother
:0 H
* ^To:(_dot_)*spyonemployee1(_at_)mycompany(_dot_)com|\
   ^To:(_dot_)*spyonemployee2(_at_)mycompany(_dot_)com|\
   ^To:(_dot_)*spyonemployee2(_at_)mycompany(_dot_)com|\
   ^To:(_dot_)*spyonemployee4(_at_)mycompany(_dot_)com|\
   ^To:(_dot_)*spyonemployee5(_at_)mycompany(_dot_)com|\
   ^To:(_dot_)*spyonemployee6(_at_)mycompany(_dot_)com|\
   ^To:(_dot_)*spyonemployee7(_at_)mycompany(_dot_)com
{
   :0c:
   /somepath/BigBrotherInbox
}
---------------------------------------------
-- 
Jayson Henkel <jhenkel(_at_)sterlingcrane(_dot_)ca>
Sterling Crane


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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