fix parsing mail