Rewrite Mailparser::parsePriority

Tests performed: https://gist.github.com/clonemeagain/8066113

Refers to issue: https://github.com/osTicket/osTicket-1.8/issues/343