Skip to content
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

Support for iMessages with multiple recipients #2

Open
vicould opened this issue Jan 10, 2012 · 2 comments
Open

Support for iMessages with multiple recipients #2

vicould opened this issue Jan 10, 2012 · 2 comments

Comments

@vicould
Copy link

vicould commented Jan 10, 2012

Around the line 401 in the function responsible for getting the addresses for the iMessage a check is failed if the madrid_flags is different from the tested values, making the return of the function faulty as the variables are not initialized.
The code for this type of iMessage is 102405, I will submit a patch once it works for me. I have to probably look into how the recipients are retrieved from the item, so that the multiple recipients are correctly handled.

@toffer
Copy link
Owner

toffer commented Jan 10, 2012

Yeah, handling group messages is more complicated than messages with single recipients, so I haven't gotten around to that.

However, just because I don't export group messages, that doesn't mean that the script should crash when it encounters one. Which it does, currently.

That's a big screwup on my part, but I'm going to push a fix for that shortly.

As for actually exporting iMessage group chats, the catch is that the recipients aren't stored in the message table (like they are for single recipients). Instead, they are stored as binary-plist BLOBs in the participants field in the madrid_chat table.

Exporting group messages is something I would like to add, but I probably won't get to it right away. If you add it before I do, I'd love to see what you come up with!

@vicould
Copy link
Author

vicould commented Jan 10, 2012

Thanks for the news! I just saw your commit, time to update.

I will try to do that during the week-end, it's always nice to hack some python :)
You also put in the read me that you skip the messages containing something else than text, do you know how the pictures are stored in the db? Is it directly data fields that would need a dump or is it more complex?

I also had a first issue due to the encryption of the backup, but I saw that Apple did not really document how they perform it, so there does no seem to be an easy solution.

Great work for the rest of the script, it seems well written, and not to hard to read and how the parts interact!

Ludovic

On Jan 10, 2012, at 3:52 PM, Tom Offermann wrote:

Yeah, handling group messages are more complicated than messages with single recipients, so I haven't gotten around to that.

However, just because I don't export group messages, that doesn't mean that the script should crash when it encounters one. Which it does, currently.

That's a big screwup on my part, but I'm going to push a fix for that shortly.

As for actually exporting iMessage group chats, the catch is that the recipients aren't stored in the message table (like they are for single recipients). Instead, they are stored as binary-plist BLOBs in the participants field in the madrid_chat table.

Exporting group messages is something I would like to add, but I probably won't get to it right away. If you add it before I do, I'd love to see what you come up with!


Reply to this email directly or view it on GitHub:
#2 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants