Skip to main content


Last updated March 2020


ec_message_part_insert_before — Insert a part ahead of another part


#include "ec_message.h"

| int **ec_message_part_insert_before** ( | toinsert, |   | |   | insert_before); |   |

ec_message_part * <var class="pdparam">toinsert</var>; ec_message_part * <var class="pdparam">insert_before</var>;



This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Insert a part ahead of another part.

Determines the predecessor of the "insert_before" part, and inserts "toinsert" after it.

The insert operation will update the various part links in the mime tree, which may result in references being added to parts.

The insert may fail if the mime tree is invalid.



the part being inserted


the part which will become the successor to "toinsert"

Return Values

0 on failure, 1 on success.

**Configuration Change. ** This feature is available starting from Momentum 3.0.18.

Was this page helpful?