@@ -23,6 +23,7 Read an email from standard input. | |||
|
23 | 23 | |
|
24 | 24 | Issue attributes control options: |
|
25 | 25 | project=PROJECT identifier of the target project |
|
26 | status=STATUS name of the target status | |
|
26 | 27 | tracker=TRACKER name of the target tracker |
|
27 | 28 | category=CATEGORY name of the target category |
|
28 | 29 | priority=PRIORITY name of the target priority |
@@ -44,7 +45,7 END_DESC | |||
|
44 | 45 | |
|
45 | 46 | task :read => :environment do |
|
46 | 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 | 49 | options[:allow_override] = ENV['allow_override'] if ENV['allow_override'] |
|
49 | 50 | |
|
50 | 51 | MailHandler.receive(STDIN.read, options) |
@@ -63,6 +64,7 Available IMAP options: | |||
|
63 | 64 | |
|
64 | 65 | Issue attributes control options: |
|
65 | 66 | project=PROJECT identifier of the target project |
|
67 | status=STATUS name of the target status | |
|
66 | 68 | tracker=TRACKER name of the target tracker |
|
67 | 69 | category=CATEGORY name of the target category |
|
68 | 70 | priority=PRIORITY name of the target priority |
@@ -96,7 +98,7 END_DESC | |||
|
96 | 98 | :folder => ENV['folder']} |
|
97 | 99 | |
|
98 | 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 | 102 | options[:allow_override] = ENV['allow_override'] if ENV['allow_override'] |
|
101 | 103 | |
|
102 | 104 | Redmine::IMAP.check(imap_options, options) |
General Comments 0
You need to be logged in to leave comments.
Login now