[Email] Make mail-app unit test workable.

The original mail-app unit test will be failed because of the target function is not accessible .This patch adjust the calling sequence to make the function accessible for unit test.