From e342c0b9b24dc26399800d486470c674397c5c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Sun, 22 Sep 2002 07:04:13 +0000 Subject: [PATCH] Make klez filter run for mails bigger than 220KB; they are sometimes bigger than that. git-svn-id: https://svn.perl.org/qpsmtpd/trunk@77 958fd67b-6ff1-0310-b445-bb7760255be9 --- Changes | 5 +++++ plugins/klez_filter | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 9c19bb2..ce52275 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,8 @@ +2002/09/22 + Make klez filter run for mails bigger than 220KB; they are sometimes + bigger than that. + + 2002/09/20 Avoid "use of uninitialized variable" warning when the "MAIL" or the "RCPT" command is executed without a parameter. diff --git a/plugins/klez_filter b/plugins/klez_filter index d3ad2be..c169807 100644 --- a/plugins/klez_filter +++ b/plugins/klez_filter @@ -6,10 +6,11 @@ sub register { sub check_klez { my ($self, $transaction) = @_; - # klez files are always around 140K + # klez files are always sorta big .. how big? Dunno. return (DECLINED) - if $transaction->body_size < 60_000 - or $transaction->body_size > 220_000; + if $transaction->body_size < 60_000; + # 220k was too little, so let's just disable the "big size check" + # or $transaction->body_size > 1_000_000; # maybe it would be worthwhile to add a check for # Content-Type: multipart/alternative; here?