diff options
author | Vincent Richard <[email protected]> | 2008-07-11 21:33:18 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2008-07-11 21:33:18 +0000 |
commit | 689f99f7a6cc06ea95e33f4630558f3fcd79ca74 (patch) | |
tree | 679dd6ea8d145b403978ee65dc81dec965303051 | |
parent | Fixed bad buffer length causing duplicate data (Zarafa). (diff) | |
download | vmime-689f99f7a6cc06ea95e33f4630558f3fcd79ca74.tar.gz vmime-689f99f7a6cc06ea95e33f4630558f3fcd79ca74.zip |
Treat empty encoding as default '7-bit' (Zarafa).
-rw-r--r-- | src/encoding.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp index 89cd7e8c..3ab9194f 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -57,6 +57,9 @@ void encoding::parse(const string& buffer, const string::size_type position, (utility::stringUtils::unquote(utility::stringUtils::trim (string(buffer.begin() + position, buffer.begin() + end))))); + if (m_name.empty()) + m_name = encodingTypes::SEVEN_BIT; // assume default "7-bit" + setParsedBounds(position, end); if (newPosition) |