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

feat: parse mailto addresses #8616

Merged
merged 1 commit into from
Aug 21, 2023
Merged

feat: parse mailto addresses #8616

merged 1 commit into from
Aug 21, 2023

Conversation

kesselb
Copy link
Contributor

@kesselb kesselb commented Jul 11, 2023

To improve compatibility with contacts send email feature.

Send email will compose a mailto link with all email addresses from the contact group. A mailto link with multiple email addresses needs some preprocessing in mail.

How to test:

  • Mail: Enable "Register as application for mail links"
  • Contacts: Create a contact group. Add some contacts. Make sure the contacts have an email address.
  • Contacts: Click "Send email" for the contact group.
  • Mail: See all email addresses in the To field ;)

Side note:

The mailto link generated by contacts (https://github.com/nextcloud/contacts/blob/a72b5849337354bac60db24fd56c7e062cf3135d/src/components/AppNavigation/GroupNavigationItem.vue#L177) does not comply with https://datatracker.ietf.org/doc/html/rfc6068.

However, most clients seem to throw the mailto link into a parser and are not too strict about the format.

To improve compatibility with contacts send email feature.

Send email will compose a mailto link with all email addresses from the contact group.
A mailto link with multiple email addresses needs some preprocessing in mail.

Signed-off-by: Daniel Kesselberg <[email protected]>
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works.

@st3iny st3iny merged commit e43e34c into main Aug 21, 2023
27 of 28 checks passed
@st3iny st3iny deleted the parse-mailto-links branch August 21, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants