[wplug] Global procmail rule to send to two local users

Kevin Squire gentgeen at linuxmail.org
Tue Sep 25 22:25:51 EDT 2007


I know I went over this before with the group, but now I am trying to
clean some things up, so looking to change my setup some.

I use /etc/fetchmailrc to grab 3 different email accounts.  
  1 all mine,             gentgeen at linuxmail.org
  1 me and my wife share, account1 at comcast.net
  1 is my 9 yr. olds.     account2 at comcast.net

All of us have our own logins/setup on the machine already.

In the /etc/fetchmailrc file, I use the mda file to first add a header
field of "X-Original-Account" and then send it off to procmail with the
right user.  For example (all one line):

mda '/usr/bin/formail -f -A "X-Original-Account: account2 at comcast.net"
| /usr/bin/procmail -d daughter'


Now at the very bottom of my /etc/procmailrc I would like to add a rule
that does something like this:


# now to send a copy of all comcast email to kevin's mailbox
:0 c
* ^X-Original-Account:.*comcast.net
SEND TO KEVIN



of course, I need some help with that part.

Can I just do a "! kevin"  or should I do more.  Everything I was
googling showed how to send a copy to an external account - but I need
it to just go to two different local accounts - mine and the "correct"
one.




-- 
http://gentgeen.homelinux.org

#############################################################
 Associate yourself with men of good quality if you esteem    
 your own reputation; for 'tis better to be alone then in bad 
 company.        - George Washington, Rules of Civility


More information about the wplug mailing list