From 29cea58dc28db8946e417256f81d0afa46c645e5 Mon Sep 17 00:00:00 2001 From: Ingo Klcker Date: Fri, 16 Jul 2004 22:31:20 +0000 Subject: [PATCH] Fix creation of plain multipart/alternative messages. For some reason an Assemble() is required to make the boundary parameter appear. svn path=/trunk/kdepim/; revision=330128 --- messagecomposer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/messagecomposer.cpp b/messagecomposer.cpp index 360daf25d..707ff2f50 100644 --- a/messagecomposer.cpp +++ b/messagecomposer.cpp @@ -1605,8 +1605,8 @@ void MessageComposer::addBodyAndAttachments( KMMessage* msg, // set body content if ( mComposeWin->mEditor->textFormat() == Qt::RichText && !(doSign || doEncrypt) ) { // add the boundary to the header - DwMediaType & contentType = msg->dwContentType(); - contentType.SetBoundary(mSaveBoundary); + msg->headers().ContentType().SetBoundary( mSaveBoundary ); + msg->headers().ContentType().Assemble(); } msg->setBody(ourFineBodyPart.body() );