Clone the parts before adding it to the formated message

Clone the message before adding it to the formatted message to prevent indirect modification of the orginal message.