[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: Scott Wiersdorf <scottw@xxxxxxxxxxxx>
- Date: Mon, 17 May 2004 13:17:22 -0600
On Mon, May 17, 2004 at 02:38:41PM -0400, Chris Edwards wrote:
> Hi
>
> I need to allow some large emails to bypass the spam filters. I was
> wondering what size I should go with? 200KB?
This would depend on how big the smallest message you want to get
through is. You might also consider whitelisting certain senders or
looking for other peculiarities of the message instead of scanning
size if you're not sure how small you should make the test.
> Would the following recipe allow me to do that?
Yes. You should use locking, however, when you deliver to a file. Add
a trailing ':' to your flags:
:0:
> Are the numbers in bytes?
Yes.
> Is the number represented below 1 kilobyte or 1 megabyte?
One megabyte.
> :0
> * B ?? > 1024000
> $DEFAULT
>From the procmailrc manpage:
< Check if the total length of the mail is shorter than the speci-
fied (in decimal) number of bytes.
> Analogous to '<'.
Scott
--
Scott Wiersdorf
scottw@xxxxxxxxxxxx
======================================================================
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