Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17508
e93f8b46-1217-0410-a6f0-
8f06a7374b81
def index
options = params.dup
email = options.delete(:email)
- if MailHandler.receive(email, options)
+ if MailHandler.safe_receive(email, options)
head :created
else
head :unprocessable_entity
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