Select mail parse function based on email file extension.