Skip to content

Instantly share code, notes, and snippets.

@kennethkalmer
Created September 11, 2009 08:10
Show Gist options
  • Save kennethkalmer/185160 to your computer and use it in GitHub Desktop.
Save kennethkalmer/185160 to your computer and use it in GitHub Desktop.
function(doc) {
if(doc.type && doc.type == 'Email' && doc.unread == '1') {
emit( doc.recipient, 1 )
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment