Is it still crashing? Or what you mean by backtrace?
Are you still calling msg_apply_changes() before append_body_part()?
—Reply to this email directly or view it on GitHub.