public static void SetMessageStatus(this CDO.Message message, CdoMessageStat status) { Fields fields = message.GetEnvelopeFields(); if (fields == null || fields.Count == 0) { return; } fields.SetValue(EnvelopeField_Status, status); }