Refine mailing debug functionality