restruct email module.
format code