tmo1 / sms-ie

SMS Import / Export is a simple Android app that imports and exports SMS and MMS messages, call logs, and contacts from and to JSON / NDJSON files.
GNU General Public License v3.0
312 stars 38 forks source link

Can't find 'message.ndjson' #165

Closed speexy closed 4 months ago

speexy commented 4 months ago

Hey, during switching phones I received some messages that were not part of the backup. I had first tried other tools, but they failed and I only have the most recent SMS in other backup files.

SMS import / Export worked perfectly. BUT. I wanted to manually add the 9 SMS that I got in between states. So I unzipped the SMS import / export backup, added 9 lines to the ndjson manually and rezipped it (on ubuntu 20.04). Now that zipfile cannot be loaded into SMS import / export, I get the error message Can't find 'message.ndjson'

I first tried to find out if something is wrong with the jdson-lines, or the filename, but it looked fine.

Then I unzipped and rezipped the backup file without any other changes and I got the same error. I also tried to zip directly on graphene os, but that didn't help either.

I would be gratefull for any hint on how to zip the folder in the correct way, so that SMS import / export recognizes the files inside.

tmo1 commented 4 months ago

What you're trying to do should work. Would you please create a minimal reproducible example of a ZIP file that triggers the error and post it here (e.g., with just one message, redacted as appropriate)?

speexy commented 4 months ago

Sure, this one for instance:

reduced-messages-2024-02-27.zip

I'm on a Pixel 6 pro with Graphene OS/Android 14

tmo1 commented 4 months ago

Your ZIP file has a directory inside it (messages-2024-02-27), with messages.ndjson inside that directory. That directory should not exist, and messages.ndjson should be in the root of the ZIP file.

speexy commented 4 months ago

omg, how did I not see that. thank you

tmo1 commented 4 months ago

Sure! Good luck.