Multipart.replace

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

Parameters

index int

the 0-based index of the part to replace

replacement gmime.object.ObjectWrap

a #GMimeObject to use as the replacement

Return Value

Type: gmime.object.ObjectWrap

the part that was replaced or null if the part was not contained within the multipart.