[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.3/kdepim/kmail
From: Allen Winter <winter () kde ! org>
Date: 2009-07-15 15:28:31
Message-ID: 1247671711.508123.32549.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 997228 by winterz:
Backport r997218 by jtamate from trunk to the 4.3 branch:
CCBUG: 131489
The r+ is not needed to read the file. (and was never appened).
M +4 -4 kmfoldermaildir.cpp
--- branches/KDE/4.3/kdepim/kmail/kmfoldermaildir.cpp #997227:997228
@@ -533,10 +533,10 @@
abs_file += mi->fileName();
QFileInfo fi( abs_file );
- if (fi.exists() && fi.isFile() && fi.isWritable() && fi.size() > 0)
+ if (fi.exists() && fi.isFile() && fi.size() > 0)
{
- FILE* stream = KDE_fopen(QFile::encodeName(abs_file), "r+");
- kDebug( StorageDebug ) << "KDE_fopen(abs_file=" << abs_file << ", \"r+\") == stream == " << stream;
+ FILE* stream = KDE_fopen(QFile::encodeName(abs_file), "r");
+ kDebug( StorageDebug ) << "KDE_fopen(abs_file=" << abs_file << ", \"r\") == stream == " << stream;
if (stream) {
size_t msgSize = fi.size();
char* msgText = new char[ msgSize + 1 ];
@@ -551,7 +551,7 @@
return str;
}
}
- kDebug() <<"Could not open file r+" << abs_file;
+ kDebug() <<"Could not open file r" << abs_file;
return DwString();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic