Initial /mail implementation, some fixes