diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-03-03 08:57:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-03-03 08:57:00 +0000 |
commit | f77ed4a7c30d989be8a95d11ee120422ff178ee1 (patch) | |
tree | 42fb70f54253123a07b5ac96ba0a9107d70e4d2a /extra/mail_handler/rdm-mailhandler.rb | |
parent | 6cffab991911a87181b3fb54081e1d9a35f6e8d8 (diff) | |
download | redmine-f77ed4a7c30d989be8a95d11ee120422ff178ee1.tar.gz redmine-f77ed4a7c30d989be8a95d11ee120422ff178ee1.zip |
Mail handler: adds --no-notification option to disable notifications to the created user (#13341).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11526 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/mail_handler/rdm-mailhandler.rb')
-rw-r--r-- | extra/mail_handler/rdm-mailhandler.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb index 9e9bac051..5d2b3d0c6 100644 --- a/extra/mail_handler/rdm-mailhandler.rb +++ b/extra/mail_handler/rdm-mailhandler.rb @@ -42,7 +42,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 = {} @@ -78,6 +78,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} @@ -120,6 +122,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 } |