diff options
| author | klm | 1998-05-04 03:44:30 +0000 |
|---|---|---|
| committer | klm | 1998-05-04 03:44:30 +0000 |
| commit | 9d906befda08fd8c8f1e6b6de425b5574859e250 (patch) | |
| tree | 053adef41a75387d26fde61fe687e2965e0c2585 | |
| parent | c78249987027f1c9b21c834ad329f8bda3b2fb2d (diff) | |
| download | mailman-9d906befda08fd8c8f1e6b6de425b5574859e250.tar.gz mailman-9d906befda08fd8c8f1e6b6de425b5574859e250.tar.zst mailman-9d906befda08fd8c8f1e6b6de425b5574859e250.zip | |
| -rw-r--r-- | Mailman/Utils.py | 18 | ||||
| -rw-r--r-- | 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') |
