Repository navigation
Add article about the Relativity Short Message Format (RSMF) #400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| --- | ||
| tags: | ||
| - File Formats | ||
| - Mobile Forensics | ||
| - Legal | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let' s drop the Legal tag, given the article is about a file format. |
||
| --- | ||
| The **Relativity Short Message Format** (**RSMF**) is a file format for short message data, such | ||
| as SMS, chat applications and enterprise messaging, defined by the eDiscovery software vendor | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this an open, closed, and/or propriety format? |
||
| Relativity. An RSMF file packages one or more conversations, with their participants, events and | ||
| attachments, so that a document review platform can ingest them as structured records instead of | ||
| as a rendered document. RSMF files use the `.rsmf` extension. | ||
|
|
||
| RSMF is a conversion format. An RSMF file is produced by a tool from data that was collected or | ||
| exported elsewhere, such as a mobile device extraction or a chat platform export, and what it | ||
| contains depends on what that tool chose to write. | ||
|
|
||
| ## Structure | ||
|
|
||
| An RSMF file is an [EML](eml.md) message: it is compliant with RFC 5322 (Internet Message Format) | ||
| and uses MIME. Relativity describes it as essentially a ZIP archive wrapped in an EML file. | ||
|
|
||
| The file consists of: | ||
|
|
||
| * a **header** with file-level metadata, in standard mail headers and in headers prefixed with | ||
| `X-RSMF-`; | ||
| * a **body**, a `text/plain` part that contains the extracted text of the conversation; | ||
| * exactly one **attachment** named `rsmf.zip`, encoded as base64, with `Content-Disposition` set | ||
| to attachment. | ||
|
|
||
| ### Header | ||
|
|
||
| `X-RSMF-Version` is the only required header. Relativity documentation states that it should be | ||
| included in the first line of the header. Optional headers include `X-RSMF-Generator`, | ||
| `X-RSMF-BeginDate`, `X-RSMF-EndDate` and `X-RSMF-EventCount`. Version 2.0 adds optional headers | ||
| such as `X-RSMF-Application`, `X-RSMF-Custodian`, `X-RSMF-Participants`, | ||
| `X-RSMF-AttachmentCount` and `X-RSMF-EventCollectionID`. Custom headers are allowed if they use | ||
| the `X-RSMF-` prefix. | ||
|
|
||
| During processing, Relativity maps the `X-RSMF-` headers to fields, and the standard `To`, `From` | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a tool trait or part the file format? |
||
| and `Subject` headers to the corresponding email fields. | ||
|
|
||
| ### Body | ||
|
|
||
| The body is generated by the tool that created the file, not by the review platform. Relativity | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would recommend to keep the tool and format description separate, you could add a "Relativity gotchas" section below the file format description. |
||
| uses it as the extracted text of the document: it is the text that is searched and shown in the | ||
| extracted text view. | ||
|
|
||
| ### rsmf.zip | ||
|
|
||
| The archive contains a file named `rsmf_manifest.json` at its root, and every attachment and | ||
| avatar image that the manifest refers to. An attachment is referenced by its `id`, which must be | ||
| the exact file name inside `rsmf.zip`, including the extension. | ||
|
|
||
| ## Manifest | ||
|
|
||
| The manifest is a JSON document with four required root properties: | ||
|
|
||
| * `version` | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what do the version represent? tool version, format version, other? |
||
| * `participants`, a list of the people taking part, each with an `id` and optionally a display | ||
| name, an email address and an avatar | ||
| * `conversations`, a list of conversations, each with an `id`, a `platform` and a `type` of | ||
| either `direct` (fixed participants) or `channel` (participants can change) | ||
| * `events`, a list of events, each linked to a participant and a conversation by `id` | ||
|
|
||
| In schema version 2.0.0 the event `type` is one of `message`, `disclaimer`, `join`, `leave`, | ||
| `history` or `unknown`. A message event can carry a body, reactions, attachments, edits, a | ||
| `deleted` flag and an `importance`. A `parent` property links a message to the thread it belongs | ||
| to. | ||
|
|
||
| Timestamps must be ISO 8601 date/time values. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this YYYY-MM-DDThh:mm:ss.# ? with/without a time zone? are ISO 8601 weeks also supported?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see some of this is called out in "Forensic Considerations" |
||
|
|
||
| Relativity publishes a JSON schema for the manifest and a validator library, see External Links. | ||
|
|
||
| ## Versions | ||
|
|
||
| Two versions are in use, 1.0 and 2.0. Version 2.0 adds read receipts, the direction of a message | ||
| (`incoming` or `outgoing`, relative to the custodian), history events and custom platform icons. | ||
| Several properties that are required in 1.0, such as the participant, timestamp and conversation | ||
| of an event, are optional in 2.0. | ||
|
|
||
| ## Forensic Considerations | ||
|
|
||
| * An RSMF file is a derived representation. It shows what its generator wrote into the manifest | ||
| and the body, not the source data, and a review platform can only display what the manifest | ||
| contains. Fidelity to the source should be verified against the original extraction or export. | ||
| * The body and the manifest are written independently by the generator. Search runs against the | ||
| body, while per-event metadata, such as senders and timestamps, is held in the manifest and is | ||
| not searchable as text in Relativity. | ||
| * The schema requires ISO 8601 timestamps but its examples carry no time zone offset. Reveal | ||
| documents that it assumes RSMF dates to be in UTC. A timestamp without an offset is ambiguous | ||
| and the time zone basis should be confirmed with the producer of the file. | ||
| * An attachment whose file name does not match its `id` in the manifest is not linked to its | ||
| message. The Relativity validator reports both an attachment missing from the archive and a | ||
| file in the archive that the manifest does not reference. | ||
| * Relativity deduplicates RSMF files with the email method, hashing the header, the recipients, | ||
| the body and the attachments. The same conversation collected from two custodians will | ||
| normally have different headers and is not flagged as a duplicate. | ||
| * Relativity recommends no more than 10,000 events per file and does not support RSMF files larger | ||
| than 2 GB. Large conversations are therefore usually split ("sliced") into several files, for | ||
| example by participants and by time period, and a single file may hold only part of a | ||
| conversation. | ||
|
|
||
| ## Opening an RSMF File | ||
|
|
||
| Because an RSMF file is an EML message, it can be opened in an email application after changing | ||
| the extension from `.rsmf` to `.eml`. This shows the headers, the extracted text and the | ||
| `rsmf.zip` attachment, which can be saved and opened as an ordinary ZIP archive to read the | ||
| manifest. | ||
|
|
||
| ## See Also | ||
|
|
||
| * [EML](eml.md) | ||
| * [Email Headers](email_headers.md) | ||
| * [SMS](sms.md) | ||
| * [Nuix](nuix_pty_ltd.md) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would drop Nuix, it is mentioned but not really related |
||
|
|
||
| ## External Links | ||
|
|
||
| * [The Relativity Short Message Format](https://help.relativity.com/RelativityOne/Content/System_Guides/Relativity_Short_Message_Format/Relativity_short_message_format.htm), | ||
| Relativity documentation | ||
| * [Creating an RSMF file](https://help.relativity.com/Server2025/Content/System_Guides/Relativity_Short_Message_Format/Creating_an_RSMF_File.htm), | ||
| Relativity documentation | ||
| * [Processing an RSMF file](https://help.relativity.com/RelativityOne/Content/System_Guides/Relativity_Short_Message_Format/Processing_an_RSMF_file.htm), | ||
| Relativity documentation | ||
| * [RSMF manifest schema and validator samples](https://github.com/relativitydev/rsmf-validator-samples) | ||
| * [RSMF generation sample](https://github.com/relativitydev/relativity-rsmf-gen-sample) | ||
| * [Processing Short Message Format (RSMF)](https://docs.revealdata.com/docs/processing-short-message-format-rsmf), | ||
| Reveal documentation | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use |
||
| * [Ingest and export RSMF data](https://documentation.nuix.com/en/content/server/general/projects_frameless/Nuix%20Neo%20Solutions/1_two/Ingest-and-export-RSMF-data_43581710.html), | ||
| Nuix documentation | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use by X, with optional date |
||
|
|
||
| ## Tools | ||
|
|
||
| * [Relativity RSMF Validator SDK](https://www.nuget.org/packages/Relativity.RSMFU.Validator.SDK/), | ||
| a .NET library that validates RSMF files before ingestion | ||
| * [Nuix Workstation](nuix_pty_ltd.md), ingests and exports RSMF 1.0 and 2.0 files | ||
| * [RSMF viewer](https://getchatexport.com/tools/rsmf-viewer/) by ChatExport, a free | ||
| browser-based viewer that reads an RSMF file locally and shows the conversation and a report of | ||
| the manifest | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's drop the "Mobile Forensics" tag given the article mostly describes a file format.