Thanks for this project, it looks great! I just tried to run it on a backup of my iPhone and got the following error message:
➜ message-book git:(main) ✗ cargo run -- -i ./backup XXXXXXXXXX'
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running `target/debug/message-book -i ./backup XXXXXXXXXX`
Found chat Chat { rowid: 996, chat_identifier: "XXXXXXXXXX", service_name: Some("SMS"), display_name: Some("") }
Found chat Chat { rowid: 997, chat_identifier: "XXXXXXXXXX", service_name: Some("iMessage"), display_name: Some("") }
Starting chapter ch-2015-10
Starting chapter ch-2015-11
Starting chapter ch-2015-12
Starting chapter ch-2016-01
Starting chapter ch-2016-02
thread 'main' panicked at src/main.rs:137:27:
failed to generate message: MissingData
stack backtrace:
0: rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1649:5
3: core::result::Result<T,E>::expect
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1030:23
4: message_book::iter_messages
at ./src/main.rs:137:9
5: message_book::main
at ./src/main.rs:179:5
6: core::ops::function::FnOnce::call_once
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.