ProtonMail / WebClients

Monorepo hosting the proton web clients
GNU General Public License v3.0
4.5k stars 568 forks source link

Slahes in e-mail addresses cause issues with contact features #145

Closed emersion closed 3 years ago

emersion commented 5 years ago

Describe the bug Some special characters like / are stripped from the contact view's addresses. Additionally, when sending an e-mail to this address, the receiver's address is not matched with the contact (see below).

To Reproduce Steps to reproduce the behavior:

  1. Add a contact with a slash in it, e.g. ~emersion/mrsh-dev@lists.sr.ht
  2. Receive an e-mail from this contact
  3. Go to contacts list, slashes are stripped
  4. Go to e-mail received from or sent to this contact, it's as is the contact didn't exist (popover shows "Add to contacts" instead of "See contact details")
  5. When composing an e-mail to this address, contact settings like PGP signature/encryption aren't applied

All of this happens with v3.15.19.

Expected behavior Slashes are valid characters in e-mail addresses. See https://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-an-email-address

Screenshots

XeroOl commented 9 months ago

I'm still having issues with slash / characters in email addresses. It works when viewed from the contact page, but the slashes are still stripped when attempting to send the email.

/ present in contact page, as expected image the slash is present / missing, causing the message to be sent to the wrong address image where the slash is missing

This is in Proton Mail5.0.35.9 β