async fn record_message_build_failure( conn: &mut PgConnection, email: &Email, attempt: i32, err: &Error, ) -> Result<()>