Class: TMail::ReferencesHeader

Inherits:
StructuredHeader show all
Defined in:
lib/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, #quote_unquoted_bencode, #quote_unquoted_name, #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



435
436
437
438
439
# File 'lib/tmail/header.rb', line 435

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

#each_phraseObject



446
447
448
449
450
# File 'lib/tmail/header.rb', line 446

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

#idsObject



441
442
443
444
# File 'lib/tmail/header.rb', line 441

def ids
  ensure_parsed
  @ids
end

#phrasesObject



452
453
454
455
456
# File 'lib/tmail/header.rb', line 452

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

#refsObject



430
431
432
433
# File 'lib/tmail/header.rb', line 430

def refs
  ensure_parsed
  @refs
end