bkettle / message-book Goto Github PK
View Code? Open in Web Editor NEWmake a book from imessages
make a book from imessages
It's nice to have a text output of messages but it would be awesome if images can be incorporated
Not a rust user, but got this:
% cargo --version
cargo 1.76.0
% cargo run -- --help
Compiling message-book v0.1.0 (/Users/---/github/message-book)
error: this file contains an unclosed delimiter
--> src/main.rs:184:3
|
55 | fn iter_messages(db_path: &PathBuf, chat_identifier: &str, output_dir: &PathBuf) -> Result<(), TableError> {
| - unclosed delimiter
...
137 | match msg.gen_text(&db) {
| - this delimiter might not be properly closed...
...
148 | }
| - ...as it matches this but it has different indentation
...
184 | }
| ^
error: could not compile `message-book` (bin "message-book") due to 1 previous error
Dear Ben!
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.
Any idea how to fix it?
Thank you
Best
Alexandre
apparently there are existing examples like: https://github.com/pbeck/whatsbook
In particular, the message : "https://citymapper.com/directions?endcoord=51.250276,6.764559&endname=Position%20actuelle&endaddress=Golzheim&isCurrentLocation=1&referrer=citymapper-messages" makes the process crash.
Hi bkettle -
Thanks so much for your blog post and code repository work. I've successfully generated the output folder with tex files. Do I need to install LaTex and xelatex to generate the final PDF?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.