OSDN Git Service

Adds status option to email integration rake tasks.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2008 14:57:46 +0000 (14:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2008 14:57:46 +0000 (14:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2075 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/email.rake

index a37b3e1..30101ca 100644 (file)
@@ -23,6 +23,7 @@ Read an email from standard input.
 \r
 Issue attributes control options:\r
   project=PROJECT          identifier of the target project\r
+  status=STATUS            name of the target status\r
   tracker=TRACKER          name of the target tracker\r
   category=CATEGORY        name of the target category\r
   priority=PRIORITY        name of the target priority\r
@@ -44,7 +45,7 @@ END_DESC
 \r
     task :read => :environment do\r
       options = { :issue => {} }\r
-      %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }\r
+      %w(project status tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }\r
       options[:allow_override] = ENV['allow_override'] if ENV['allow_override']\r
       \r
       MailHandler.receive(STDIN.read, options)\r
@@ -63,6 +64,7 @@ Available IMAP options:
 \r
 Issue attributes control options:\r
   project=PROJECT          identifier of the target project\r
+  status=STATUS            name of the target status\r
   tracker=TRACKER          name of the target tracker\r
   category=CATEGORY        name of the target category\r
   priority=PRIORITY        name of the target priority\r
@@ -96,7 +98,7 @@ END_DESC
                       :folder => ENV['folder']}\r
                       \r
       options = { :issue => {} }\r
-      %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }\r
+      %w(project status tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }\r
       options[:allow_override] = ENV['allow_override'] if ENV['allow_override']\r
 \r
       Redmine::IMAP.check(imap_options, options)\r