We need the same functionality, for our Gourl.io Payment gateway, as described here -
http://bitcoin.stackexchange.com/questions/40689/walletnotify-on-6-confirmations-instead-of-1
Pretty straight forward. Right now im using -walletnotify to run some node.js code when i get an incoming transaction and when theres 1 confirmation. However, after reading around, i found out that 1 confirmation is not secure, which now makes me want to execute this confirmation code when theres at least 6 confirmations.