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?, #clean_date, #decode_RFC2231, #decode_params, #join_domain, #message_id?, #mime_encoded?, #quote_atom, #quote_boundary, #quote_parentheses, #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



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

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

#each_phraseObject



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

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

#idsObject



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

def ids
  ensure_parsed
  @ids
end

#phrasesObject



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

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

#refsObject



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

def refs
  ensure_parsed
  @refs
end