plugin api methods add/update email preferences