procmail
[Top] [All Lists]

I'm getting someone else's mail

1997-11-18 13:32:46
I sometimes get mail that was intended for another person.  My username is
jlloyd and his is jloyd.  I want to come up with a recipe that would figure
out if the mail was supposed to be to him, and if so, forward it to him.  Two
things I thought to check for are: 1) his name in the body (Jesse Loyd), and
2) a from address of user(_at_)mailb(_dot_)harris(_dot_)com (the mailb is the 
important part).

I've never written a recipe that uses scoring, but here's my first guess:

:0 Bh
* -100^0
*   50^1 B ?? Jesse (Loyd)?
*   50^1 ^(From|cc):.*mailb\.harris\.com
! jloyd(_at_)harris(_dot_)com

Any suggestions/corrections/hints?

Thanks,

JcL

-- 
Justin C. Lloyd               Harris Corporation, ISD     Voice  407/984-5558
jlloyd(_at_)harris(_dot_)com             505 John Rodes Blvd.        Fax    
407/984-6323
Unix System Administrator     Melbourne, FL  32935        Office  W3/1806

                      3 days until Amy Grant in Orlando
                  27 days until Sarah McLachlan in Orlando
              28 days until Sarah McLachlan in West Palm Beach

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