summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-09-23 13:01:35 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-09-23 13:01:35 (GMT)
commit55db6fd4c1e49def5563dddd8ad8ae9eb8ac7264 (patch)
treeece173edec073f19bbc1a5140d14de118778831a
parent08d822245405d541f62295aa82267ac81ee35432 (diff)
downloadlibkolab-55db6fd4c1e49def5563dddd8ad8ae9eb8ac7264.tar.gz
We have to convert CRLF to LF, otherwise some files will not load.
This is typically encountered when downloading example files from somewhere.
-rw-r--r--utils/kolabformatchecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/kolabformatchecker.cpp b/utils/kolabformatchecker.cpp
index 47120f3..b738a1b 100644
--- a/utils/kolabformatchecker.cpp
+++ b/utils/kolabformatchecker.cpp
@@ -38,7 +38,7 @@ KMime::Message::Ptr readMimeFile( const QString &fileName, bool &ok)
}
const QByteArray data = file.readAll();
KMime::Message::Ptr msg = KMime::Message::Ptr(new KMime::Message);
- msg->setContent( data );
+ msg->setContent( KMime::CRLFtoLF(data) );
msg->parse();
return msg;
}