##// END OF EJS Templates
Adds status option to email integration rake tasks....
Jean-Philippe Lang -
r2073:abacc2754e7a
parent child
Show More
@@ -23,6 +23,7 Read an email from standard input.
23
23
24 Issue attributes control options:
24 Issue attributes control options:
25 project=PROJECT identifier of the target project
25 project=PROJECT identifier of the target project
26 status=STATUS name of the target status
26 tracker=TRACKER name of the target tracker
27 tracker=TRACKER name of the target tracker
27 category=CATEGORY name of the target category
28 category=CATEGORY name of the target category
28 priority=PRIORITY name of the target priority
29 priority=PRIORITY name of the target priority
@@ -44,7 +45,7 END_DESC
44
45
45 task :read => :environment do
46 task :read => :environment do
46 options = { :issue => {} }
47 options = { :issue => {} }
47 %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
48 %w(project status tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
48 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
49 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
49
50
50 MailHandler.receive(STDIN.read, options)
51 MailHandler.receive(STDIN.read, options)
@@ -63,6 +64,7 Available IMAP options:
63
64
64 Issue attributes control options:
65 Issue attributes control options:
65 project=PROJECT identifier of the target project
66 project=PROJECT identifier of the target project
67 status=STATUS name of the target status
66 tracker=TRACKER name of the target tracker
68 tracker=TRACKER name of the target tracker
67 category=CATEGORY name of the target category
69 category=CATEGORY name of the target category
68 priority=PRIORITY name of the target priority
70 priority=PRIORITY name of the target priority
@@ -96,7 +98,7 END_DESC
96 :folder => ENV['folder']}
98 :folder => ENV['folder']}
97
99
98 options = { :issue => {} }
100 options = { :issue => {} }
99 %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
101 %w(project status tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
100 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
102 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
101
103
102 Redmine::IMAP.check(imap_options, options)
104 Redmine::IMAP.check(imap_options, options)
General Comments 0
You need to be logged in to leave comments. Login now