314 lines
6.6 KiB
HTML
314 lines
6.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of XDG-EMAIL</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>XDG-EMAIL</H1>
|
|
Section: xdg-email Manual (1)<BR>Updated: 01/11/2021<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
xdg-email - command line tool for sending mail using the user's preferred e-mail composer
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>xdg-email</B> [<B>--utf8</B>] [<B>--cc</B> <I>address</I>] [<B>--bcc</B> <I>address</I>] [<B>--subject</B> <I>text</I>] [<B>--body</B> <I>text</I>] [<B>--attach</B> <I>file</I>] [<I>mailto-uri</I> | <I>address(es)</I>]
|
|
<DT id="2">
|
|
<B>xdg-email</B> {<B>--help</B> | <B>--manual</B> | <B>--version</B>}
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>xdg-email opens the user's preferred e-mail composer in order to send a mail to
|
|
<I>address(es)</I>
|
|
or
|
|
<I>mailto-uri</I>. RFC2368 defines mailto: URIs. xdg-email limits support to, cc, subject and body fields in
|
|
<I>mailto-uri</I>, all other fields are silently ignored.
|
|
<I>address(es)</I>
|
|
must follow the syntax of RFC822. Multiple addresses may be provided as separate arguments.
|
|
<P>
|
|
|
|
All information provided on the command line is used to prefill corresponding fields in the user's e-mail composer. The user will have the opportunity to change any of this information before actually sending the e-mail.
|
|
<P>
|
|
|
|
xdg-email is for use inside a desktop session only. It is not recommended to use xdg-email as root.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>--utf8</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Indicates that all command line options that follow are in utf8. Without this option, command line options are expected to be encoded according to locale. If the locale already specifies utf8 this option has no effect. This option does not affect mailto URIs that are passed on the command line.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--cc</B> <I>address</I>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Specify a recipient to be copied on the e-mail.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--bcc</B> <I>address</I>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Specify a recipient to be blindly copied on the e-mail.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--subject</B> <I>text</I>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Specify a subject for the e-mail.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--body</B> <I>text</I>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Specify a body for the e-mail. Since the user will be able to make changes before actually sending the e-mail, this can be used to provide the user with a template for the e-mail.
|
|
<I>text</I>
|
|
may contain linebreaks.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--attach</B> <I>file</I>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Specify an attachment for the e-mail.
|
|
<I>file</I>
|
|
must point to an existing file.
|
|
<P>
|
|
Some e-mail applications require the file to remain present after xdg-email returns.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--help</B>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Show command synopsis.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--manual</B>
|
|
<DL COMPACT><DT id="10"><DD>
|
|
Show this manual page.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--version</B>
|
|
<DL COMPACT><DT id="11"><DD>
|
|
Show the xdg-utils version information.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ENVIRONMENT VARIABLES</H2>
|
|
|
|
<P>
|
|
|
|
xdg-email honours the following environment variables:
|
|
<P>
|
|
|
|
XDG_UTILS_DEBUG_LEVEL
|
|
<DL COMPACT><DT id="12"><DD>
|
|
Setting this environment variable to a non-zero numerical value makes xdg-email do more verbose reporting on stderr. Setting a higher value increases the verbosity.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>EXIT CODES</H2>
|
|
|
|
<P>
|
|
|
|
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
|
|
<P>
|
|
|
|
<B>1</B>
|
|
<DL COMPACT><DT id="13"><DD>
|
|
Error in command line syntax.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>2</B>
|
|
<DL COMPACT><DT id="14"><DD>
|
|
One of the files passed on the command line did not exist.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>3</B>
|
|
<DL COMPACT><DT id="15"><DD>
|
|
A required tool could not be found.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>4</B>
|
|
<DL COMPACT><DT id="16"><DD>
|
|
The action failed.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>5</B>
|
|
<DL COMPACT><DT id="17"><DD>
|
|
No permission to read one of the files passed on the command line.
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+xdg-open">xdg-open</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+xdg-mime">xdg-mime</A></B>(1),
|
|
m[blue]<B>MIME applications associations specification</B>m[]<FONT SIZE="-2">[1]</FONT>,
|
|
m[blue]<B>RFC 6068 - The 'mailto' URI Scheme</B>m[]<FONT SIZE="-2">[2]</FONT>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="18"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
xdg-email 'Jeremy White <<A HREF="mailto:jwhite@example.com">jwhite@example.com</A>>'
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="19"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
xdg-email --attach /tmp/logo.png \
|
|
--subject 'Logo contest' \
|
|
--body 'Attached you find the logo for the contest.' \
|
|
'<A HREF="mailto:jwhite@example.com">jwhite@example.com</A>'
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="20"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
xdg-email --subject 'Your password is about to expire' \
|
|
'<A HREF="mailto:jwhite@example.com">jwhite@example.com</A>' '<A HREF="mailto:bastian@example.com">bastian@example.com</A>' '<A HREF="mailto:whipple@example.com">whipple@example.com</A>'
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
<P>
|
|
|
|
<B>Kevin Krammer</B>
|
|
<DL COMPACT><DT id="21"><DD>
|
|
Author.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>Jeremy White</B>
|
|
<DL COMPACT><DT id="22"><DD>
|
|
Author.
|
|
</DL>
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
<BR>
|
|
|
|
Copyright © 2006
|
|
<BR>
|
|
|
|
<A NAME="lbAL"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="23"> 1.<DD>
|
|
MIME applications associations specification
|
|
<DL COMPACT><DT id="24"><DD>
|
|
<A HREF="http://www.freedesktop.org/wiki/Specifications/mime-apps-spec/">http://www.freedesktop.org/wiki/Specifications/mime-apps-spec/</A>
|
|
</DL>
|
|
|
|
<DT id="25"> 2.<DD>
|
|
RFC 6068 - The 'mailto' URI Scheme
|
|
<DL COMPACT><DT id="26"><DD>
|
|
<A HREF="https://tools.ietf.org/html/rfc6068">https://tools.ietf.org/html/rfc6068</A>
|
|
</DL>
|
|
|
|
<P>
|
|
</DL>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="27"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="28"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="29"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="30"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="31"><A HREF="#lbAF">ENVIRONMENT VARIABLES</A><DD>
|
|
<DT id="32"><A HREF="#lbAG">EXIT CODES</A><DD>
|
|
<DT id="33"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="34"><A HREF="#lbAI">EXAMPLES</A><DD>
|
|
<DT id="35"><A HREF="#lbAJ">AUTHORS</A><DD>
|
|
<DT id="36"><A HREF="#lbAK">COPYRIGHT</A><DD>
|
|
<DT id="37"><A HREF="#lbAL">NOTES</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:30 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|