diff options
| author | Vincent Richard <[email protected]> | 2013-06-27 11:56:55 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-06-27 11:56:55 +0000 |
| commit | 86f0a63802d1bb6b2b13b8497a59f7af3a84ed9d (patch) | |
| tree | 61ac5152b100118e8a5f0fdf63f08d5c35e5b305 /src/body.cpp | |
| parent | Removed debug printf. (diff) | |
| download | vmime-86f0a63802d1bb6b2b13b8497a59f7af3a84ed9d.tar.gz vmime-86f0a63802d1bb6b2b13b8497a59f7af3a84ed9d.zip | |
Do not QP-encode CRLFs when content type is text.
Diffstat (limited to 'src/body.cpp')
| -rw-r--r-- | src/body.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/body.cpp b/src/body.cpp index d68254c7..f1a8cc0f 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -494,7 +494,10 @@ void body::generateImpl else { // Generate the contents - m_contents->generate(os, getEncoding(), ctx.getMaxLineLength()); + ref <contentHandler> contents = m_contents->clone(); + contents->setContentTypeHint(getContentType()); + + contents->generate(os, getEncoding(), ctx.getMaxLineLength()); } } |
