Module: RCS::SmsoldEvidence
- Defined in:
- lib/rcs-common/evidence/sms.rb
Instance Method Summary collapse
- #content ⇒ Object
- #decode_content(common_info, chunks) {|info| ... } ⇒ Object
- #generate_content ⇒ Object
Instance Method Details
#content ⇒ Object
7 8 9 |
# File 'lib/rcs-common/evidence/sms.rb', line 7 def content raise "Not implemented!" end |
#decode_content(common_info, chunks) {|info| ... } ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/rcs-common/evidence/sms.rb', line 15 def decode_content(common_info, chunks) info = Hash[common_info] info[:data] ||= Hash.new info[:data][:type] = :sms stream = StringIO.new chunks.join @sms = MAPISerializer.new.unserialize stream info[:da] = @sms.delivery_time info[:data][:from] = @sms.fields[:from].delete("\x00") info[:data][:rcpt] = @sms.fields[:rcpt].delete("\x00") info[:data][:content] = @sms.fields[:subject] info[:data][:incoming] = @sms.flags yield info if block_given? :keep_raw end |
#generate_content ⇒ Object
11 12 13 |
# File 'lib/rcs-common/evidence/sms.rb', line 11 def generate_content raise "Not implemented!" end |