getheader-setheader
i have submitted this as bug, but i get some expertise in mailman python routines ;)) so : The problem, if i use special characters in the subject, some of the words appear two times in the subject ...
To: <boldi@budapest.hu>, <teszt@carnation.hu> Subject: =?iso-8859-2?B?Rnc6IGZ1cmEg6WdpIG1hc2luYSBu9nZlbGkgbWFnYXNz4WfhdCA=?= =?iso-8859-2?B?bmFwaG9zc3phdCBr7Xbpbg==?= Date: Fri, 21 May 1999 01:04:51 +0200
This is the original header. Note, that the Subject: header has TWO lines.. Getheader is parsing well. But setheader is going to do:
else:
for i in range(len(self.headers)):
if (string.lower(self.headers[i][:len(name)+1]) ==
string.lower(name) + ':'):
self.headers[i] = '%s: %s' % (name, value)
(1.0rc1-message.py [ line 173 of 307 (56%), character 5740 of 9761 (58%) ])
Because of this, setheader () takes out ONE line, not BOTH. I am not using python, so dont know even the basic commands, would anyone help me to correct this bug and sending me before the next release comes out? ;)
I think it should be no problem with my instructions
boldi -answer in private(i'm not a developer ) boldi@budapest.hu
participants (1)
-
Bencsath Boldizsar