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

tpb: name fuzzy-match disambiguation #5

Open
tsani opened this issue Apr 28, 2017 · 0 comments
Open

tpb: name fuzzy-match disambiguation #5

tsani opened this issue Apr 28, 2017 · 0 comments

Comments

@tsani
Copy link
Owner

tsani commented Apr 28, 2017

If two recipients have the same name, then tpb selects the one with the most recent activity. Normally this is what you want, and it's pretty rare to have multiple contacts with exactly the same name, but still, if you have person A with less recent activity that person B and person A's name is a substring of person B's, then you're fucked. There is simply no way to send the message to person A by name. Of course, you could send the message by number, but sms threads doesn't show numbers; it only shows names, so finding out the name would mean sifting through the JSV output, which sucks.

One way to resolve this is to add an --exact switch to specify that the name is exact. In that case we should replace FuzzyName in the code with a sum type ReceipientName whose constructors can be Fuzzy FuzzyName | Exact ExactName.
Another idea could be to number the threads in sms threads so that a recipient can be specified by thread number.

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

No branches or pull requests

1 participant