mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

Support nested comments #248

Open rockwotj opened 3 years ago

rockwotj commented 3 years ago

It seems that the address parser doesn't support nested comments, but the RFC allows it, here's the relevant bits from rfc2822

ccontent        =       ctext / quoted-pair / comment
comment         =       "(" *([FWS] ccontent) [FWS] ")"