|
|
@@ -49,7 +49,7 @@ class RedmineMailHandler |
|
|
|
optparse = OptionParser.new do |opts| |
|
|
|
opts.banner = "Usage: rdm-mailhandler.rb [options] --url=<Redmine URL> --key=<API key>" |
|
|
|
opts.separator("") |
|
|
|
opts.separator("Reads an email from standard input and forward it to a Redmine server through a HTTP request.") |
|
|
|
opts.separator("Reads an email from standard input and forwards it to a Redmine server through a HTTP request.") |
|
|
|
opts.separator("") |
|
|
|
opts.separator("Required arguments:") |
|
|
|
opts.on("-u", "--url URL", "URL of the Redmine server") {|v| self.url = v} |
|
|
@@ -58,10 +58,10 @@ class RedmineMailHandler |
|
|
|
opts.separator("General options:") |
|
|
|
opts.on("--no-permission-check", "disable permission checking when receiving", |
|
|
|
"the email") {self.no_permission_check = '1'} |
|
|
|
opts.on("--key-file FILE", "path to a file that contains the Redmine", |
|
|
|
"API key (use this option instead of --key", |
|
|
|
"if you don't the key to appear in the", |
|
|
|
"command line)") {|v| read_key_from_file(v)} |
|
|
|
opts.on("--key-file FILE", "full path to a file that contains your Redmine", |
|
|
|
"API key (use this option instead of --key if", |
|
|
|
"you don't want the key to appear in the command", |
|
|
|
"line)") {|v| read_key_from_file(v)} |
|
|
|
opts.on("--no-check-certificate", "do not check server certificate") {self.no_check_certificate = true} |
|
|
|
opts.on("-h", "--help", "show this help") {puts opts; exit 1} |
|
|
|
opts.on("-v", "--verbose", "show extra information") {self.verbose = true} |
|
|
@@ -87,7 +87,7 @@ class RedmineMailHandler |
|
|
|
"ATTRS is a comma separated list of attributes") {|v| self.allow_override = v} |
|
|
|
opts.separator("") |
|
|
|
opts.separator("Examples:") |
|
|
|
opts.separator("No project specified. Emails MUST contain the 'Project' keyword:") |
|
|
|
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") |