Merged r11526 and r11590 from trunk (#13341).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11591 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -26,7 +26,7 @@ class RedmineMailHandler
|
||||
VERSION = '0.2.3'
|
||||
|
||||
attr_accessor :verbose, :issue_attributes, :allow_override, :unknown_user, :default_group, :no_permission_check,
|
||||
:url, :key, :no_check_certificate, :no_account_notice
|
||||
:url, :key, :no_check_certificate, :no_account_notice, :no_notification
|
||||
|
||||
def initialize
|
||||
self.issue_attributes = {}
|
||||
@@ -62,6 +62,8 @@ class RedmineMailHandler
|
||||
"GROUP can be a comma separated list of groups") { |v| self.default_group = v}
|
||||
opts.on("--no-account-notice", "don't send account information to the newly",
|
||||
"created user") { |v| self.no_account_notice = '1'}
|
||||
opts.on("--no-notification", "disable email notifications for the created",
|
||||
"user") { |v| self.no_notification = '1'}
|
||||
opts.separator("")
|
||||
opts.separator("Issue attributes control options:")
|
||||
opts.on("-p", "--project PROJECT", "identifier of the target project") {|v| self.issue_attributes['project'] = v}
|
||||
@@ -104,6 +106,7 @@ class RedmineMailHandler
|
||||
'unknown_user' => unknown_user,
|
||||
'default_group' => default_group,
|
||||
'no_account_notice' => no_account_notice,
|
||||
'no_notification' => no_notification,
|
||||
'no_permission_check' => no_permission_check}
|
||||
issue_attributes.each { |attr, value| data["issue[#{attr}]"] = value }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user