The RFC 2282 for emails have the below ABNF for quoted-string.
quoted-string = [CFWS]
DQUOTE *([FWS] qcontent) [FWS] DQUOTE
[CFWS]
I googled and foundthat CFWS is Comments, Folding, Whitespaces. I know what whitespaces are but don't what comments and folding is in terms of ABNF in an email address.
Also what does [FWS] inside *() mean? The double quotes can have 0 or more occurences of qcontent preceded by Folding and whitespaces?
This is very confusing. References to understand ABNF would be much appreciated.
This isn't part of the generic ABNF syntax (currently defined in RFC 5234, although RFC 2234 was the definition of ABNF in play at the time that RFC 2282 was written). Rather,
FWS
andCFWS
are special tokens defined in the email RFC itself (see section 3.2.3 of RFC 2822, or section 3.2.2 of RFC 5322, which obsoleted RFC 2822 in 2008).From RFC 5322: