         console.log "User disabled e-mail notifications."
         callback? err
       else
-        console.log "STATE:", state
+        # console.log "STATE:", state
 
         JEmailNotificationGG.count {event, sender, receiver, contentId}, \
         (err, count)->

      status         :
        type         : String
        default      : 'queued'
        enum         : ['Invalid status',['queued','attempted']]

  commonActivities   = ['JCodeSnip', 'JStatusUpdate', 'JDiscussion',
                        'JOpinion', 'JCodeShare', 'JLink', 'JTutorial']
  flags =
    comment           :
      eventType       : 'ReplyIsAdded'
      contentTypes    : commonActivities
    likeActivities    :
      eventType       : 'LikeIsAdded'
      contentTypes    : commonActivities
    likeComments      :
      eventType       : 'LikeIsAdded'
      contentTypes    : ['JComment']

    {username, contentType, event} = options

    JUser = require './user'
    JUser.someData {username}, {email:1, emailFrequency:1}, (err, cursor)->
      if err
        console.error "Could not load user record for #{username}"
        callback err
      else cursor.nextObject (err, user)->
        {emailFrequency, email} = user
        unless emailFrequency?
          callback null
        else
