diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-07-06 00:08:06 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-07-06 00:08:06 +0000 |
commit | a046c34fbac060f4678e82db5f4cfaeda7019eb3 (patch) | |
tree | dc3be9b4bea70986a55e6b7ce5eae586443a72c8 /split-mailman-mails-and-discard-and-save | |
parent | 60a2a64e6059eb2f9019c8fdda283e8eb6ba06cc (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-x | split-mailman-mails-and-discard-and-save | 4 |
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 |