-exit 0 unless recipient = ARGV[0].match(/^([cm])-(\d+)-(.*)$/)
-
-if recipient[1] == "c"
- comment = DiaryComment.find(recipient[2])
- digest = comment.digest
- from = comment.diary_entry.user
+if recipient = ARGV[0].match(/^c-(\d+)-(\d+)-(.*)$/)
+ comment = DiaryComment.find(recipient[1])
+ expected_token = comment.notification_token(recipient[2])
+ date = comment.created_at
+ from = comment.diary_entry.subscribers.find(recipient[2])