Convert mail.h to Scala as proof of concept