From kmail-devel Mon May 07 10:17:39 2001 From: Marc Mutz Date: Mon, 07 May 2001 10:17:39 +0000 To: kmail-devel Subject: Re: [PATCH] fixes for filters X-MARC-Message: https://marc.info/?l=kmail-devel&m=98923065814843 On Sunday 06 May 2001 20:22, Michael Häckel wrote: > > The problem is that I'm currently lost as to what stream I should > > be using. The are all sorts of streams that KTempFile can provide, > > yet looking at the Qt and KDElibs docs I cannot determine which one > > of them simply writes the QByteArray into a file. QDataSream > > prepends the byte array with the length, QTextStream wants to do > > locale, maybe using FILE* gives the file in Unicode...?! > > Actually it works already, so why changing? Hm, it seemed broken because it couldn't do the "cat %0 > file" thing. I wasn't sure when I wrote that where the error lay. From what you said now, I reckon bodyPart(0,...) is broken for messages with no attachments, so there's no problem with using kByteArrayToFile. But at that point it may have been possible that that was the pof. > BTW: I just found another bug: "" seems to be broken. Hm, didn't touch KMSearchPattern::matches() that much... Will have a look. Marc -- Marc Mutz http://marc.mutz.com/ http://www.mathematik.uni-bielefeld.de/~mmutz/ http://EncryptionHOWTO.sourceforge.net/ _______________________________________________ Kmail Developers mailing list Kmail@master.kde.org http://master.kde.org/mailman/listinfo/kmail