Minor preprarations for filter_lua to access message data.