##// END OF EJS Templates
Updates rdm-mailhandler.rb help....
Jean-Philippe Lang -
r14306:54952a2b2518
parent child
Show More
@@ -60,8 +60,6 class RedmineMailHandler
60 opts.on("-k", "--key KEY", "Redmine API key") {|v| self.key = v}
60 opts.on("-k", "--key KEY", "Redmine API key") {|v| self.key = v}
61 opts.separator("")
61 opts.separator("")
62 opts.separator("General options:")
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 opts.on("--key-file FILE", "full path to a file that contains your Redmine",
63 opts.on("--key-file FILE", "full path to a file that contains your Redmine",
66 "API key (use this option instead of --key if",
64 "API key (use this option instead of --key if",
67 "you don't want the key to appear in the command",
65 "you don't want the key to appear in the command",
@@ -72,12 +70,14 class RedmineMailHandler
72 opts.on("-v", "--verbose", "show extra information") {self.verbose = true}
70 opts.on("-v", "--verbose", "show extra information") {self.verbose = true}
73 opts.on("-V", "--version", "show version information and exit") {puts VERSION; exit}
71 opts.on("-V", "--version", "show version information and exit") {puts VERSION; exit}
74 opts.separator("")
72 opts.separator("")
75 opts.separator("User creation options:")
73 opts.separator("User and permissions options:")
76 opts.on("--unknown-user ACTION", "how to handle emails from an unknown user",
74 opts.on("--unknown-user ACTION", "how to handle emails from an unknown user",
77 "ACTION can be one of the following values:",
75 "ACTION can be one of the following values:",
78 "* ignore: email is ignored (default)",
76 "* ignore: email is ignored (default)",
79 "* accept: accept as anonymous user",
77 "* accept: accept as anonymous user",
80 "* create: create a user account") {|v| self.unknown_user = v}
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 opts.on("--default-group GROUP", "add created user to GROUP (none by default)",
81 opts.on("--default-group GROUP", "add created user to GROUP (none by default)",
82 "GROUP can be a comma separated list of groups") { |v| self.default_group = v}
82 "GROUP can be a comma separated list of groups") { |v| self.default_group = v}
83 opts.on("--no-account-notice", "don't send account information to the newly",
83 opts.on("--no-account-notice", "don't send account information to the newly",
@@ -96,6 +96,19 class RedmineMailHandler
96 "specified by previous options",
96 "specified by previous options",
97 "ATTRS is a comma separated list of attributes") {|v| self.allow_override = v}
97 "ATTRS is a comma separated list of attributes") {|v| self.allow_override = v}
98 opts.separator("")
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 opts.separator("Examples:")
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 opts.separator(" rdm-mailhandler.rb --url http://redmine.domain.foo --key secret")
114 opts.separator(" rdm-mailhandler.rb --url http://redmine.domain.foo --key secret")
General Comments 0
You need to be logged in to leave comments. Login now