Patch from Michael Teske
Patch from Michael Teske

<quote>
kmail crashes when compacting folders

This happens because in KMMsgBase::asIndexString(void) , the call to xmark()
returns 0 when used in str.sprintf(...)
This happens because in KMFolder::unGetMsg, the call *msgInfo = *((KMMessage*)mb)
does not initialize this, because in
KMMsgInfo& KMMsgInfo::operator=(const KMMessage& msg)
mXMark  is not initialized.

Adding
 mXMark     = msg.xmark();
to this operator fixes the problem for me.
</quote>

Explanation makes sense and the patch looks ok.

svn path=/trunk/kdenetwork/kmail/; revision=72197

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi