bepaald / signalbackup-tools

Tool to work with Signal Backup files.
GNU General Public License v3.0
755 stars 36 forks source link

add readme infor about difference --limittothreadsbyname and --croptothreadsbyname #221

Closed Meteor0id closed 2 months ago

Meteor0id commented 2 months ago

I just realized there are two variants and had not seen any info on the difference. Maybe add something about that in the readme?

bepaald commented 2 months ago

These are not two variants of the same thing.

--limittothreads(byname) is a modifier for various export function (like html or txt). This does not alter the actual backup file, it just modifies the behavior of the export. That is ./signalbackup-tools [input] [passhrase] --exporthtml [HTMLDIR] --limittothreads 1,2,3 --output [OUTPUTFILE] will produce an OUTPUTFILE identical to the input.

--croptothreads(byname) is a top level function (not a modifier of another) and alters the input backup file: signalbackup-tools [input] [passphrase] --croptothreads 1,2,3 -o [OUTPUTFILE] will generate a new, modified backup file that only contains threads 1, 2 & 3 that can be restored in Signal Android.

Each of these options is mentioned in the README, the former as a modifier to all the options it works with (html, txt, dumpmedia), the latter as one of the two cropping options (the other being --croptodates, which has its own modifier-counterpart for the export functions named --limittodates).

bepaald commented 2 months ago

I believe this issue can be closed without further action, but let me know if you disagree.

Meteor0id commented 2 months ago

Each of these options is mentioned in the README

thanks for the explanation, but maybe some mention of this difference between modifying/limiting and cropping could be in the readme, since in some cases both options could be used which confused me (but that might just be me)

bepaald commented 2 months ago

I've looked at this some more, but I really don't see how I could easily make it more clear than how it's written. The only way to really confuse the two is if one simply guesses their existence or by reading the source code without looking at what they do.

If anyone simply reads the README or the output of -h/--help (which should be the only way one even learns these options exist), I don't think there should be any confusion.

Thanks!

Meteor0id commented 1 month ago

@bepaald maybe the story privacy (list of excluded contacts) is not affected by cropping, I could test that later. I guess it isn't meant to be affected but in case there is no way to use the tool to affect listed contacts there.

But as you said contacts are complicated and kinda out of scope

bepaald commented 1 month ago

@bepaald maybe the story privacy (list of excluded contacts) is not affected by cropping, I could test that later. I guess it isn't meant to be affected but in case there is no way to use the tool to affect listed contacts there.

I've read this a dozen times now, but I'm afraid I don't really understand what you are saying here. I'm probably just dense, but maybe you could clarify?

Just a few remarks that may or may not be relevant:

Not sure that has anything to do with what you were saying, but there you go :-)