Jim Seavey | 26 Jul 20:16

new recipe filter...

Hi,

I have several users who receive email from one or more specific person(s) 
who think it is their appointed task in life to send out the absolute 
largest email's that they possibly can.

The vast majority of the stuff that is sent are jokes and other such 
trivia.

All email on our system is filtered using procmail to remove spam.

We have a global archiving of a copy of each incoming email that is the 
first thing that happens in the global procmail process.

The second thing the global procmail process does is send large email's 
directly to the users default incoming mail box; larger being greater than 
2MB so they do not cause procmail problems.

The following is the filter to move large email's into the users home 
directory.

:0 f
* > 2048000
| ${FORMAIL} -A"X-Note: Oversize/Not Filtered"

Works a treat.

This recipe is run prior to the individual users procmail recipes.  I would 
like to be able add a condition to this recipe that allows me to include 
specific From: email addresses that will  send the large email being sent 
by specific email addresses to /dev/null  and any others to be sent to the 
users default mail box. This way I can police the continual offenders who 
eat up disk space with this type of stuff.

How do I code this?

I already remove the messages on a daily basis from the users backup file 
based on the From: email address.

This may sound Draconian to some but we do not have the luxury of allowing 
this kind of stuff eat up disk space; especially when people are out of the 
office and do not check their email for some time.

Thanks.

Jim

Gmane