summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-30 14:57:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-30 14:57:46 +0000
commitabacc2754e7a18338e1ffb0ea4099fa22b9e5382 (patch)
treecb9f26d293c0c3ab2020523e09208bc0840f74f3 /lib
parent2fa8030afc2fe4773328a8f0debbdfea25b74f10 (diff)
downloadredmine-abacc2754e7a18338e1ffb0ea4099fa22b9e5382.tar.gz
redmine-abacc2754e7a18338e1ffb0ea4099fa22b9e5382.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/email.rake6
1 files 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)