POP3 task only recognizes Message-ID header, not Message-Id (#10198).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8842 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-11 10:06:14 +00:00
parent 686430ee36
commit 1e66a0c069
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ module Redmine
logger.debug "#{pop_session.mails.size} email(s) to process..." if logger && logger.debug?
pop_session.each_mail do |msg|
message = msg.pop
message_id = (message =~ /^Message-ID: (.*)/ ? $1 : '').strip
message_id = (message =~ /^Message-I[dD]: (.*)/ ? $1 : '').strip
if MailHandler.receive(message, options)
msg.delete
logger.debug "--> Message #{message_id} processed and deleted from the server" if logger && logger.debug?