Class: Mapi::Pst::RecipientTable

Inherits:
BlockParser show all
Defined in:
lib/mapi/pst.rb

Overview

there is no equivalent to this in libpst. ID2_RECIPIENTS was just guessed given the above AttachmentTable.

Constant Summary

Constants inherited from BlockParser

BlockParser::ID2_ATTACHMENTS, BlockParser::ID2_RECIPIENTS, BlockParser::IMMEDIATE_TYPES, BlockParser::INDIRECT_TYPES, BlockParser::PR_BODY_HTML, BlockParser::PR_SUBJECT, BlockParser::TYPES, BlockParser::USE_MAIN_DATA

Instance Attribute Summary collapse

Attributes inherited from BlockParser

#data_chunks

Instance Method Summary collapse

Methods inherited from BlockParser

#get_data_array, #get_data_indirect, #get_data_indirect_io, #handle_indirect_values, #load_page_header, #load_root_header

Constructor Details

#initialize(node) ⇒ RecipientTable

Returns a new instance of RecipientTable.

Parameters:



1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
# File 'lib/mapi/pst.rb', line 1605

def initialize node
	@node = node
	# no super, we only actually want BlockParser2#idx2
	#@table = nil
	#return unless node.sub_block
	#return unless block = sub_block[ID2_RECIPIENTS]
	## FIXME make a fake desc.
	#fake_node = OpenStruct.new :block => block, :pst => node.pst, :sub_block => node.sub_block
	if @node.has_sub ID2_RECIPIENTS
		@table = RawPropertyStoreTable.new @node, ID2_RECIPIENTS
	else
		@table = []
	end

end

Instance Attribute Details

#nodeNodePtr (readonly)

Returns:



1599
1600
1601
# File 'lib/mapi/pst.rb', line 1599

def node
  @node
end

#tableRawPropertyStoreTable (readonly)



1602
1603
1604
# File 'lib/mapi/pst.rb', line 1602

def table
  @table
end

Instance Method Details

#to_aArray<Array<Array(Integer, Integer, Object)>>

Returns:

  • (Array<Array<Array(Integer, Integer, Object)>>)


1622
1623
1624
1625
# File 'lib/mapi/pst.rb', line 1622

def to_a
	return [] if !table
	table.map { |x| x.to_a }
end