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:
parent
686430ee36
commit
1e66a0c069
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue