Allow spaces to appear in mailbox display name without encoding or quoting. Encode or quote if CR or LF is present.
This commit is contained in:
parent
b05039de3d
commit
5c2d078b4f
@ -369,7 +369,7 @@ void mailbox::generate(utility::outputStream& os, const string::size_type maxLin
|
|||||||
// We have to encode the name:
|
// We have to encode the name:
|
||||||
// - if it contains characters in a charset different from "US-ASCII",
|
// - if it contains characters in a charset different from "US-ASCII",
|
||||||
// - and/or if it contains one or more of these special chars:
|
// - and/or if it contains one or more of these special chars:
|
||||||
// SPACE TAB " ; , < > ( ) @ / ? . = :
|
// CR LF TAB " ; , < > ( ) @ / ? . = :
|
||||||
|
|
||||||
// Check whether there are words that are not "US-ASCII"
|
// Check whether there are words that are not "US-ASCII"
|
||||||
// and/or contain the special chars.
|
// and/or contain the special chars.
|
||||||
@ -386,7 +386,8 @@ void mailbox::generate(utility::outputStream& os, const string::size_type maxLin
|
|||||||
{
|
{
|
||||||
switch (*c)
|
switch (*c)
|
||||||
{
|
{
|
||||||
case ' ':
|
case '\r':
|
||||||
|
case '\n':
|
||||||
case '\t':
|
case '\t':
|
||||||
case ';':
|
case ';':
|
||||||
case ',':
|
case ',':
|
||||||
|
Loading…
Reference in New Issue
Block a user