diff options
| author | Vincent Richard <[email protected]> | 2013-02-24 15:28:13 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-02-24 15:28:13 +0000 |
| commit | 0c5d4a10e6f616f5a63787b8fbda86ec9fc487a9 (patch) | |
| tree | c04b535bffeeba3e95adae01b961740bdc3a938e /src/message.cpp | |
| parent | Fixed filename case. (diff) | |
| download | vmime-0c5d4a10e6f616f5a63787b8fbda86ec9fc487a9.tar.gz vmime-0c5d4a10e6f616f5a63787b8fbda86ec9fc487a9.zip | |
Message generation/parsing context. Charset conversion options. Preliminary implementation of RFC-6532.
Diffstat (limited to 'src/message.cpp')
| -rw-r--r-- | src/message.cpp | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/src/message.cpp b/src/message.cpp index c52d54c2..75016c36 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -22,7 +22,6 @@ // #include "vmime/message.hpp" -#include "vmime/options.hpp" #include "vmime/utility/outputStreamAdapter.hpp" @@ -38,37 +37,10 @@ message::message() } -void message::generate(utility::outputStream& os, const string::size_type maxLineLength, - const string::size_type curLinePos, string::size_type* newLinePos) const -{ - // We override this function to change the default value for the - // "maxLineLength" parameter. So, the user will just have to call - // message::generate() without any argument to use the maximum line - // length specified in vmime::options... - bodyPart::generate(os, maxLineLength, curLinePos, newLinePos); -} - - const string message::generate(const string::size_type maxLineLength, const string::size_type curLinePos) const { - std::ostringstream oss; - utility::outputStreamAdapter adapter(oss); - - generate(adapter, maxLineLength, curLinePos, NULL); - - return (oss.str()); -} - - - -void message::generate - (ref <utility::outputStream> os, - const string::size_type maxLineLength, - const string::size_type curLinePos, - string::size_type* newLinePos) const -{ - bodyPart::generate(os, maxLineLength, curLinePos, newLinePos); + return bodyPart::generate(maxLineLength, curLinePos); } |
