Project

General

Profile

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

Alex Shulgin, 2013-04-08 15:49

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
32 33

  
33 34
Issue attributes control options:
34 35
  project=PROJECT          identifier of the target project
......
58 59
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
59 60
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
60 61
      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']
61 63

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

  
77 80
Available IMAP options:
78 81
  host=HOST                IMAP server host (default: 127.0.0.1)
......
129 132
      options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
130 133
      options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
131 134
      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']
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']
165 170

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