procmail
[Top] [All Lists]

Re: reporting erro form a mailing lists

2001-08-20 07:01:38
Hi all,
        i've solved my problem, and now i post here the solution, for who
would be interested (and for soem critic or suggestion).

:0:                                                                             
* ^FROM_DAEMON                                                                  
 {                                                                              
 
   :0B:                                                                         
   
   | grep -v @lastminutetour.com | grep -x To:(_dot_)*(_at_)(_dot_)* | cut -f2 
-d ' ' >> ./disabled 
 }                                                                              
 
/dev/null                                                                       
                                                                                
:0:                                                                             
* ^Subject.*Undeliver.*                                                         
  {                                                                             
  
  :0B:                                                                          
  
  | grep -v @lastminutetour.com | grep -x To:(_dot_)*(_at_)(_dot_)* | cut -f2 
-d ' ' >> ./disabled 
  }                                                                             
  
/dev/null                                                                       
                                                                                
:0:                                                                            
! user1,user2  

I've used the second rule, because some m$ server, like the one at
compaq.com, send error message with the address postmaster, and procmail
doesn't match on FROM_DAEMON.
Thanks for any suggestion.

_______________________________________________
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>