Summary | national characters absolutely bad with cyrus sieve |
Queue | Ingo |
Queue Version | 1.0.1 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | risko (at) risko (dot) hu |
Created | 06/10/2005 (7335 days ago) |
Due | |
Updated | 07/25/2005 (7290 days ago) |
Assigned | 07/24/2005 (7291 days ago) |
Resolved | 07/24/2005 (7291 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
The translated comments are rather for the end users than the administrators.
New Attachment: ingo-sieve-comment-utf8.patch
Anyway, now I read your coding_standards document (better lately, than
never) and I found, that I should use include_once, so I fix this in
this patch.
A bigger fix is utf8'ized comments, since it is very annoying if you
can't pipe the generated output to a 'recode UTF-8..ISO-8859-2' as a
system administrator because of ISO-8859-2 comments (which are invalid
UTF-8 characters).
Anyway, I think, that it is not a good idea to have localized comments
in a generated config file. System administrators know english well
enough and if someone is doing some shell magic based on english
comments it can be a bg surprise that he has got non-english users
with localized chinese autocommented sieve data... :)
So _() should be removed from around comment strings which will go to
sieve scripts, I think.
Thanks,
Gergely
the whole file, but used String::convertChraset in
http://cvs.horde.org/co.php/ingo/lib/Script/sieve.php?r=1.79 ??
Thanks,
Gergely
State ⇒ Resolved
State ⇒ Assigned
New Attachment: ingo.patch
In return, the fix is a lot more elegant now (to be precise: now it is
correct ;) ).
And it also fixes another issue, ingo serialized accented vacation
data wrong if database environment was iso-8859-2, while user
environment was utf-8 (for the string length it substituted the length
of the utf-8 string, but it wrote iso-8859-2 string as the string).
Fortunately, the same problem did at decoding, so it only bugged the
user if he (after saving a vacation string) changed the browser
charset from utf-8 to iso-8859-2.
If something is not clear, ask!
Thanks for your patience,
Gergely
Taken from
State ⇒ Feedback
clarifications about the patch. I only received an email notification
about the last comment an hour ago.
If everything goes well, I can provide a clear patch, with horde
functions and with a configurable workaround for buggy sieve
implementation at the weekend. I will also try to notify the cyrus
developers again, but my previous news article was lost by gmane...
Gergely
Assigned to
State ⇒ Assigned
State ⇒ Feedback
methods like MIME::encode() and String::convertCharset().
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ national characters absolutely bad with cyrus sieve
Queue ⇒ Ingo
New Attachment: ingo-utf8-cyrus-sieve.patch
State ⇒ Unconfirmed
don't get into cyrus sieve, since the specification says, that they
must be UTF-8 encoded in sieve scripts.
Proposal:
- send the form with accept-charset="utf-8" (my solution do this)
OR
- encode the returned information from NLS::getCharset() to utf-8
Affected input fields: subject, body.
2. If the header contains accents, it is not enough to encode it to
utf-8, but we have
to mime encode it, because of buggy mail servers (like Cyrus Sieve),
which doesn't do this themselves.
Affected input fields: subject, from. (my patch only fix the problem
on the subject field).