Each user has different settings in their settings object for notifications and digest. The key for the settings object is user:<uid>:settings
"dailyDigestFreq"
can be set to "off"
to turn it off.
There there is a setting for each notification type:
"notificationType_new-chat" : "notificationemail",
"notificationType_new-reply" : "notificationemail",
"notificationType_upvote" : "notificationemail",
"notificationType_new-topic" : "notificationemail",
"notificationType_follow" : "notificationemail",
"notificationType_group-invite" : "notification",
"notificationType_mention" : "notificationemail",
"notificationType_new-register" : "notificationemail",
"notificationType_post-queue" : "notificationemail",
"notificationType_new-post-flag" : "notificationemail",
"notificationType_new-user-flag" : "notificationemail",
"notificationType_group-request-membership" : "none"
It can be set to "none" to disable emails and notifictions for that type.