summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-31 14:56:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-31 14:56:30 +0000
commit16eb0421e5acbddcb3fa4ed18326b73bf6901482 (patch)
tree6cb5990d870a67620d4b87f4ed95c883530a1a19 /lib/tasks
parent538bd7cd7fa880b35ce7f28d86a9b583a494fb46 (diff)
downloadredmine-16eb0421e5acbddcb3fa4ed18326b73bf6901482.tar.gz
redmine-16eb0421e5acbddcb3fa4ed18326b73bf6901482.zip
IMAP: add options to move received emails.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2220 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/email.rake11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake
index 30101cab7..0f74d6bd3 100644
--- a/lib/tasks/email.rake
+++ b/lib/tasks/email.rake
@@ -1,4 +1,4 @@
-# redMine - project management software
+# Redmine - project management software
# Copyright (C) 2006-2008 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
@@ -71,6 +71,11 @@ Issue attributes control options:
allow_override=ATTRS allow email content to override attributes
specified by previous options
ATTRS is a comma separated list of attributes
+
+Processed emails control options:
+ move_on_success=MAILBOX move emails that were successfully received
+ to MAILBOX instead of deleting them
+ move_on_failure=MAILBOX move emails that were ignored to MAILBOX
Examples:
# No project specified. Emails MUST contain the 'Project' keyword:
@@ -95,7 +100,9 @@ END_DESC
:ssl => ENV['ssl'],
:username => ENV['username'],
:password => ENV['password'],
- :folder => ENV['folder']}
+ :folder => ENV['folder'],
+ :move_on_success => ENV['move_on_success'],
+ :move_on_failure => ENV['move_on_failure']}
options = { :issue => {} }
%w(project status tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }