Closed JaSpa closed 3 years ago
There are mail addresses which can be decoded successfully, but trying to decode the re-encoded version fails:
decode
encoded
decode "a\\\"b@c" -- Right (EmailAddr "a\"b@c") encode $ decode "\"a\\\"b\"@c" ^?! _Right -- "a\"b@c" decode $ encode $ decode "\"a\\\"b\"@c" ^?! _Right -- Left (ParserFailedError "local part > quoted content > '\"': Failed reading: satisfy" :| [])
I feel the string returned from encode … should always succeed to decode again.
encode …
So sorry, this is not correct. I didn't realize I hadn't rolled back all of my local changes at that point!
There are mail addresses which can be
decode
d successfully, but trying todecode
the re-encoded
version fails:I feel the string returned from
encode …
should always succeed todecode
again.