just to complete this thread, i had to call msg_apply_changes() after calling replace_body_all(), which replaced ip addresses on c lines with 0.0.0.0. thanks to daniel for the hint. -- juha