From abacc2754e7a18338e1ffb0ea4099fa22b9e5382 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 30 Nov 2008 14:57:46 +0000 Subject: [PATCH] Adds status option to email integration rake tasks. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2075 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/email.rake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake index a37b3e197..30101cab7 100644 --- a/lib/tasks/email.rake +++ b/lib/tasks/email.rake @@ -23,6 +23,7 @@ Read an email from standard input. Issue attributes control options: project=PROJECT identifier of the target project + status=STATUS name of the target status tracker=TRACKER name of the target tracker category=CATEGORY name of the target category priority=PRIORITY name of the target priority @@ -44,7 +45,7 @@ END_DESC task :read => :environment do options = { :issue => {} } - %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] } + %w(project status tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] } options[:allow_override] = ENV['allow_override'] if ENV['allow_override'] MailHandler.receive(STDIN.read, options) @@ -63,6 +64,7 @@ Available IMAP options: Issue attributes control options: project=PROJECT identifier of the target project + status=STATUS name of the target status tracker=TRACKER name of the target tracker category=CATEGORY name of the target category priority=PRIORITY name of the target priority @@ -96,7 +98,7 @@ END_DESC :folder => ENV['folder']} options = { :issue => {} } - %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] } + %w(project status tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] } options[:allow_override] = ENV['allow_override'] if ENV['allow_override'] Redmine::IMAP.check(imap_options, options) -- 2.39.5