-
Notifications
You must be signed in to change notification settings - Fork 13
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
xdg-email doesn't seem to support mailto:
URLs
#19
Comments
Do you know of users in the wild using a mailto: url for xdg-email ? |
The documentation and |
For what it is worth, Chromium also calls xdg-email with a mailto: URI: https://github.com/chromium/chromium/blob/master/chrome/browser/platform_util_linux.cc#L187 So that probably extends to some Electron apps too. |
The reference xdg-email shell script documents that it supports mailto: URIs, and it appears that at least Chromium and Jami (formerly GNU Ring) genuinely make use of that feature. If the only non-ignored argument is a mailto: URI, we pass it directly to the OpenURI portal without further processing. This mode can be used by applications wishing to do tricky things with headers that we don't directly support. Otherwise, we parse the mailto: URI and extract the header, subject and addresses. Other headers are ignored. The reference xdg-email script only accepts one mailto: URI, but accepting more than one is actually easier than not, so we do that. Resolves: flatpak#19 Signed-off-by: Simon McVittie <smcv@collabora.com>
The reference xdg-email shell script documents that it supports mailto: URIs, and it appears that at least Chromium and Jami (formerly GNU Ring) genuinely make use of that feature. If the only non-ignored argument is a mailto: URI, we pass it directly to the OpenURI portal without further processing. This mode can be used by applications wishing to do tricky things with headers that we don't directly support. Otherwise, we parse the mailto: URI and extract the header, subject and addresses. Other headers are ignored. The reference xdg-email script only accepts one mailto: URI, but accepting more than one is actually easier than not, so we do that. Resolves: flatpak#19 Signed-off-by: Simon McVittie <smcv@collabora.com>
The reference xdg-email(1) is documented as accepting these as equivalent:
but I don't see any code in xdg-email to handle the latter.
The text was updated successfully, but these errors were encountered: