[Kde-pim] Hunting down #291171 and other filtering issues

Szymon Tomasz Stefanek pragma at kvirc.net
Sat Feb 25 14:24:48 GMT 2012


On Saturday 25 February 2012 11:23:07 Andras Mantia wrote:

> > 1) Fix the filtering bug only: remove all the parse() calls from the
> > filters as Akonadi seems to call parse() itself at the moment the message
> > is fetched. KMime never tries to parse an empty body and it never updates
> > the Content- Type header... maybe.
> 
> Due to above this sounds like a sane approach.

OK. I'll try it.

Hm.. there may be some code paths that take input from a source that
doesn't actually call parse() on the message...

What about adding an "ensureParsed()" method to KMime::Content that
calls parse() only if it hasn't been called with the current contents yet ?

Then I could just convert every call to parse() into ensureParsed()...

(...and maybe then we could also deprecate parse() ?).

-- 

Szymon Tomasz Stefanek

------------------------------------------------------------------------------
-
- The most incomprehensible thing about the universe is that it is 
comprehensible
-
------------------------------------------------------------------------------

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list