@@ -60,8 +60,6 class RedmineMailHandler | |||
|
60 | 60 | opts.on("-k", "--key KEY", "Redmine API key") {|v| self.key = v} |
|
61 | 61 | opts.separator("") |
|
62 | 62 | opts.separator("General options:") |
|
63 | opts.on("--no-permission-check", "disable permission checking when receiving", | |
|
64 | "the email") {self.no_permission_check = '1'} | |
|
65 | 63 | opts.on("--key-file FILE", "full path to a file that contains your Redmine", |
|
66 | 64 | "API key (use this option instead of --key if", |
|
67 | 65 | "you don't want the key to appear in the command", |
@@ -72,12 +70,14 class RedmineMailHandler | |||
|
72 | 70 | opts.on("-v", "--verbose", "show extra information") {self.verbose = true} |
|
73 | 71 | opts.on("-V", "--version", "show version information and exit") {puts VERSION; exit} |
|
74 | 72 | opts.separator("") |
|
75 |
opts.separator("User |
|
|
73 | opts.separator("User and permissions options:") | |
|
76 | 74 | opts.on("--unknown-user ACTION", "how to handle emails from an unknown user", |
|
77 | 75 | "ACTION can be one of the following values:", |
|
78 | 76 | "* ignore: email is ignored (default)", |
|
79 | 77 | "* accept: accept as anonymous user", |
|
80 | 78 | "* create: create a user account") {|v| self.unknown_user = v} |
|
79 | opts.on("--no-permission-check", "disable permission checking when receiving", | |
|
80 | "the email") {self.no_permission_check = '1'} | |
|
81 | 81 | opts.on("--default-group GROUP", "add created user to GROUP (none by default)", |
|
82 | 82 | "GROUP can be a comma separated list of groups") { |v| self.default_group = v} |
|
83 | 83 | opts.on("--no-account-notice", "don't send account information to the newly", |
@@ -96,12 +96,25 class RedmineMailHandler | |||
|
96 | 96 | "specified by previous options", |
|
97 | 97 | "ATTRS is a comma separated list of attributes") {|v| self.allow_override = v} |
|
98 | 98 | opts.separator("") |
|
99 | opts.separator("Overrides:") | |
|
100 | opts.separator(" ATTRS is a comma separated list of attributes among:") | |
|
101 | opts.separator(" * project, tracker, status, priority, category, assigned_to, fixed_version,") | |
|
102 | opts.separator(" start_date, due_date, estimated_hours, done_ratio") | |
|
103 | opts.separator(" * custom fields names with underscores instead of spaces (case insensitive)") | |
|
104 | opts.separator("") | |
|
105 | opts.separator(" Example: --allow_override=project,priority,my_custom_field") | |
|
106 | opts.separator("") | |
|
107 | opts.separator(" If the --project option is not set, project is overridable by default for") | |
|
108 | opts.separator(" emails that create new issues.") | |
|
109 | opts.separator("") | |
|
110 | opts.separator(" You can use --allow_override=all to allow all attributes to be overridable.") | |
|
111 | opts.separator("") | |
|
99 | 112 | opts.separator("Examples:") |
|
100 | opts.separator("No project specified, emails MUST contain the 'Project' keyword:") | |
|
113 | opts.separator(" No project specified, emails MUST contain the 'Project' keyword:") | |
|
101 | 114 | opts.separator(" rdm-mailhandler.rb --url http://redmine.domain.foo --key secret") |
|
102 | 115 | opts.separator("") |
|
103 | opts.separator("Fixed project and default tracker specified, but emails can override") | |
|
104 | opts.separator("both tracker and priority attributes using keywords:") | |
|
116 | opts.separator(" Fixed project and default tracker specified, but emails can override") | |
|
117 | opts.separator(" both tracker and priority attributes using keywords:") | |
|
105 | 118 | opts.separator(" rdm-mailhandler.rb --url https://domain.foo/redmine --key secret \\") |
|
106 | 119 | opts.separator(" --project foo \\") |
|
107 | 120 | opts.separator(" --tracker bug \\") |
General Comments 0
You need to be logged in to leave comments.
Login now