Fetching emails via rake task does not support --no-account-notice and --default-group options (#13712).
Contributed by Julian Faude and Alex Shulgin. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11748 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f8b756627c
commit
2ad0465864
|
@ -29,6 +29,8 @@ General options:
|
||||||
create: create a user account
|
create: create a user account
|
||||||
no_permission_check=1 disable permission checking when receiving
|
no_permission_check=1 disable permission checking when receiving
|
||||||
the email
|
the email
|
||||||
|
no_account_notice=1 disable new user account notification
|
||||||
|
default_group=foo,bar adds created user to foo and bar groups
|
||||||
|
|
||||||
Issue attributes control options:
|
Issue attributes control options:
|
||||||
project=PROJECT identifier of the target project
|
project=PROJECT identifier of the target project
|
||||||
|
@ -58,6 +60,8 @@ END_DESC
|
||||||
options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
|
options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
|
||||||
options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
|
options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
|
||||||
options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
|
options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
|
||||||
|
options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
|
||||||
|
options[:default_group] = ENV['default_group'] if ENV['default_group']
|
||||||
|
|
||||||
MailHandler.receive(STDIN.read, options)
|
MailHandler.receive(STDIN.read, options)
|
||||||
end
|
end
|
||||||
|
@ -73,6 +77,8 @@ General options:
|
||||||
create: create a user account
|
create: create a user account
|
||||||
no_permission_check=1 disable permission checking when receiving
|
no_permission_check=1 disable permission checking when receiving
|
||||||
the email
|
the email
|
||||||
|
no_account_notice=1 disable new user account notification
|
||||||
|
default_group=foo,bar adds created user to foo and bar groups
|
||||||
|
|
||||||
Available IMAP options:
|
Available IMAP options:
|
||||||
host=HOST IMAP server host (default: 127.0.0.1)
|
host=HOST IMAP server host (default: 127.0.0.1)
|
||||||
|
@ -129,6 +135,8 @@ END_DESC
|
||||||
options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
|
options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
|
||||||
options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
|
options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
|
||||||
options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
|
options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
|
||||||
|
options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
|
||||||
|
options[:default_group] = ENV['default_group'] if ENV['default_group']
|
||||||
|
|
||||||
Redmine::IMAP.check(imap_options, options)
|
Redmine::IMAP.check(imap_options, options)
|
||||||
end
|
end
|
||||||
|
@ -162,6 +170,8 @@ END_DESC
|
||||||
options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
|
options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
|
||||||
options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
|
options[:unknown_user] = ENV['unknown_user'] if ENV['unknown_user']
|
||||||
options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
|
options[:no_permission_check] = ENV['no_permission_check'] if ENV['no_permission_check']
|
||||||
|
options[:no_account_notice] = ENV['no_account_notice'] if ENV['no_account_notice']
|
||||||
|
options[:default_group] = ENV['default_group'] if ENV['default_group']
|
||||||
|
|
||||||
Redmine::POP3.check(pop_options, options)
|
Redmine::POP3.check(pop_options, options)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue