]> source.dussan.org Git - redmine.git/commitdiff
POP3 task only recognizes Message-ID header, not Message-Id (#10198).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Feb 2012 10:06:14 +0000 (10:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Feb 2012 10:06:14 +0000 (10:06 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8842 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/pop3.rb

index 7eb61be319d2e2e84e2a409ac544b44d834b418f..578de73a69da50df7293b329c8130cd6990d9000 100644 (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?