Author Topic: UTF8 Encoded from: -> quotes -> quotes with backslash -> SMTP 501  (Read 4987 times)

Offline psidlo

  • Newbie
  • *
  • Posts: 2
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

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
UTF8 Encoded from: -> quotes -> quotes with backslash -> SMTP 501
« Reply #1 on: March 02, 2012, 08:10:03 AM »
Changeset 5945 should fix the issue.

Offline psidlo

  • Newbie
  • *
  • Posts: 2
UTF8 Encoded from: -> quotes -> quotes with backslash -> SMTP 501
« Reply #2 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 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.
« Last Edit: March 05, 2012, 10:36:43 AM by psidlo »