From mikus@itcomputers.cz Sat Jul 14 15:57:34 2007 From: Jan Mikus To: dev@lists.roundcube.net Subject: Encoding problem Date: Fri, 11 Aug 2006 11:16:39 +0200 Message-ID: <511d8cc4cdac28bf5f51d9f69dd4fbf1@arachne.itcomputers.cz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0554593693751162656==" --===============0554593693751162656== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable There is encoding problem in headers with central european characters. Recipient address "Jan Miku=C5=A1 " after encoding re= turn "=3D?UTF-8?Q?Jan=3D20Miku=3DC5=3DA1=3D20?=3D" (r= ight is "=3D?UTF-8?Q?Jan=3D20Miku=3DC5=3DA1?=3D ") an= d Postfix this header encode to "=3D?UTF-8?Q?Jan=3D20Miku=3DC5=3DA1=3D20 ,\n ?=3D@arachne.itcomputers.cz". --===============0554593693751162656==-- From bob@db.org Sat Jul 14 15:57:34 2007 From: "B. Johannessen" To: dev@lists.roundcube.net Subject: Re: Encoding problem Date: Fri, 11 Aug 2006 14:10:35 +0200 Message-ID: <44DC73BB.4000405@db.org> In-Reply-To: <511d8cc4cdac28bf5f51d9f69dd4fbf1@arachne.itcomputers.cz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6666302021243078563==" --===============6666302021243078563== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Jan Mikus wrote: > Recipient address "Jan Mikuš " after encoding > return "=?UTF-8?Q?Jan=20Miku=C5=A1=20?=" (right > is "=?UTF-8?Q?Jan=20Miku=C5=A1?= ") and Postfix > this header encode to "=?UTF-8?Q?Jan=20Miku=C5=A1=20 > ,\n ?=@arachne.itcomputers.cz". The problem here is the quotes. "Jan Mikuš " is a quoted-string, and if if you place it in an RFC2822 To: header field it will be parsed as just a local-part. With proper quoting, the field should be: "Jan Mikuš" Bob --===============6666302021243078563==-- From martin@bugs.unl.edu.ar Sat Jul 14 15:57:34 2007 From: Martin Marques To: dev@lists.roundcube.net Subject: Re: Encoding problem Date: Fri, 11 Aug 2006 12:07:09 -0300 Message-ID: In-Reply-To: <511d8cc4cdac28bf5f51d9f69dd4fbf1@arachne.itcomputers.cz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8569077412550036164==" --===============8569077412550036164== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Fri, 11 Aug 2006, Jan Mikus wrote: > There is encoding problem in headers with central european characters. > > Recipient address "Jan Mikuÿÿ " after encoding > return "=?UTF-8?Q?Jan=20Miku=C5=A1=20?=" (right is > "=?UTF-8?Q?Jan=20Miku=C5=A1?= ") and Postfix this > header encode to "=?UTF-8?Q?Jan=20Miku=C5=A1=20 > ,\n ?=@arachne.itcomputers.cz". Not only that. If the header has a \n you get wrong visual on the message list. For example: From: "=?iso-8859-1?b?Q+lzYXI=?= E. =?iso-8859-1?b?RO1heg==?=" Is posted to the web browser like this:
cdiaz(a)fce.unl.edu.ar" onclick="return rcmail.command('compose','"César E. Díaz"
cdiaz(a)fce.unl.edu.ar',this)" class="rcmContactAddress" title=""César E. Díaz"
cdiaz (at) fce.unl.edu.ar">César E. Díaz"

cdiaz (at) fce.unl.edu.ar
P.D.: I changed, on purpose @ for (at). -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 --------------------------------------------------------- Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador --------------------------------------------------------- --===============8569077412550036164==--