diff options
author | Vincent Richard <[email protected]> | 2004-11-07 10:33:01 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-11-07 10:33:01 +0000 |
commit | 5868c87506b82dbb5d8916d61b9e1528a755b686 (patch) | |
tree | 87defd00ebd954fbad3d9786b9a28bebaa3735ba /src/mailbox.cpp | |
parent | Added tests for media type. (diff) | |
download | vmime-5868c87506b82dbb5d8916d61b9e1528a755b686.tar.gz vmime-5868c87506b82dbb5d8916d61b9e1528a755b686.zip |
Moved encodeAndFold() and decodeAndUnfold() functions from "base.cpp" to "text.cpp".
Diffstat (limited to 'src/mailbox.cpp')
-rw-r--r-- | src/mailbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailbox.cpp b/src/mailbox.cpp index 1420f738..a144de7b 100644 --- a/src/mailbox.cpp +++ b/src/mailbox.cpp @@ -316,7 +316,7 @@ void mailbox::parse(const string& buffer, const string::size_type position, } else { - decodeAndUnfoldText(name, m_name); + text::decodeAndUnfold(name, &m_name); m_email.empty(); m_email.reserve(address.size()); @@ -405,8 +405,8 @@ void mailbox::generate(utility::outputStream& os, const string::size_type maxLin string::size_type pos = curLinePos; bool newLine = true; - encodeAndFoldText(os, m_name, maxLineLength, pos, &pos, - forceEncode ? encodeAndFoldFlags::forceEncoding : encodeAndFoldFlags::none); + m_name.encodeAndFold(os, maxLineLength, pos, &pos, + forceEncode ? text::FORCE_ENCODING : 0); if (pos + m_email.length() + 3 > maxLineLength) { |