After updating to build 579, cannot create or forward email containing chinese character in subject line from device.

It's perfect to create such emails from device and just messing up the subject line when forward email before update.

In the log file you can find that is UnicodeDecode Error caused by sendmail.pyc and smartforward.pyc respectively.

As these two pycs call python library header.py in your system and you should have the source code of header.py, I have worked out a solution to address the above mentioned problem by modifying header.py to handle the unicode conversion error. Now I can create, forward and forward emails from my device containing chinese character perfectly!

If anyone encounters the same problem, you may do the same thing before Novell patches the system:

Change from (around line 69):
# If no encoding, just return the header
header = str(header)
To:
try:
# If no encoding, just return the header
header = str(header)
except UnicodeEncodeError:
header = str(header.encode('ascii', 'xmlcharrefreplace'))

and change from (around line 132):
# None means us-ascii but we can simply pass it on to h.append()
if charset is not None and not isinstance(charset, Charset):
charset = Charset(charset)
To:
# None means us-ascii but we can simply pass it on to h.append()
if charset is not None and not isinstance(charset, Charset):
charset = Charset(charset)
else:
charset = Charset('utf-8')


Novell once again shows its poor software quality assurance before publishing new version. It often breaks something when new version is published. Even the problem is obvious.