- // it would be nice if QDir could delete recursively.. but since it
- // doesn't, we have to do this hack
- QCString cmd;
- cmd.sprintf("rm -rf '%s'", QFile::encodeName(location()).data());
- system(cmd.data());
-
- return 0;
+ if (KIO::NetAccess::del(KURL::fromPathOrURL(location())))
+ return 0;
+ return 1;
svn path=/trunk/kdenetwork/kmail/; revision=186186
Please note that this port includes a bug fix which should be ported back to make_it_cool. I've sent the bug fix to the mailing list.
svn path=/trunk/kdenetwork/kmail/; revision=184866
The reason for this bug was a wrong assumption about the return value of QFile::readline. Reading the docs helps. FYI the fix:
- if (!f.readLine(line, MAX_LINE))
+ // if the end of the file has been reached or if there was an error
+ if ( f.atEnd() || ( -1 == f.readLine(line, MAX_LINE) ) )
svn path=/trunk/kdenetwork/kmail/; revision=184624
- replace KMKernel::self() with kernel
- introduce KMTextBrowser for viewing raw messages or text-attachments
to fix memory leaks
svn path=/trunk/kdenetwork/kmail/; revision=175027
to write to the sent-mail folder but does have permission for the outbox.
Based on patch by Russell Miller <rmiller@duskglow.com>
svn path=/trunk/kdenetwork/kmail/; revision=157558
Activate them via View-menu or rmb-menu from the tree-header.
Changed the qpopup for the folder-context-menu to kpopup to be consistent with the rest.
svn path=/trunk/kdenetwork/kmail/; revision=153547
@@ -762,9 +762,9 @@ int KMFolderMaildir::removeContents()
{
// it would be nice if QDir could delete recursively.. but since it
// doesn't, we have to do this hack
- QString cmd;
+ QCString cmd;
cmd.sprintf("rm -rf '%s'", QFile::encodeName(location()).data());
- system(cmd.ascii());
+ system(cmd.data());
return 0;
}
svn path=/trunk/kdenetwork/kmail/; revision=141877
- Show number of queued messages in outbox
- Open thread if it contains new, unread or _important_ messages
svn path=/trunk/kdenetwork/kmail/; revision=128438
appears that (at least in the trash) some individual messages return
true to 'isMessage' and some dont'. Both are perfectly valid, though.
However, there was this code in getMsgString
assert(mi!=NULL && !mi->isMessage());
which is obviously a holdover (copy-n-paste) from the mbox code. I
just removed the '&& !mi->isMessage()' part since it is no longer
necessary for maildir. Now no apparent crash!
svn path=/trunk/kdenetwork/kmail/; revision=122020
their properties like Identity even after a --check. Hmm.. I should
see if there is a bug report related to this
svn path=/trunk/kdenetwork/kmail/; revision=118049
like 'take'. This means that messages in 'outbox' and 'trash' will
*finally* be deleted for real.
Now there are only two known bugs with the maildir code!
Also removed some test code that I accidently committed before.
svn path=/trunk/kdenetwork/kmail/; revision=117373