Sha256: 0119c0673214db599b8009799ed8fd9912f766ad1801e5353b7b3a1f561337d2
Contents?: true
Size: 442 Bytes
Versions: 16
Compression:
Stored size: 442 Bytes
Contents
# encoding: utf-8 module Mail class MessageIdsElement include Mail::Utilities def initialize(string) @message_ids = Mail::Parsers::MessageIdsParser.new.parse(string).message_ids.map { |msg_id| clean_msg_id(msg_id) } end def message_ids @message_ids end def message_id @message_ids.first end def clean_msg_id( val ) val =~ /.*<(.*)>.*/ ; $1 end end end
Version data entries
16 entries across 15 versions & 7 rubygems