hmail update

Updatet so windows also works

need a test