Line ending for messages retrieved from a POP account will be changed

from CR/LF to LF. This simplifies further processing e.g. when
applying a pipe through filter action so that an external program
doesn't have to care for the line ending itself.

This fixes bug #69418 - filters don't work anymore as in 3.1.4

candidate for backport to 3.2.1

svn path=/trunk/kdepim/; revision=281690
wilder-work
Andreas Gungl 22 years ago
parent 18981ab511
commit ff923b3783
  1. 4
      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)
{

Loading…
Cancel
Save