[IMP] mail: Improve @ algorithm and converter