update_undeliverable_envelope_for_casting

Function update_undeliverable_envelope_for_casting 

Source
pub fn update_undeliverable_envelope_for_casting(
    envelope: Undeliverable<MessageEnvelope>,
) -> Undeliverable<MessageEnvelope>
Expand description

An undeliverable might have its sender address set as the comm actor instead of the original sender. Update it based on the headers present in the message so it matches the sender.