[FIX] mail: bad test
[IMP] hr: strenghtening of write()