Added mail priority
Use Arr::keyval_to_assoc for merge var building