Project

General

Profile

Patch #13875 ยป email_rake.patch

Julian Faude, 2013-04-25 18:40

View differences:

lib/tasks/email.rake
58 58
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
59 59
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
60 60
      options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
61
      options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
62
      options[:default_group] = ENV['default_group'] if ENV['default_group']
61 63

  
62 64
      MailHandler.receive(STDIN.read, options)
63 65
    end
......
129 131
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
130 132
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
131 133
      options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
134
      options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
135
      options[:default_group] = ENV['default_group'] if ENV['default_group']
132 136

  
133 137
      Redmine::IMAP.check(imap_options, options)
134 138
    end
......
162 166
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
163 167
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
164 168
      options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
169
      options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
170
      options[:default_group] = ENV['default_group'] if ENV['default_group']
165 171

  
166 172
      Redmine::POP3.check(pop_options, options)
167 173
    end
    (1-1/1)