Fix getting of mailbox mode, also fix setting of priority and accept mask in mailbox init.