Roundcube Community Forum

Release Support => Pending Issues => Topic started by: psidlo on March 02, 2012, 06:56:25 AM

Title: UTF8 Encoded from: -> quotes -> quotes with backslash -> SMTP 501
Post by: psidlo on March 02, 2012, 06:56:25 AM
Hi,

I am using RC v0.7.1 and have following issue:

- when someone sends message with encoded From line to server with RC, for example (sent from Squirrelmail):
From: =?utf-8?B?InRlc3TDrcSNZWsi?=
then RC shows Sender "testíček" in list of messages - it have quotes unlike other messages.

- then I try to reply to this message, I see this in pre-filled Recipient:
"\"testíček\""
so the syntax od Recipient is incorrect

- when I try reply without stripping backslashs, message is rejected (correctly from mailserver view):
[02-Mar-2012 12:52:27] Invalid response code received from server (501):
[02-Mar-2012 12:52:27 +0100]: SMTP Error: SMTP error: Failed to add recipient '"\\"testíček\"
Do you have any idea how to correct this problem/where should I look/what should i check?

Thanks in advance.

Pavel
Title: UTF8 Encoded from: -> quotes -> quotes with backslash -> SMTP 501
Post by: alec on March 02, 2012, 08:10:03 AM
Changeset 5945 (http://trac.roundcube.net/changeset/5945) should fix the issue.
Title: UTF8 Encoded from: -> quotes -> quotes with backslash -> SMTP 501
Post by: psidlo on March 04, 2012, 02:42:15 PM
Thank you for quick and functional solution. After patching existing installation with Changeset 5945 a quoted sender is correctly formated and SMTP server accepts message again.

However, pre-filled Recipient is still shown incorrectly in UI, ie. "\"testíček\"" . It is just cosmetic issue I think. Should I report this according to Howto_ReportIssues (http://trac.roundcube.net/wiki/Howto_ReportIssues) in RoundCube Trac?

Another questionable issue are double quotes (") in From: header field of message. Although sender included double quotes into encoded text incorrectly (Squirrelmail in this case: =?utf-8?B?InRlc3TDrcSNZWsi?= ) all modern MUAs (AFAIK except Outlook Express) are stripping them. So message list in IMAP folders is easier readable for users. But this is beyond topic of this thread.