summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-03-03 08:41:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-03-03 08:41:52 +0000
commit6cffab991911a87181b3fb54081e1d9a35f6e8d8 (patch)
tree7315ad3cd88f7a50497b6e386458735933d0294d /extra
parente7bf31d16212ac6a03b5e43a6c692ca547cbefb1 (diff)
downloadredmine-6cffab991911a87181b3fb54081e1d9a35f6e8d8.tar.gz
redmine-6cffab991911a87181b3fb54081e1d9a35f6e8d8.zip
Mail handler: adds --no-account-notice option for not sending account information to the created user (#11498).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11525 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r--extra/mail_handler/rdm-mailhandler.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb
index a4a736e07..9e9bac051 100644
--- a/extra/mail_handler/rdm-mailhandler.rb
+++ b/extra/mail_handler/rdm-mailhandler.rb
@@ -39,9 +39,10 @@ module Net
end
class RedmineMailHandler
- VERSION = '0.2.2'
+ VERSION = '0.2.3'
- attr_accessor :verbose, :issue_attributes, :allow_override, :unknown_user, :default_group, :no_permission_check, :url, :key, :no_check_certificate
+ attr_accessor :verbose, :issue_attributes, :allow_override, :unknown_user, :default_group, :no_permission_check,
+ :url, :key, :no_check_certificate, :no_account_notice
def initialize
self.issue_attributes = {}
@@ -75,6 +76,8 @@ class RedmineMailHandler
"* create: create a user account") {|v| self.unknown_user = v}
opts.on("--default-group GROUP", "add created user to GROUP (none by default)",
"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.separator("")
opts.separator("Issue attributes control options:")
opts.on("-p", "--project PROJECT", "identifier of the target project") {|v| self.issue_attributes['project'] = v}
@@ -116,6 +119,7 @@ class RedmineMailHandler
'allow_override' => allow_override,
'unknown_user' => unknown_user,
'default_group' => default_group,
+ 'no_account_notice' => no_account_notice,
'no_permission_check' => no_permission_check}
issue_attributes.each { |attr, value| data["issue[#{attr}]"] = value }