#!/usr/bin/env ruby
-require File.dirname(__FILE__) + "/../config/environment"
+require File.join(File.dirname(__FILE__), "..", "config", "environment")
if recipient = ARGV[0].match(/^c-(\d+)-(\d+)-(.*)$/)
comment = DiaryComment.find(recipient[1])
message = Message.from_mail(mail, from, to)
message.save!
-Notifier.message_notification(message).deliver
+UserMailer.message_notification(message).deliver
exit 0