Project

General

Profile

Feature #11498 » Fix-email-rake-tasks-to-also-support-no_account_notice-option.patch

Alex Shulgin, 2013-04-08 15:45

View differences:

lib/tasks/email.rake
29 29
                           create: create a user account
30 30
  no_permission_check=1    disable permission checking when receiving
31 31
                           the email
32
  no_account_notice=1      disable new user account notification
33 32

  
34 33
Issue attributes control options:
35 34
  project=PROJECT          identifier of the target project
......
59 58
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
60 59
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
61 60
      options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
62
      options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
63 61

  
64 62
      MailHandler.receive(STDIN.read, options)
65 63
    end
......
75 73
                           create: create a user account
76 74
  no_permission_check=1    disable permission checking when receiving
77 75
                           the email
78
  no_account_notice=1      disable new user account notification
79 76

  
80 77
Available IMAP options:
81 78
  host=HOST                IMAP server host (default: 127.0.0.1)
......
132 129
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
133 130
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
134 131
      options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
135
      options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
136 132

  
137 133
      Redmine::IMAP.check(imap_options, options)
138 134
    end
......
166 162
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
167 163
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
168 164
      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 165

  
171 166
      Redmine::POP3.check(pop_options, options)
172 167
    end
(2-2/3)