Skip to content

bad CC returned on pasted email in cc field when sending a password messages #5309

@martgil

Description

@martgil

Description: The FlowCrypt secure compose is unable to send email on a certain email address that is copy and pasted into the CC field.

Stack trace:

--------- BUG REPORT ----------

[name]
composer: send: bad request (errMsg: Bad CC recipient)

[stack]
    at BrowserExtension.prepareBugReport (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/browser/browser-extension.js:8:44)
    at ComposeErrModule.handleSendErr (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/elements/compose-modules/compose-err-module.js:115:61)
    at async ComposeSendBtnModule.extractProcessSendMsg (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/elements/compose-modules/compose-send-btn-module.js:117:21)

url: chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/elements/compose.htm?frameId=frame_oDNWAIndcy&acctEmail=[SCRUBBED]&parentTabId=1779525868%3A0


[error]
{
  "status": 400,
  "url": "https://flowcrypt.com/shared-tenant-fes/api/v1/message",
  "responseText": "{\"code\":400,\"message\":\"Bad CC recipient\",\"details\":\"Invalid RFC 5322 mailbox ​User NAME <test@example.com>\"}",
  "statusText": "Bad Request",
  "resMsg": "Bad CC recipient",
  "resDetails": "Invalid RFC 5322 mailbox ​User NAME <test@example.com>"
}

[details]
{}

Steps to reproduce:

Sample email address that would trigger the error: ​Test ADDDRE <f.test@example.com>

  1. Use the FlowCrypt secure compose and compose a password-protected message.
  2. In the To field, put user1@example.com. For the CC field, copy the above email address payload and paste it directly into the CC field. The FlowCrypt browser extension will parse the email address from it and render it to the extension page successfully.
  3. Provide an email body and a password and send the email.
  4. Notice you'll get an error message. click 'ok' and you'll be taken to the bug report submission page where the error description is described as the above.

Reference [reported by a user under customer domain]: https://mail.google.com/mail/u/human@flowcrypt.com/#inbox/FMfcgzGtwDCPsZMXDWZcJkDGLmqxDtsr

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions