Skip to content

tpb: name fuzzy-match disambiguation #5

@tsani

Description

@tsani

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions