From 4fa8df9226fe00c991b5d22907327f7ba1eacf4a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 6 Jul 2006 00:10:12 +0000 Subject: length does not work for RMail::Message objects, do a to_s git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@152 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- split-mailman-mails-and-discard-and-save | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'split-mailman-mails-and-discard-and-save') diff --git a/split-mailman-mails-and-discard-and-save b/split-mailman-mails-and-discard-and-save index 48df9eb..ab02340 100755 --- a/split-mailman-mails-and-discard-and-save +++ b/split-mailman-mails-and-discard-and-save @@ -158,7 +158,7 @@ def runnoerrors(command, input) end def sa_check(message) - if message.length > 250000 + if message.to_s.length > 250000 return ["Unsure", "File over 250000 Bytes in size, SA check skipped", 0] end -- cgit v1.2.3