summaryrefslogtreecommitdiff
path: root/split-mailman-mails-and-discard-and-save
diff options
context:
space:
mode:
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