diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-17 10:20:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-17 10:20:26 +0000 |
commit | 1079089e75495fe94c4fa276c153748c0b08dad8 (patch) | |
tree | 7099d6607647c3bb912ffcd5c35e24ba1389f6f7 /extra | |
parent | 54952a2b2518436197a65f5b46b7bd9bdefc7551 (diff) | |
download | redmine-1079089e75495fe94c4fa276c153748c0b08dad8.tar.gz redmine-1079089e75495fe94c4fa276c153748c0b08dad8.zip |
Updates rdm-mailhandler.rb help.
git-svn-id: http://svn.redmine.org/redmine/trunk@14689 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mail_handler/rdm-mailhandler.rb | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb index 83d215785..dde50547e 100644 --- a/extra/mail_handler/rdm-mailhandler.rb +++ b/extra/mail_handler/rdm-mailhandler.rb @@ -92,33 +92,37 @@ class RedmineMailHandler opts.on( "--category CATEGORY", "name of the target category") {|v| self.issue_attributes['category'] = v} opts.on( "--priority PRIORITY", "name of the target priority") {|v| self.issue_attributes['priority'] = v} opts.on( "--private", "create new issues as private") {|v| self.issue_attributes['is_private'] = '1'} - opts.on("-o", "--allow-override ATTRS", "allow email content to override attributes", - "specified by previous options", - "ATTRS is a comma separated list of attributes") {|v| self.allow_override = v} - opts.separator("") - opts.separator("Overrides:") - opts.separator(" ATTRS is a comma separated list of attributes among:") - opts.separator(" * project, tracker, status, priority, category, assigned_to, fixed_version,") - opts.separator(" start_date, due_date, estimated_hours, done_ratio") - opts.separator(" * custom fields names with underscores instead of spaces (case insensitive)") - opts.separator("") - opts.separator(" Example: --allow_override=project,priority,my_custom_field") - opts.separator("") - opts.separator(" If the --project option is not set, project is overridable by default for") - opts.separator(" emails that create new issues.") - opts.separator("") - opts.separator(" You can use --allow_override=all to allow all attributes to be overridable.") - opts.separator("") - opts.separator("Examples:") - opts.separator(" No project specified, emails MUST contain the 'Project' keyword:") - opts.separator(" rdm-mailhandler.rb --url http://redmine.domain.foo --key secret") - opts.separator("") - opts.separator(" Fixed project and default tracker specified, but emails can override") - opts.separator(" both tracker and priority attributes using keywords:") - opts.separator(" rdm-mailhandler.rb --url https://domain.foo/redmine --key secret \\") - opts.separator(" --project foo \\") - opts.separator(" --tracker bug \\") - opts.separator(" --allow-override tracker,priority") + opts.on("-o", "--allow-override ATTRS", "allow email content to set attributes values", + "ATTRS is a comma separated list of attributes", + "or 'all' to allow all attributes to be", + "overridable (see below for details)") {|v| self.allow_override = v} + + opts.separator <<-END_DESC + +Overrides: + ATTRS is a comma separated list of attributes among: + * project, tracker, status, priority, category, assigned_to, fixed_version, + start_date, due_date, estimated_hours, done_ratio + * custom fields names with underscores instead of spaces (case insensitive) + + Example: --allow_override=project,priority,my_custom_field + + If the --project option is not set, project is overridable by default for + emails that create new issues. + + You can use --allow_override=all to allow all attributes to be overridable. + +Examples: + No project specified, emails MUST contain the 'Project' keyword: + rdm-mailhandler.rb --url http://redmine.domain.foo --key secret + + Fixed project and default tracker specified, but emails can override + both tracker and priority attributes using keywords: + rdm-mailhandler.rb --url https://domain.foo/redmine --key secret \\ + --project foo \\ + --tracker bug \\ + --allow-override tracker,priority +END_DESC opts.summary_width = 27 end |