[IMP]minor fixing in mail module