| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2017 Red Hat, Inc. |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.1-or-later |
| 6 |
|
| 7 |
This library is free software; you can redistribute it and/or |
| 8 |
modify it under the terms of the GNU Lesser General Public |
| 9 |
License as published by the Free Software Foundation; either |
| 10 |
version 2.1 of the License, or (at your option) any later version. |
| 11 |
|
| 12 |
This library is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
Lesser General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU Lesser General Public |
| 18 |
License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
Author: Matthias Clasen <[email protected]> |
| 21 |
--> |
| 22 |
|
| 23 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 24 |
<!-- |
| 25 |
org.freedesktop.portal.Email: |
| 26 |
@short_description: Portal for sending email |
| 27 |
|
| 28 |
This simple portal lets sandboxed applications request to send an email, |
| 29 |
optionally providing an address, subject, body and attachments. |
| 30 |
|
| 31 |
This documentation describes version 4 of this interface. |
| 32 |
--> |
| 33 |
<interface name="org.freedesktop.portal.Email"> |
| 34 |
<!-- |
| 35 |
ComposeEmail: |
| 36 |
@parent_window: Identifier for the application window, see :doc:`window-identifiers` |
| 37 |
@options: Vardict with optional further information |
| 38 |
@handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call |
| 39 |
|
| 40 |
Presents a window that lets the user compose an email. |
| 41 |
|
| 42 |
Note that the default email client for the host will need to support mailto: URIs |
| 43 |
following `RFC 2368 <https://tools.ietf.org/html/rfc2368>`_, with |
| 44 |
"cc", "bcc", "subject" and "body" query keys each corresponding to the email |
| 45 |
header of the same name, and with each attachment being passed as a ``file://`` |
| 46 |
URI as a value in an "attachment" query key. |
| 47 |
|
| 48 |
For example: |
| 49 |
|
| 50 |
:: |
| 51 |
|
| 52 |
mailto:[email protected],[email protected][email protected]&subject=Test%20e-mail%20subject&attachment=file://path/to/full/file.txt |
| 53 |
|
| 54 |
|
| 55 |
would send a mail to "[email protected]", "[email protected]", with a CC: |
| 56 |
to "[email protected]", with the subject "Test e-mail subject" |
| 57 |
and the file pointed by URI ``file://path/to/full/file.txt`` as |
| 58 |
an attachment. |
| 59 |
|
| 60 |
Supported keys in the @options vardict include: |
| 61 |
|
| 62 |
* ``handle_token`` (``s``) |
| 63 |
|
| 64 |
A string that will be used as the last element of the @handle. Must be a valid |
| 65 |
object path element. See the :ref:`org.freedesktop.portal.Request` documentation for |
| 66 |
more information about the @handle. |
| 67 |
|
| 68 |
* ``address`` (``s``) |
| 69 |
|
| 70 |
The email address to send to. Must conform to the HTML5 definition of a |
| 71 |
`valid email address <https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address>`_. |
| 72 |
|
| 73 |
* ``addresses`` (``as``) |
| 74 |
|
| 75 |
Email addresses to send to. This will be used in addition to address and must |
| 76 |
pass the same validation. |
| 77 |
|
| 78 |
This option was introduced in version 3 of the interface. |
| 79 |
|
| 80 |
* ``cc`` (``as``) |
| 81 |
|
| 82 |
Email addresses to cc. |
| 83 |
|
| 84 |
This option was introduced in version 3 of the interface. |
| 85 |
|
| 86 |
* ``bcc`` (``as``) |
| 87 |
|
| 88 |
Email addresses to bcc. |
| 89 |
|
| 90 |
This option was introduced in version 3 of the interface. |
| 91 |
|
| 92 |
* ``subject`` (``s``) |
| 93 |
|
| 94 |
The subject for the email. |
| 95 |
|
| 96 |
* ``body`` (``s``) |
| 97 |
|
| 98 |
The body for the email. |
| 99 |
|
| 100 |
* ``attachment_fds`` (``ah``) |
| 101 |
|
| 102 |
File descriptors for files to attach. |
| 103 |
|
| 104 |
* ``activation_token`` (``s``) |
| 105 |
|
| 106 |
A token that can be used to activate the chosen application. |
| 107 |
|
| 108 |
This option was introduced in version 4 of the interface. |
| 109 |
|
| 110 |
|
| 111 |
All the keys in the @options vardict are optional. |
| 112 |
--> |
| 113 |
<method name="ComposeEmail"> |
| 114 |
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/> |
| 115 |
<arg type="s" name="parent_window" direction="in"/> |
| 116 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 117 |
<arg type="a{sv}" name="options" direction="in"/> |
| 118 |
<arg type="o" name="handle" direction="out"/> |
| 119 |
</method> |
| 120 |
<property name="version" type="u" access="read"/> |
| 121 |
</interface> |
| 122 |
</node> |