-- remove email table columns we nolonger need.
ALTER TABLE `%TABLE_PREFIX%email`
    DROP COLUMN `userid`,
    DROP COLUMN `userpass`,
    DROP COLUMN `mail_active`,
    DROP COLUMN `mail_host`,
    DROP COLUMN `mail_protocol`,
    DROP COLUMN `mail_encryption`,
    DROP COLUMN `mail_folder`,
    DROP COLUMN `mail_port`,
    DROP COLUMN `mail_fetchfreq`,
    DROP COLUMN `mail_fetchmax`,
    DROP COLUMN `mail_archivefolder`,
    DROP COLUMN `mail_delete`,
    DROP COLUMN `mail_errors`,
    DROP COLUMN `mail_lasterror`,
    DROP COLUMN `mail_lastfetch`,
    DROP COLUMN `smtp_active`,
    DROP COLUMN `smtp_host`,
    DROP COLUMN `smtp_port`,
    DROP COLUMN `smtp_secure`,
    DROP COLUMN `smtp_auth`,
    DROP COLUMN `smtp_auth_creds`,
    DROP COLUMN `smtp_userid`,
    DROP COLUMN `smtp_userpass`,
    DROP COLUMN `smtp_spoofing`;
