From b8529f2adeffee6620080cc6b71697e231c3d306 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 17 Jun 2006 13:37:02 +0000 Subject: Rewrite Delivered-To to X-OLD-Delivered-To to avoid mail-loop warnings, 3 git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@138 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 e682f60..c51d7b6 100755 --- a/split-mailman-mails-and-discard-and-save +++ b/split-mailman-mails-and-discard-and-save @@ -240,7 +240,7 @@ def process_mail(filename) # rewrite Delivered-To to X-OLD-Delivered-To to avoid mail loop warnings. m = message.to_s.split(/\n/) new_m = [] - while m.size > 0 and line = m.shift != "" + while m.size > 0 and (line = m.shift) != "" m << line.gsub(/^Delivered-To:/, 'X-OLD-Delivered-To:') end new_m.concat m -- cgit v1.2.3