lib/mapi/pst.rb
def to_a
			return [] if !table
			table.map do |attachment|
				attachment = attachment.to_a
				#p attachment
				# potentially merge with yet more properties
				# this still seems pretty broken - especially the property overlap
				if attachment_id2 = attachment.assoc(PR_ATTACHMENT_ID2)
					#p attachment_id2.last
					#p idx2[attachment_id2.last]
					@desc2.desc = idx2[attachment_id2.last]
					RawPropertyStore.new(@desc2).each do |a, b, c|
						record = attachment.assoc a
						attachment << record = [] unless record
						record.replace [a, b, c]
					end
				end
				attachment
			end
		end
# a "fake" MAPI property name for this constant. if you get a mapi property with
# this value, it is the id2 value to use to get attachment data.
a "fake" MAPI property name for this constant. if you get a mapi property with
this value, it is the id2 value to use to get attachment data.
a " fake " MAPI property name for this constant . if you get a mapi property with this value it is the id2 value to use to get attachment data .
def to_a
			return [] if !table
			table.map do |attachment|
				attachment = attachment.to_a
				if attachment_id2 = attachment.assoc(PR_ATTACHMENT_ID2)
					_id2.last
					@desc2.desc = idx2[attachment_id2.last]
					RawPropertyStore.new(@desc2).each do |a, b, c|
						record = attachment.assoc a
						attachment << record = [] unless record
						record.replace [a, b, c]
					end
				end
				attachment
			end
		end
def to_a return [ ] if ! table table . map do | attachment | attachment = attachment . to_a if attachment_id2 = attachment . assoc ( PR_ATTACHMENT_ID2 ) @desc2 . desc = idx2 [ attachment_id2 . last ] RawPropertyStore . new ( @desc2 ) . each do | a , b , c | record = attachment . assoc a attachment << record = [ ] unless record record . replace [ a , b , c ] end end attachment end end
a "fake" MAPI property name for this constant.
a " fake " MAPI property name for this constant .
#p attachment # potentially merge with yet more properties # this still seems pretty broken - especially the property overlap #p attachment_id2.last #p idx2[attachment_id2.last]