Re: [Mailman-Developers] Does bouncing by header regexps really work?
John Viega <viega@list.org> writes:
I won't have the chance to look until later this week, but I'm wondering if it may be a case sensitivity problem?
OK, this seems to help: --- maillist.py~ Thu Jun 4 23:12:28 1998 +++ maillist.py Tue Jun 9 19:39:45 1998 @@ -718,13 +718,13 @@ continue else: try: - h, e = re.split(":[ ]*", line) - all.append((h, e, line)) + h, e = re.split(":[ ]*", stripped) + all.append((h, e, stripped)) except ValueError: # Whoops - some bad data got by: self.LogMsg("config", "%s - " "bad bounce_matching_header line %s" - % (self.real_name, `line`)) + % (self.real_name, `stripped`)) return all @@ -748,7 +748,7 @@ and f[l] == ":" and string.lower(field) == string.lower(f[0:l])): # Non-continuation line - trim header name: - subjs.append(f[l+1:]) + subjs.append(f[l+2:]) elif not subjs: # Whoops - non-continuation that matches? subjs.append(f)
participants (1)
-
Janne Sinkkonen