key_commit: tweak to fix mortgage code list
key_commit: Fixed a couple of bugs in the mail log process