Multipart.replace

gmime.object.ObjectWrap replace(int index, gmime.object.ObjectWrap replacement)

Replaces the part at the specified index within multipart with replacement.

Parameters

indexthe 0-based index of the part to replace
replacementa #GMimeObject to use as the replacement

Returns

the part that was replaced or null

if the part was not contained within the multipart.