Add iMessage (macOS) support - #110
Merged
Merged
Conversation
…tombstones Four artifacts from a macOS chat.db: the message table (times, direction, sender, chat, body, service, tapback), the attachment table with the file embedded from the extraction, chat threads with participant handles, and the deletion tombstone tables. Every chat.db found is parsed, so a Mac with more than one user account reports each account. message.date is decoded as nanoseconds above 1e15 and seconds below, so both the modern and pre-10.13 units land correctly. The stored "~/Library/..." attachment path is rewritten to a "*/Library/..." pattern so the staged copy is matched and embedded. attributedBody is not decoded; a row with empty text is flagged in Body Source. Validated against the public Josh Hickman macOS Big Sur test image: 25 messages (one recoverable only with the write-ahead log applied), 5 attachments all embedded, 1 chat. The deletion tombstone tables were empty on that image, so their schema is confirmed but not their contents. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Move Text ahead of Chat Display Name so the conversation role columns (time, direction, sender, chat identifier, text) run in the order the data_views block declares, satisfying check_conversation_column_order. Row tuple reordered to match; baseline regenerated. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds iMessage support for macOS. Four artifacts from a user's chat.db:
Every chat.db found is parsed, so a Mac with more than one user account reports each account. message.date is read as nanoseconds above 1e15 and seconds below, so pre-10.13 and modern databases both decode. The stored "~/Library/..." attachment path is rewritten to a "*/Library/..." pattern so the staged copy is matched. attributedBody is not decoded; a text-empty row is flagged in Body Source.
Validated on the public Josh Hickman macOS Big Sur image: 25 messages (one only in the write-ahead log), 5 attachments all embedded, 1 chat. The tombstone tables were empty there, so their schema is confirmed but not their contents.