Fixes #3088 Updated mailAccount code to use MailAttribute and attributesAccess