Redmine 4.1.1

This commit is contained in:
Manuel Cillero 2020-11-22 21:20:06 +01:00
parent 33e7b881a5
commit 3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions

View file

@ -1,5 +1,5 @@
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
# Copyright (C) 2006-2019 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@ -26,7 +26,7 @@ END_DESC
task :read => :environment do
Mailer.with_synched_deliveries do
MailHandler.receive(STDIN.read, MailHandler.extract_options_from_env(ENV))
MailHandler.safe_receive(STDIN.read, MailHandler.extract_options_from_env(ENV))
end
end
@ -56,10 +56,14 @@ User and permissions options:
no_permission_check=1 disable permission checking when receiving
the email
no_account_notice=1 disable new user account notification
no_notification=1 disable email notification to new user
default_group=foo,bar adds created user to foo and bar groups
Issue attributes control options:
project=PROJECT identifier of the target project
project_from_subaddress=ADDR
select project from subaddress of ADDR found
in To, Cc, Bcc headers
status=STATUS name of the target status
tracker=TRACKER name of the target tracker
category=CATEGORY name of the target category
@ -157,13 +161,10 @@ END_DESC
user = User.find_by_login(args[:login])
abort l(:notice_email_error, "User #{args[:login]} not found") unless user && user.logged?
ActionMailer::Base.raise_delivery_errors = true
begin
Mailer.with_synched_deliveries do
Mailer.test_email(user).deliver
end
Mailer.deliver_test_email(user)
puts l(:notice_email_sent, user.mail)
rescue Exception => e
rescue => e
abort l(:notice_email_error, e.message)
end
end