summaryrefslogtreecommitdiff
path: root/split-mailman-mails-and-discard-and-save
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-07-06 00:08:06 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-07-06 00:08:06 +0000
commita046c34fbac060f4678e82db5f4cfaeda7019eb3 (patch)
treedc3be9b4bea70986a55e6b7ce5eae586443a72c8 /split-mailman-mails-and-discard-and-save
parent60a2a64e6059eb2f9019c8fdda283e8eb6ba06cc (diff)
Skip SA check for large mails
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@151 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'split-mailman-mails-and-discard-and-save')
-rwxr-xr-xsplit-mailman-mails-and-discard-and-save4
1 files changed, 4 insertions, 0 deletions
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