procmail
[Top] [All Lists]

Re: block Attached files

2000-09-27 17:28:16
Collin suggested to gmurad(_at_)unimedsp(_dot_)com(_dot_)br,

|     BadFile=no
|     :0
|     * ^content-type:.*application/mp3
|     { BadFile=yes }
|     :0E
|     * ^content-type:.*multipart/mix
|     * B ?? ^content-type:.*application/mp3
|     { BadFile=yes }
| 
|     ...
| 
|     :0
|     * BADFILE ?? yes
|     { 
|       EXITCODE=73 
| 
|       :0
|       /dev/null
|     }
 

Here's an equivalent:

 :0HB
 * ^^(.+$)*(Content-Type:.*multipart/mix.*$(.+$)*$(.*$)*)?\
     Content-Type:.*application/mp3
 {
  EXITCODE=73

  :0
  /dev/null
 }

If there are no more rcfiles named on procmail's command line (and there
almost never will be), you can do this instead of saving to /dev/null:

 :0HB
 * ^^(.+$)*(Content-Type:.*multipart/mix.*$(.+$)*$(.*$)*)?\
     Content-Type:.*application/mp3
 { EXITCODE=73 HOST }


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