[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: [PATCH] fixes for filters
From:       Marc Mutz <Marc () Mutz ! com>
Date:       2001-05-07 10:17:39
[Download RAW message or body]

On Sunday 06 May 2001 20:22, Michael Häckel wrote:
<snip>
> > 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: "<any header>" seems to be broken.

Hm, didn't touch KMSearchPattern::matches() that much... Will have a 
look.

Marc

-- 
Marc Mutz <Marc@Mutz.com>
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic