Defect #10198

message_id regex in pop3.rb only recognizes Message-ID header (not Message-Id)

Added by Elie Delorme about 11 years ago. Updated about 11 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:


Category:Email receiving
Target version:1.4.0
Resolution:Fixed Affected version:


Some servers specify message id as "Message-Id" (lowercase 'd')
This is a minor issue since it only affects logging but fixing the regex makes it easier to track mail processing.

Simple fix:
(message =~ /^Message-I[Dd]: (.*)/ ? $1 : '').strip
instead of:
(message =~ /^Message-ID: (.*)/ ? $1 : '').strip

Associated revisions

Revision 8842
Added by Jean-Philippe Lang about 11 years ago

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


#1 Updated by Etienne Massip about 11 years ago

  • Category set to Email receiving
  • Target version set to Candidate for next major release

#2 Updated by Jean-Philippe Lang about 11 years ago

  • Status changed from New to Closed
  • Target version changed from Candidate for next major release to 1.4.0
  • Resolution set to Fixed

Fix committed in r8842.

Also available in: Atom PDF