aboutsummaryrefslogtreecommitdiffstats
path: root/src/body.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-11-07 10:33:01 +0000
committerVincent Richard <[email protected]>2004-11-07 10:33:01 +0000
commit5868c87506b82dbb5d8916d61b9e1528a755b686 (patch)
tree87defd00ebd954fbad3d9786b9a28bebaa3735ba /src/body.cpp
parentAdded tests for media type. (diff)
downloadvmime-5868c87506b82dbb5d8916d61b9e1528a755b686.tar.gz
vmime-5868c87506b82dbb5d8916d61b9e1528a755b686.zip
Moved encodeAndFold() and decodeAndUnfold() functions from "base.cpp" to "text.cpp".
Diffstat (limited to 'src/body.cpp')
-rw-r--r--src/body.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/body.cpp b/src/body.cpp
index 78f92b4d..da279b9b 100644
--- a/src/body.cpp
+++ b/src/body.cpp
@@ -258,8 +258,10 @@ void body::generate(utility::outputStream& os, const string::size_type maxLineLe
if (!prologText.empty())
{
- encodeAndFoldText(os, text(word(prologText, getCharset())), maxLineLength, 0,
- NULL, encodeAndFoldFlags::forceNoEncoding | encodeAndFoldFlags::noNewLineSequence);
+ text prolog(word(prologText, getCharset()));
+
+ prolog.encodeAndFold(os, maxLineLength, 0,
+ NULL, text::FORCE_NO_ENCODING | text::NO_NEW_LINE_SEQUENCE);
os << CRLF;
}
@@ -279,8 +281,10 @@ void body::generate(utility::outputStream& os, const string::size_type maxLineLe
if (!epilogText.empty())
{
- encodeAndFoldText(os, text(word(epilogText, getCharset())), maxLineLength, 0,
- NULL, encodeAndFoldFlags::forceNoEncoding | encodeAndFoldFlags::noNewLineSequence);
+ text epilog(word(epilogText, getCharset()));
+
+ epilog.encodeAndFold(os, maxLineLength, 0,
+ NULL, text::FORCE_NO_ENCODING | text::NO_NEW_LINE_SEQUENCE);
os << CRLF;
}