diff options
author | Vincent Richard <[email protected]> | 2009-11-12 15:40:56 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2009-11-12 15:40:56 +0000 |
commit | 90f838232f9744102e3a2dde8af751394c43dde9 (patch) | |
tree | 8480537a247561093d09dd19e58e8acaaae330ef /src/mailbox.cpp | |
parent | Auto-detect filename. Renamed 'filename' argument to 'filepath' for disambigu... (diff) | |
download | vmime-90f838232f9744102e3a2dde8af751394c43dde9.tar.gz vmime-90f838232f9744102e3a2dde8af751394c43dde9.zip |
Quote mailbox name instead of encoding it whenever it's possible.
Diffstat (limited to 'src/mailbox.cpp')
-rw-r--r-- | src/mailbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailbox.cpp b/src/mailbox.cpp index 2f625216..f6df5165 100644 --- a/src/mailbox.cpp +++ b/src/mailbox.cpp @@ -415,7 +415,7 @@ void mailbox::generate(utility::outputStream& os, const string::size_type maxLin bool newLine = true; m_name.encodeAndFold(os, maxLineLength, pos, &pos, - forceEncode ? text::FORCE_ENCODING : 0); + text::QUOTE_IF_POSSIBLE | (forceEncode ? text::FORCE_ENCODING : 0)); if (pos + m_email.length() + 3 > maxLineLength) { |