diff options
-rwxr-xr-x | split-mailman-mails-and-discard-and-save | 2 |
1 files changed, 1 insertions, 1 deletions
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 |