Package: mutt-vc-query
Version: 005-2
Severity: normal

Dear Maintainer,

I did some testing with mutt-vc-query using an old Google vcf export.
Doing so I noted that mutt_vc_query stops parsing a vcf file if a
vcard contains an empty FN: field.

I attached an minimal example, which contains 3 VCARDs (a...@example.com,
b...@example.com and c...@example.com).
All three entries have a FN: field, but the one of B is empty.
Running mutt_vc_query on this file does not see user C:

$ mutt_vc_query -f emptyname.vcf example.com
Searching database ... 2 entries ... 1 matching.
a...@example.com   A        

If I manually remove the empty FN: line, all 3 lines are checked and C
is shown:

$ mutt_vc_query -f emptyname.vcf example.com
Searching database ... 3 entries ... 2 matching.
a...@example.com   A        
c...@example.com   C        

You can try this out with lager vcf files, after an empty "FN:" field
every succeeding vcards are not parsed.

The same problem can be triggered with an empty "N:" field.

Since there were no problem relevant changes in mutt-vc-query and
libvc since stable, the problem should also exist in testing/unstable
versions.

Greetings
Roland

-- System Information:
Debian Release: 12.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-23-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf-8, LC_CTYPE=de_DE.utf-8 (charmap=UTF-8), 
LANGUAGE=de_DE:de:en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mutt-vc-query depends on:
ii  libc6   2.36-9+deb12u7
ii  libvc0  012-3

mutt-vc-query recommends no packages.

Versions of packages mutt-vc-query suggests:
ii  mutt  2.2.12-0.1~deb12u1

-- no debconf information

<<attachment: emptyname.vcf>>

Reply via email to