Bug 144675

Summary: mailman's "cleanarch" does not work
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Bastian Friedrich <bastian>
Component: NetworkAssignee: Heiko Rommel <heiko.rommel>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bastian Friedrich 2006-01-22 19:49:53 UTC
Hi,

mailman's "cleanarch" script does not work in SuSE 10 (9.3 also affected). The following bug is reported (independent of parameters):

#:/usr/local/mailman/bin # ./cleanarch --help
Traceback (most recent call last):
  File "./cleanarch", line 62, in ?
    fre = re.compile(r'[\041-\071\073-\0176]+')
  File "/usr/lib/python2.4/sre.py", line 180, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.4/sre.py", line 227, in _compile
    raise error, v # invalid expression
sre_constants.error: bad character range

Looks like pyhton problem to me...? Script works fine on Debian 3.1 ;)

Thx,
  Bastian
Comment 1 Bastian Friedrich 2006-01-22 21:25:52 UTC
Not a python problem, but a mailman problem. Fix is in CVS already:

--- test-mailman-2.1/bin/cleanarch      2005-08-26 19:40:16.000000000 -0700
+++ test-mailman/bin/cleanarch  2006-01-22 12:22:55.156250000 -0800
@@ -59,7 +60,7 @@
 # From RFC 2822, a header field name must contain only characters from 33-126
 # inclusive, excluding colon.  I.e. from oct 41 to oct 176 less oct 072.  Must
 # use re.match() so that it's anchored at the beginning of the line.
-fre = re.compile(r'[\041-\071\073-\0176]+')
+fre = re.compile(r'[\041-\071\073-\176]+')
Comment 2 Heiko Rommel 2006-01-23 14:35:39 UTC
I concurr.
This goes back to 2.1.4.

Preparing updates for SLES9 and STABLE.
Queueing updates for 9.2/9.3/10.0.
Comment 3 Heiko Rommel 2006-01-25 14:42:46 UTC
Done.