Closed Tonus1 closed 4 years ago
Thanks for the report @Tonus1. I have trouble reproducing this with the vcards in the test suite. Could you post your config file and provide a minimal vcard to reproduce this? Especially delete all sensitive information from the vcard.
The vcard file :
$cat XXXXXXXXXabcd.vcf
BEGIN:VCARD
VERSION:3.0
UID:c714939b-6646-465b-aae3-5edda32029cd
CATEGORIES:Famille
EMAIL;TYPE=internet:whatever@hotmail.fr
FN:Jan Tobis
N:Tobis;Jan;;;
REV:20200407T090133Z
END:VCARD
The khard.conf :
$cat khard.conf
[addressbooks]
[[default]]
path = ~/Contacts/crash/
[general]
default_action = list
editor = nano
merge_editor = ~/.config/khard/sdiff_khard_wrapper.sh
[contact table]
# display names by first or last name: first_name / last_name
display = first_name
# group by address book: yes / no
#group_by_addressbook = yes
group_by_addressbook = no
# reverse table ordering: yes / no
reverse = no
# append nicknames to name column: yes / no
show_nicknames = no
# show uid table column: yes / no
show_uids = no
# sort by first or last name: first_name / last_name
sort = last_name
# localize dates: yes / no
localize_dates = yes
# set a comma separated list of preferred phone number types in descending priority
# or nothing for non-filtered alphabetical order
preferred_phone_number_type = pref,cell,work,home
# set a comma separated list of preferred email address types in descending priority
# or nothing for non-filtered alphabetical order
preferred_email_address_type = pref,work,home
[vcard]
# extend contacts with your own private objects
# these objects are stored with a leading "X-" before the object name in the vcard files
# every object label may only contain letters, digits and the - character
# example:
# private_objects = Jabber, Skype, Twitter
#private_objects = Jabber, Skype, Twitter
# preferred vcard version: 3.0 / 4.0
#preferred_version = 4.0
preferred_version = 3.0
# Look into source vcf files to speed up search queries: yes / no
search_in_source_files = no
# skip unparsable vcard files: yes / no
skip_unparsable = yes
The request :
khard -c khard.conf ls anto
khard -c khard.conf email anto
I could provide a few more, like Tonus Anja and request san or usanj, since the request could match the end of the first name and the beginning of the last name...
Thanks I can reproduce it with this. Can you test #250 and report back? If that works I think I can merge it tonight (have to go to work now).
Hi,
Using khard with mutt (and without) gives me some strange behaviour :
This would not happen with longer string. For some specific, it works sometimes ("pap" gives results but "isa" fails, "pa" or cg fails and "is" gives results). I noticed the results are one per line, except sometimes (like with "is"), there's an empty line between each result.
Compiled from sources (git, release tarball would'nt work).
It seems that it's a strange bug shown with debug option : it fails because the searched string doesn't really exist in the vcard. I search ever and it fails with a card saying namephilippeverXXX but having First name "Philippe" and laste name "EverXXXsomething" without the real string in the vcard. Same fail with Jan Toxic while searching for "anto".