summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-10 09:07:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-10 09:07:36 +0000
commitd640f7b249b92fe98eff5727bc635a6fd65598bd (patch)
treef4c24783cd3b60fa2d56dbe569ffcaf373c00f06 /extra
parentf8a9a78ecfa50d53ca8416d296af8a02da8eb7d7 (diff)
downloadredmine-d640f7b249b92fe98eff5727bc635a6fd65598bd.tar.gz
redmine-d640f7b249b92fe98eff5727bc635a6fd65598bd.zip
Adds private issue option to receiving emails (#8424).
git-svn-id: http://svn.redmine.org/redmine/trunk@14262 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r--extra/mail_handler/rdm-mailhandler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb
index 36d06cb56..f5fbe3ac9 100644
--- a/extra/mail_handler/rdm-mailhandler.rb
+++ b/extra/mail_handler/rdm-mailhandler.rb
@@ -87,6 +87,7 @@ class RedmineMailHandler
opts.on("-t", "--tracker TRACKER", "name of the target tracker") {|v| self.issue_attributes['tracker'] = v}
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}