added versioning of mail files