You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking into purebred-mua/purebred#515 I've thought of using Data.IMF.Text for the mutt alias parsing. However I think it can't handle non-ascii characters in the display name.
The current definition is
phrase::ParserT.Text
phrase = foldMany1Sep (singleton '') word
while word is defined as:
isAtext::IsCharc=>c->Bool
isAtext =AText.inClass "-A-Za-z0-9!#$%&'*+/=?^_`{|}~". toChar
atext::CharParsingfsa=> (fs) a
atext = satisfy isAtext
atom:: (Alternative (fs), CharParsingfsa, SMs) => (fs) s
atom = optionalCFWS *> foldMany1 (singleton . toChar <$> atext) <* optionalCFWS
word:: (Alternative (fs), CharParsingfsa, SMs) => (fs) s
word = atom <|> quotedString
which would fail for non-ASCII characters. A round trip fails:
parseOnly address $ renderAddress $ Single $ Mailbox (Just "Füh") (AddrSpec "f" (DomainDotAtom $ pure "example.test"))
The text was updated successfully, but these errors were encountered:
Looking into purebred-mua/purebred#515 I've thought of using
Data.IMF.Text
for the mutt alias parsing. However I think it can't handle non-ascii characters in the display name.The current definition is
while word is defined as:
which would fail for non-ASCII characters. A round trip fails:
The text was updated successfully, but these errors were encountered: