View Issue Details

IDProjectCategoryView StatusLast Update
0005004SOGoActiveSyncpublic2020-04-26 12:39
Reporterbgaussen Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformAppleOSiOSOS Version13.4.1
Product Version4.3.0 
Summary0005004: SendMail with emojis in To headers rejected with status 120
Description

Hi,

When sending an email with iPhone Mail, to an address having emojis in the part outside of <> are rejected.
Sogo EAS debug logs report a Status 120 error code.

Exemple of the To: header :

To: =?utf-8?Q?Test_=F0=9F=90=88=F0=9F=90=96_Test?= <test.test@toto.com>

Steps To Reproduce
  1. Create a contact with emoji in its name : Test? ? Test
  2. Add a regular email address : test.test@toto.com
  3. In Mail app, create a new mail, select the new contact as To:
  4. Send email
  5. Mail is being rejected.
Additional Information

Sogo EAS Debug log looks like this :

<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<SendMail xmlns="ComposeMail:">
<Status>120</Status>
</SendMail>

452B5A450C5</ClientId>
<SaveInSentItems/>
<MIME>Q29udGVudC1UeXBlOiB0ZXh0L3BsYWluOw0KCWNoYXJzZXQ9dXRmLTgNCkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IGJhc2U2NA0KRnJvbTogYmVuQHRyZXoub3JnDQpNaW1lLVZlcnNpb246IDEuMCAoMS4wKQ0KU3ViamVjdDogVGVzdA0KTWVzc2FnZS1JZDogPDIwMDRFNTQzLTEzMzktNEU0MC04RkQzLUY0NTJCNUE0NTBDNUB0cmV6Lm9yZz4NCkRhdGU6IEZyaSwgMTAgQXByIDIwMjAgMTQ6NTE6MjYgKzAyMDANClRvOiA9P3V0Zi04P1E/VGVzdF89RjA9OUY9OTA9ODg9RjA9OUY9OTA9OTZfVGVzdD89IDx0ZXN0QHRvdG8uY29tPg0KDQo3N3UvRFFvTkNrVnVkbTk1dzZrZ1pHVWdiVzl1SUdsUWFHOXVaUT09DQo=</MIME>
</SendMail>

TagsNo tags attached.

Activities

tfu

tfu

2020-04-26 12:39

reporter   ~0014282

I traced down the problem to parseQText (NGMailAddressParser.m). There mkStrObj is called which doesn't handle wide characters.
I sent an email to Ludovic to discuss a potential fix.

Issue History

Date Modified Username Field Change
2020-04-10 12:54 bgaussen New Issue
2020-04-26 12:39 tfu Note Added: 0014282