https://bugs.kde.org/show_bug.cgi?id=368692

Laurent Montel <mon...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |skna...@kde.org

--- Comment #7 from Laurent Montel <mon...@kde.org> ---
it's a bug in mimetreeparser:
We use:
void TemplateParser::processWithTemplate(const QString &tmpl)
{
    mOtp->parseObjectTree(mOrigMsg.data());
=>
void ObjectTreeParser::parseObjectTree(KMime::Content *node)
{
    mTopLevelContent = node;
    mParsedPart = parseObjectTreeInternal(node, showOnlyOneMimePart());

    if (mParsedPart) {
        mParsedPart->fix();
        mParsedPart->copyContentFrom();
        if (auto mp = toplevelTextNode(mParsedPart)) {
            if (auto _mp = mp.dynamicCast<TextMessagePart>()) {
                extractNodeInfos(_mp->mNode, true);
            } else if (auto _mp = mp.dynamicCast<AlternativeMessagePart>()) {
                if (_mp->mChildNodes.contains(Util::MultipartPlain)) {
                    extractNodeInfos(_mp->mChildNodes[Util::MultipartPlain],
true);
                }
            }
            setPlainTextContent(mp->text());
        }

=> mp->text() seems to be not correct.

I CC     Sandro Knauß  who needs better this code.

Regards

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to