Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To field Procmail help



 On Sun, Jul 27, 2008 at 06:13:52AM -0400, Scott R. Ehrlich wrote: 
> I want to implement a .procmailrc rule that dumps any message that 
> doesn't have my name next to my email address in the TO field to my 
> junk mail. 

I suspect the best way to accomplish this is to create a rule that 
matches your name + e-mail and save matches to your inbox.  Then, at 
the end of your rules, create a default rule that sends everything 
left over into your spam folder. 

You can still do this even if there are other criteria by which you 
want to filter.  It would look something like this: 

  :0 
  * ^TO_My Name <[hidden email]> 
  { 
  :0 
        * $criteria1 
        $mbox1 

        :0 
        * $criteria2 
        $mbox2 

        # everything else that matched name + e-mail 
        :0 
        $INBOX 
  } 

  # end of positive matches - spam 
  :0 
  $SPAM_FOLDER 

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02 
-=-=-=-=- 
This message is posted from an invalid address.  Replying to it will result in 
undeliverable mail due to spam prevention.  Sorry for the inconvenience. 

_______________________________________________ 
Discuss mailing list 
[hidden email] 
http://lists.blu.org/mailman/listinfo/discuss
 


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org