rjbs / Email-MIME

perl library for parsing MIME messages
20 stars 30 forks source link

Allow "0" as boundary value #64

Closed pali closed 4 years ago

pali commented 5 years ago

Reading RFC 2046, the BNF for allowed boundary characters allows 1-70 characters, so a single "0" is acceptable:

 boundary := 0*69<bchars> bcharsnospace
 bchars := bcharsnospace / " "
 bcharsnospace := DIGIT / ALPHA / "'" / "(" / ")" /
                  "+" / "_" / "," / "-" / "." /
                  "/" / ":" / "=" / "?"

Fixes: https://github.com/rjbs/Email-MIME/issues/63