Project

General

Profile

Actions

Defect #10198

closed

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

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

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
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

Actions

Also available in: Atom PDF