Defect #10198

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

Added by Elie Delorme over 5 years ago. Updated over 5 years ago.

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

0%

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

Description

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 over 5 years ago

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

History

#1 Updated by Etienne Massip over 5 years ago

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

#2 Updated by Jean-Philippe Lang over 5 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