Skip to content

Commit

Permalink
Add new rake task to receive emails from dofferent configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kraft001 committed Oct 19, 2012
1 parent c8e631a commit 1ecdedc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tasks/email.rake
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ END_DESC
abort l(:notice_email_error, e.message)
end
end

desc "Receive emails, specified in config file"
task :receive_from => :environment do
config_file = ENV['CONFIG'] || 'mail_handler.yml'
Mailreceiver::receive(config_file)
end
end
end

0 comments on commit 1ecdedc

Please sign in to comment.