From 9d906befda08fd8c8f1e6b6de425b5574859e250 Mon Sep 17 00:00:00 2001 From: klm Date: Mon, 4 May 1998 03:44:30 +0000 Subject: Removed change_boundary() - not necessary, now that the Digest class is doing the right thing right off the bat. --- Mailman/Utils.py | 18 +----------------- modules/mm_utils.py | 18 +----------------- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 033e68dc8..2b9ef7d2c 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -5,7 +5,7 @@ message and address munging, a handy-dandy routine to map a function on all the maillists, the Logging routines, and whatever else doesn't belong elsewhere.""" -__version__ = "$Revision: 478 $" +__version__ = "$Revision: 508 $" import sys, string, fcntl, os, random, regsub, re @@ -388,19 +388,3 @@ class StampedLogger(Logger): Logger.write(self, ' ' + l) else: Logger.write(self, l) - -def change_boundary(text, boundary, reboundary): - """Substitute good boundary for simplistic one in mime messages.""" - got = [] - open_b = "--" + boundary - close_b = "--" + boundary + "--" - open_reb = "--" + reboundary - close_reb = "--" + reboundary + "--" - for i in string.split(text, '\n'): - if i == open_b: - got.append(open_reb) - elif i == close_b: - got.append(close_reb) - else: - got.append(i) - return string.join(got, '\n') diff --git a/modules/mm_utils.py b/modules/mm_utils.py index 033e68dc8..2b9ef7d2c 100644 --- a/modules/mm_utils.py +++ b/modules/mm_utils.py @@ -5,7 +5,7 @@ message and address munging, a handy-dandy routine to map a function on all the maillists, the Logging routines, and whatever else doesn't belong elsewhere.""" -__version__ = "$Revision: 478 $" +__version__ = "$Revision: 508 $" import sys, string, fcntl, os, random, regsub, re @@ -388,19 +388,3 @@ class StampedLogger(Logger): Logger.write(self, ' ' + l) else: Logger.write(self, l) - -def change_boundary(text, boundary, reboundary): - """Substitute good boundary for simplistic one in mime messages.""" - got = [] - open_b = "--" + boundary - close_b = "--" + boundary + "--" - open_reb = "--" + reboundary - close_reb = "--" + reboundary + "--" - for i in string.split(text, '\n'): - if i == open_b: - got.append(open_reb) - elif i == close_b: - got.append(close_reb) - else: - got.append(i) - return string.join(got, '\n') -- cgit v1.2.3-70-g09d2