From a046c34fbac060f4678e82db5f4cfaeda7019eb3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 6 Jul 2006 00:08:06 +0000 Subject: Skip SA check for large mails git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@151 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- split-mailman-mails-and-discard-and-save | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/split-mailman-mails-and-discard-and-save b/split-mailman-mails-and-discard-and-save index 45e449f..48df9eb 100755 --- a/split-mailman-mails-and-discard-and-save +++ b/split-mailman-mails-and-discard-and-save @@ -158,6 +158,10 @@ def runnoerrors(command, input) end def sa_check(message) + if message.length > 250000 + return ["Unsure", "File over 250000 Bytes in size, SA check skipped", 0] + end + out = runnoerrors(['spamc', '-R'], message) line1 = out.shift matchdata = /^([-0-9.]+)/.match line1 -- cgit v1.2.3