diff --git a/kmacctexppop.cpp b/kmacctexppop.cpp index 9583b4173..d0d36111a 100644 --- a/kmacctexppop.cpp +++ b/kmacctexppop.cpp @@ -353,6 +353,10 @@ void KMAcctExpPop::slotMsgRetrieved(KIO::Job*, const QString & infoMsg) { if (infoMsg != "message complete") return; KMMessage *msg = new KMMessage; + // Make sure to use LF as line ending to make the processing easier + // when piping through external programs + uint newSize = KMFolder::crlf2lf( curMsgData.data(), curMsgData.size() ); + curMsgData.resize( newSize ); msg->fromByteArray( curMsgData , true ); if (stage == Head) {