[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] procmail recipie for email size
- Subject: Re: [vps-mail] procmail recipie for email size
- From: Godwin Stewart <gstewart@xxxxxxxxxxx>
- Date: Mon, 17 May 2004 21:24:07 +0200
On Mon, 17 May 2004 14:38:41 -0400, Chris Edwards <chris.edwards@xxxxxxxxxx>
wrote:
> I need to allow some large emails to bypass the spam filters. I was
> wondering what size I should go with? 200KB?
Sounds about right. The largest worm mail in regular circulation at the
moment is SWEN, which is between about 140KB and 160KB in size.
> Would the following recipe allow me to do that? Are the numbers in bytes?
Not quite, and yes.
> Is the number represented below 1 kilobyte or 1 megabyte?
Strictly speaking, neither. One megabyte would be 1048576 bytes :)
> :0
> * B ?? > 1024000
> $DEFAULT
Don't forget the lock on the output file, and there's no need to say
explicitly that you want to work on the body if the only condition is the
size of the mail. So, your recipe for shunting through mails greater than
200KB in size would be:
:0:
* > 204800
$DEFAULT
--
G. Stewart -- gstewart@xxxxxxxxxxx -- gstewart@xxxxxxxxxxx
Registered Linux user #284683 (Slackware 9.0, Linux 2.6.6)
--------------------------------------------------------------
Q: Why is Christmas just like a day at the office?
A: You do all of the work and the fat guy in the suit
gets all the credit.
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).
Main Index |
Thread Index