# Mail.defaults do # delivery_method :smtp, { :address => "smtp.me.com", # :port => 587, # :domain => 'your.host.name', # :user_name => '', # :password => '', # :authentication => 'plain', # :enable_starttls_auto => true } # end Mail.defaults do delivery_method :smtp, { :address => "smtp.free.fr" } end # Rivendell::API::Xport.debug_output $stdout Rivendell::Import::Notifier::Mail.from = "root@tryphon.eu" Rivendell::Import.config do |config| config.rivendell.host = "localhost" config.rivendell.login_name = "user" config.rivendell.password = "" config.rivendell.db_url = 'mysql://rduser:letmein@localhost/Rivendell' config.to_prepare do |file| # task.cancel! cart.default_title = file.basename file.in("music") do cart.group = "MUSIC" end file.in("pad") do name = file.basename if name.match /-lundi$/ cart.cut.days = %w{mon} name.gsub! /-lundi$/, "" end cart.clear_cuts! cart.find_by_title name end cart.group ||= "TEST" # To delete file when task is completed #task.delete_file! notify 'alban@tryphon.eu', :by => :email end end