> I have modified some parts of squirrelmail 1.4.4
> 1. in function/mime.php, there's a line
>    $filename=rawurlencode($filename);
>    this would make the chinese filename encoded into
> something unwanted. so I've comment it out.
> 2. the squirrelmail cannot wrap line as it does in
> English. It's because chinese characters doesn't have
> spaces in between a sentence, so a whole paragraph
> would also be seen as a single word, and stay in the
> same line. (I've questioned about this issue in the
> mailing list before) I've removed the <pre></pre> tag,
> so that the browser would know to make it swap line
> when it reach the frame end.
> 3. some chinese characters will be seen as illegal
> characters in the addressbook's nickname. It's because
> some chinese characters contain this "\" symbol, which
> is seen to be illegal. I've just comment out the
> checking for illegal characters. This may have some
> risk, but up till now, no problem is discovered.
>
> I've also modified some other aspects for
> customization which are not related to chinese
> problem.
>
> Instead of upgrading to 1.4.5, I think I would rather
> install it into a new directory to test whether the
> problem can be solved. Actually, I've also installed
> 1.5.0 for testing.

Try 1.5.1cvs snapshots. Not 1.5.0.

> I have used mbstring in other part of my system to
> convert utf-8 into big5 and gb2312. so, it should
> support Chinese encoding.

See encodeHeaderBase64 function in functions/mime.php
http://cvs.sf.net/viewcvs.py/squirrelmail/squirrelmail/functions/mime.php?r1=1.346&r2=1.350&diff_format=u

You also need sq_mb_list_encodings() and sq_lowercase_array_vals()
functions from 1.5.1cvs functions/strings.php

http://cvs.sf.net/viewcvs.py/squirrelmail/squirrelmail/functions/strings.php?rev=1.232&view=markup

These changes should fix filename and subject encoding problems in
SquirrelMail. If subject or attachment is created with older SquirrelMail
version, it will remain broken. Headers are not encoded correctly and
decoding functions display them the way they are encoded.

Can you send me sample email encoded in big5 or gb2312 and screenshot that
shows how it should look like? Quotes from LaoTze's Taoteking, Confucius's
Analects and 螽 from The Classic of Odes 诗经 that I use for testing have
spaces.

Word wrapping fixes are attached to squirrelmail bug tracker #1043576

https://sourceforge.net/tracker/index.php?func=detail&aid=1043576&group_id=311&atid=423679

They are written for 1.4.5 and I think that they don't solve wrapping
problems if sentence does not have spaces.

-- 
Tomas


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to