Class: TMail::ReferencesHeader

Inherits:
StructuredHeader show all
Defined in:
lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb

Constant Summary

Constants inherited from HeaderField

HeaderField::FNAME_TO_CLASS

Constants included from TextUtils

TextUtils::ATOM_UNSAFE, TextUtils::CONTROL_CHAR, TextUtils::MESSAGE_ID, TextUtils::MIME_ENCODED, TextUtils::MONTH, TextUtils::NKF_FLAGS, TextUtils::PHRASE_UNSAFE, TextUtils::RFC2231_ENCODED, TextUtils::TOKEN_UNSAFE, TextUtils::WDAY, TextUtils::ZONESTR_TABLE

Instance Method Summary collapse

Methods inherited from StructuredHeader

#comments

Methods inherited from HeaderField

#accept, #body, #body=, #empty?, #illegal?, #initialize, #inspect, internal_new, new, new_from_port, newobj

Methods included from StrategyInterface

#accept_strategy, create_dest, #decoded, #encoded

Methods included from TextUtils

#atom_safe?, #decode_RFC2231, #decode_params, #join_domain, #message_id?, #mime_encoded?, #quote_atom, #quote_boundary, #quote_phrase, #quote_token, #time2str, #timezone_string_to_unixtime, #to_kcode, #token_safe?, #unquote

Constructor Details

This class inherits a constructor from TMail::HeaderField

Instance Method Details

#each_idObject



433
434
435
436
437
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb', line 433

def each_id
  self.refs.each do |i|
    yield i if MESSAGE_ID === i
  end
end

#each_phraseObject



444
445
446
447
448
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb', line 444

def each_phrase
  self.refs.each do |i|
    yield i unless MESSAGE_ID === i
  end
end

#idsObject



439
440
441
442
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb', line 439

def ids
  ensure_parsed
  @ids
end

#phrasesObject



450
451
452
453
454
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb', line 450

def phrases
  ret = []
  each_phrase {|i| ret.push i }
  ret
end

#refsObject



428
429
430
431
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb', line 428

def refs
  ensure_parsed
  @refs
end