nextcloud / contacts

📇 Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
560 stars 169 forks source link

Imported contacts cannot be mailed to in groups #3150

Open Cwpute opened 1 year ago

Cwpute commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

Some imported contacts from Gmail using a .vcf file (which ones i cant tell) dont have an email type set by default, which prevents from sending a group mail to a group within which they are. Nextcloud just refuses to make the "email application choosing" window appear, probably because it cannot read their email adress as such.

Steps to reproduce

  1. Export Google contacts into a .vcf file
  2. Import them to Nextcloud from the Contacts pannel
  3. Some contacts don't have a Email type set by default ("Domicile" "Travail" and "Autres" stand for "Personal" "Work" and "Other"): https://i.imgur.com/XYlD2mP.png
  4. Create or use an already existing group in which one or several of these contacts will be
  5. Try sending an email to the whole group through the Contacts UI: https://rimgo.esmailelbob.xyz/IPyq35h.png
  6. Nothing happens.

Expected behavior

On computer, the web-browser should prompt me with a window asking me for which mail app i want to use, or send me straight to the mail app i chose before if i did so.

Installation method

None

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

None i'm aware of. Cannot say for sure as i'm not an admin.

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

May be related to this issue:

Cwpute commented 1 year ago

since the topic was moved to the relevant place, i found this issue that might also be related: https://github.com/nextcloud/contacts/issues/2299

botsarenthuman commented 2 months ago

Ran into this today, it's annoying as the mailto link will pop up with no actual emails specified.

botsarenthuman commented 2 months ago

Manually inputed bookmarks are in the format

BEGIN:VCARD
VERSION:4.0
PRODID:-//Nextcloud Contacts v5.5.3
UID:123-321-sdfs-sdf
FN:A TEST
ADR;TYPE=HOME:;;;;;;
EMAIL;TYPE=HOME:test@exaple.com
TEL;TYPE=HOME,VOICE:
TITLE:Test
REV;VALUE=DATE-AND-OR-TIME:20240521T151942Z
CATEGORIES:test
END:VCARD

Where as imported are in the format

BEGIN:VCARD
VERSION:3.0
FN:Test User
N:USer;Test;;;
ITEM1.EMAIL;TYPE=INTERNET:test@test.com
ITEM1.X-ABLABEL:
ITEM2.EMAIL;TYPE=INTERNET:test2@test.com
ITEM2.X-ABLABEL:
ITEM3.EMAIL;TYPE=INTERNET;VALUE=UNKNOWN:test3@test.com
ITEM3.X-ABLABEL:
CATEGORIES:Staff,4-6 G Uzers,Imported on 2/8,myContacts
UID:ca131abf-4e45-3e35-caf4-11ef0e7c12ea
REV;VALUE=DATE-TIME:20240315T144107Z
END:VCARD%

So the email field is not filled out properly