Improve manpage formatting.

v0.5
Martin Dosch 2 years ago
parent 49d35a864c
commit f03be57a8d
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -1,6 +1,6 @@
.\" generated with Ronn-NG/v0.9.1 .\" generated with Ronn-NG/v0.9.1
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
.TH "GO\-SENDXMPP" "1" "September 2022" "" .TH "GO\-SENDXMPP" "1" "November 2022" ""
.SH "NAME" .SH "NAME"
\fBgo\-sendxmpp\fR \- A tool to send messages to an XMPP contact or MUC\. \fBgo\-sendxmpp\fR \- A tool to send messages to an XMPP contact or MUC\.
.SH "SYNOPSIS" .SH "SYNOPSIS"
@ -10,63 +10,142 @@ A tool to send messages to an XMPP contact or MUC inspired by (but not as powerf
.br .br
You can either pipe a programs output to \fBgo\-sendxmpp\fR, write in your terminal (put \fB^D\fR in a new line to finish) or send the input from a file (\fB\-m\fR or \fB\-\-message\fR)\. The account data is expected at \fB~/\.config/go\-sendxmpp/config\fR (preferred), \fB~/\.config/go\-sendxmpp/sendxmpprc\fR (deprecated) \fB~/\.sendxmpprc\fR (for compatibility with the original perl sendxmpp) if no other configuration file location is specified with \fB\-f\fR or \fB\-\-file\fR\. You can either pipe a programs output to \fBgo\-sendxmpp\fR, write in your terminal (put \fB^D\fR in a new line to finish) or send the input from a file (\fB\-m\fR or \fB\-\-message\fR)\. The account data is expected at \fB~/\.config/go\-sendxmpp/config\fR (preferred), \fB~/\.config/go\-sendxmpp/sendxmpprc\fR (deprecated) \fB~/\.sendxmpprc\fR (for compatibility with the original perl sendxmpp) if no other configuration file location is specified with \fB\-f\fR or \fB\-\-file\fR\.
.SH "OPTIONS" .SH "OPTIONS"
\fB\-a\fR, \fB\-\-alias\fR=[\fIvalue\fR]: Set alias/nickname for chatrooms\. .TP
.P \fB\-a\fR, \fB\-\-alias\fR=[\fIvalue\fR]:
\fB\-c\fR, \fB\-\-chatroom\fR=[\fIvalue\fR]: Send message to a chatroom\.
.P .P
\fB\-d\fR, \fB\-\-debug\fR: Show debugging info\. Set alias/nickname for chatrooms\.
.P .TP
\fB\-f\fR, \fB\-\-file\fR=[\fIvalue\fR]: Set configuration file\. (Default: ~/\.config/go\-sendxmpp/config) \fB\-c\fR, \fB\-\-chatroom\fR=[\fIvalue\fR]:
.P
\fB\-\-help\fR: Show help\. .P
.P Send message to a chatroom\.
\fB\-\-http\-upload=\fR[\fIvalue\fR]: Send a file via http\-upload\. .TP
.P \fB\-d\fR, \fB\-\-debug\fR:
\fB\-i\fR, \fB\-\-interactive\fR: Interactive mode (for use with e\.g\. \fBtail \-f\fR)\.
.P .P
\fB\-j\fR, \fB\-\-jserver\fR=[\fIvalue\fR]: XMPP server address\. Show debugging info\.
.P .TP
\fB\-l\fR, \fB\-\-listen\fR: Listen for messages and print them to stdout\. If JIDs are specified only messages from those contacts are shown\. If no JIDs are specified all received messages will be shown\. \fB\-f\fR, \fB\-\-file\fR=[\fIvalue\fR]:
.P
\fB\-m\fR, \fB\-\-message\fR=[\fIvalue\fR]: Set file including the message\. .P
.P Set configuration file\. (Default: ~/\.config/go\-sendxmpp/config)
\fB\-\-muc\-password\fR=[\fIvalue\fR]: Password for password protected MUCs\. .TP
.P \fB\-\-help\fR:
\fB\-n\fR, \fB\-\-no\-tls\-verify\fR: Skip verification of TLS certificates (not recommended)\.
.P .P
\fB\-\-ox\fR: Use "OpenPGP for XMPP" encryption (experimental)\. Show help\.
.TP
\fB\-\-http\-upload=\fR[\fIvalue\fR]:
.P
Send a file via http\-upload\.
.TP
\fB\-i\fR, \fB\-\-interactive\fR:
.P
Interactive mode (for use with e\.g\. \fBtail \-f\fR)\.
.TP
\fB\-j\fR, \fB\-\-jserver\fR=[\fIvalue\fR]:
.P
XMPP server address\.
.TP
\fB\-l\fR, \fB\-\-listen\fR:
.P
Listen for messages and print them to stdout\. If JIDs are specified only messages from those contacts are shown\. If no JIDs are specified all received messages will be shown\.
.TP
\fB\-m\fR, \fB\-\-message\fR=[\fIvalue\fR]:
.P
Set file including the message\.
.TP
\fB\-\-muc\-password\fR=[\fIvalue\fR]:
.P
Password for password protected MUCs\.
.TP
\fB\-n\fR, \fB\-\-no\-tls\-verify\fR:
.P
Skip verification of TLS certificates (not recommended)\.
.TP
\fB\-\-ox\fR:
.P
Use "OpenPGP for XMPP" encryption (experimental)\.
.br .br
Ox in go\-sendxmpp only supports sending encrypted 1\-1 messages\. Sending to groupchats and sending encrypted files is not supported\. There is no check whether the recipients key is trusted as there is no local keyring used\. Go\-sendxmpp just uses the most recent key that is provided via pubsub and checks that it is not expired\. As a user facing client a notification would be shown that a new key is available and ask the user whether to use the new key or stick to the old one\. As go\-sendxmpp is usually used in scripts it just accepts the new key to prevent the user from missing a new notification due to changed keys\. Ox in go\-sendxmpp only supports sending encrypted 1\-1 messages\. Sending to groupchats and sending encrypted files is not supported\. There is no check whether the recipients key is trusted as there is no local keyring used\. Go\-sendxmpp just uses the most recent key that is provided via pubsub and checks that it is not expired\. As a user facing client a notification would be shown that a new key is available and ask the user whether to use the new key or stick to the old one\. As go\-sendxmpp is usually used in scripts it just accepts the new key to prevent the user from missing a new notification due to changed keys\.
.TP
\fB\-\-ox\-delete\-nodes\fR:
.P .P
\fB\-\-ox\-delete\-nodes\fR: Delete existing OpenPGP nodes on the server\. Delete existing OpenPGP nodes on the server\.
.TP
\fB\-\-ox\-genprivkey\-rsa\fR:
.P .P
\fB\-\-ox\-genprivkey\-rsa\fR: Generate a private OpenPGP key (RSA 4096 bit) for the configured account (via config file or \fB\-u\fR and \fB\-p\fR) and publish the corresponding public key\. Go\-sendxmpp will save the key in \fB$XDG_DATA_HOME/go\-sendxmpp/oxprivkeys\fR or \fB$HOME/\.local/share/go\-sendxmpp/oxprivkeys\fR\. To protect the key a passphrase might be set using \fB\-\-ox\-passphrase\fR while generating the key\. Generate a private OpenPGP key (RSA 4096 bit) for the configured account (via config file or \fB\-u\fR and \fB\-p\fR) and publish the corresponding public key\. Go\-sendxmpp will save the key in \fB$XDG_DATA_HOME/go\-sendxmpp/oxprivkeys\fR or \fB$HOME/\.local/share/go\-sendxmpp/oxprivkeys\fR\. To protect the key a passphrase might be set using \fB\-\-ox\-passphrase\fR while generating the key\.
.br .br
If there is an existing private key for "OpenPGP for XMPP" created by another client (e\.g\. profanity) it might be imported using \fB\-\-ox\-import\-privkey\fR\. If there is an existing private key for "OpenPGP for XMPP" created by another client (e\.g\. profanity) it might be imported using \fB\-\-ox\-import\-privkey\fR\.
.TP
\fB\-\-ox\-genprivkey\-x25519\fR:
.P .P
\fB\-\-ox\-genprivkey\-x25519\fR: Generate a private OpenPGP key (X25519) for the configured account (via config file or \fB\-u\fR and \fB\-p\fR) and publish the corresponding public key\. Go\-sendxmpp will save the key in \fB$XDG_DATA_HOME/go\-sendxmpp/oxprivkeys\fR or \fB$HOME/\.local/share/go\-sendxmpp/oxprivkeys\fR\. To protect the key a passphrase might be set using \fB\-\-ox\-passphrase\fR while generating the key\. Generate a private OpenPGP key (X25519) for the configured account (via config file or \fB\-u\fR and \fB\-p\fR) and publish the corresponding public key\. Go\-sendxmpp will save the key in \fB$XDG_DATA_HOME/go\-sendxmpp/oxprivkeys\fR or \fB$HOME/\.local/share/go\-sendxmpp/oxprivkeys\fR\. To protect the key a passphrase might be set using \fB\-\-ox\-passphrase\fR while generating the key\.
.br .br
If there is an existing private key for "OpenPGP for XMPP" created by another client (e\.g\. profanity) it might be imported using \fB\-\-ox\-import\-privkey\fR\. If there is an existing private key for "OpenPGP for XMPP" created by another client (e\.g\. profanity) it might be imported using \fB\-\-ox\-import\-privkey\fR\.
.P .TP
\fB\-\-ox\-import\-privkey\fR=[\fIvalue\fR]: Import an existing private OpenPGP key\. \fB\-\-ox\-import\-privkey\fR=[\fIvalue\fR]:
.P
\fB\-\-ox\-passphrase\fR=[\fIvalue\fR]: Passphrase for locking and unlocking the private OpenPGP key\. .P
.P Import an existing private OpenPGP key\.
\fB\-\-tls\-version\fR=[\fIvalue\fR]: Minimal TLS version\. 10 (TLSv1\.0), 11 (TLSv1\.1), 12 (TLSv1\.2), 13 (TLSv1\.3) (Default: 12) .TP
.P \fB\-\-ox\-passphrase\fR=[\fIvalue\fR]:
\fB\-p\fR, \fB\-\-password\fR=[\fIvalue\fR]: Password for XMPP account\.
.P .P
\fB\-\-raw\fR: Send raw XML\. To send raw XML to a contact as normal chat message no contact must be specified\. To send raw XML to a MUC you have to specify the MUC via \fB\-c\fR and go\-sendxmpp will join the MUC\. Passphrase for locking and unlocking the private OpenPGP key\.
.P .TP
\fB\-r\fR, \fB\-\-resource\fR=[\fIvalue\fR]: DEPRECATED: Set resource\. When sending to a chatroom this is used as 'alias'\. \fB\-\-tls\-version\fR=[\fIvalue\fR]:
.P
\fB\-\-timeout=\fR[\fIvalue\fR]: Connection timeout in seconds\. (Default: 10) .P
.P Minimal TLS version\. 10 (TLSv1\.0), 11 (TLSv1\.1), 12 (TLSv1\.2), 13 (TLSv1\.3) (Default: 12)
\fB\-t\fR, \fB\-\-tls\fR: Use direct TLS\. .TP
.P \fB\-p\fR, \fB\-\-password\fR=[\fIvalue\fR]:
\fB\-u\fR, \fB\-\-username\fR=[\fIvalue\fR]: Username for XMPP account (JID)\.
.P .P
\fB\-\-version\fR: Show version information\. Password for XMPP account\.
.TP
\fB\-\-raw\fR:
.P
Send raw XML\. To send raw XML to a contact as normal chat message no contact must be specified\. To send raw XML to a MUC you have to specify the MUC via \fB\-c\fR and go\-sendxmpp will join the MUC\.
.TP
\fB\-r\fR, \fB\-\-resource\fR=[\fIvalue\fR]:
.P
DEPRECATED: Set resource\. When sending to a chatroom this is used as 'alias'\.
.TP
\fB\-\-timeout=\fR[\fIvalue\fR]:
.P
Connection timeout in seconds\. (Default: 10)
.TP
\fB\-t\fR, \fB\-\-tls\fR:
.P
Use direct TLS\.
.TP
\fB\-u\fR, \fB\-\-username\fR=[\fIvalue\fR]:
.P
Username for XMPP account (JID)\.
.TP
\fB\-\-version\fR:
.P
Show version information\.
.SH "CHAT" .SH "CHAT"
Feel free to join \fIhttps://join\.jabber\.network/#go\-sendxmpp@chat\.mdosch\.de?join\fR\. Feel free to join \fIhttps://join\.jabber\.network/#go\-sendxmpp@chat\.mdosch\.de?join\fR\.
.SH "AUTHOR" .SH "AUTHOR"

@ -91,104 +91,235 @@ file location is specified with <code>-f</code> or <code>--file</code>.</p>
<h2 id="OPTIONS">OPTIONS</h2> <h2 id="OPTIONS">OPTIONS</h2>
<p><code>-a</code>, <code>--alias</code>=[<var>value</var>]: <dl>
Set alias/nickname for chatrooms.</p> <dt>
<code>-a</code>, <code>--alias</code>=[<var>value</var>]:</dt>
<p><code>-c</code>, <code>--chatroom</code>=[<var>value</var>]: <dd></dd>
Send message to a chatroom.</p> </dl>
<p><code>-d</code>, <code>--debug</code>: <p>Set alias/nickname for chatrooms.</p>
Show debugging info.</p>
<dl>
<p><code>-f</code>, <code>--file</code>=[<var>value</var>]: <dt>
Set configuration file. (Default: ~/.config/go-sendxmpp/config)</p> <code>-c</code>, <code>--chatroom</code>=[<var>value</var>]:</dt>
<dd></dd>
<p><code>--help</code>: </dl>
Show help.</p>
<p>Send message to a chatroom.</p>
<p><code>--http-upload=</code>[<var>value</var>]:
Send a file via http-upload.</p> <dl>
<dt>
<p><code>-i</code>, <code>--interactive</code>: <code>-d</code>, <code>--debug</code>:</dt>
Interactive mode (for use with e.g. <code>tail -f</code>).</p> <dd></dd>
</dl>
<p><code>-j</code>, <code>--jserver</code>=[<var>value</var>]:
XMPP server address.</p> <p>Show debugging info.</p>
<p><code>-l</code>, <code>--listen</code>: <dl>
Listen for messages and print them to stdout. If JIDs are specified only messages from those contacts <dt>
are shown. If no JIDs are specified all received messages will be shown.</p> <code>-f</code>, <code>--file</code>=[<var>value</var>]:</dt>
<dd></dd>
<p><code>-m</code>, <code>--message</code>=[<var>value</var>]: </dl>
Set file including the message.</p>
<p>Set configuration file. (Default: ~/.config/go-sendxmpp/config)</p>
<p><code>--muc-password</code>=[<var>value</var>]:
Password for password protected MUCs.</p> <dl>
<dt>
<p><code>-n</code>, <code>--no-tls-verify</code>: <code>--help</code>:</dt>
Skip verification of TLS certificates (not recommended).</p> <dd></dd>
</dl>
<p><code>--ox</code>:
Use "OpenPGP for XMPP" encryption (experimental). <br> <p>Show help.</p>
Ox in go-sendxmpp only supports sending encrypted 1-1 messages. Sending to groupchats and
sending encrypted files is not supported. <dl>
There is no check whether the recipients key is trusted as there is no local keyring used. <dt>
Go-sendxmpp just uses the most recent key that is provided via pubsub and checks that it is not <code>--http-upload=</code>[<var>value</var>]:</dt>
expired. As a user facing client a notification would be shown that a new key is available and <dd></dd>
ask the user whether to use the new key or stick to the old one. As go-sendxmpp is usually </dl>
used in scripts it just accepts the new key to prevent the user from missing a new notification
due to changed keys.</p> <p>Send a file via http-upload.</p>
<p><code>--ox-delete-nodes</code>: <dl>
Delete existing OpenPGP nodes on the server.</p> <dt>
<code>-i</code>, <code>--interactive</code>:</dt>
<p><code>--ox-genprivkey-rsa</code>: <dd></dd>
Generate a private OpenPGP key (RSA 4096 bit) for the configured account (via config file or <code>-u</code> and <code>-p</code>) </dl>
and publish the corresponding public key.
Go-sendxmpp will save the key in <code>$XDG_DATA_HOME/go-sendxmpp/oxprivkeys</code> or <p>Interactive mode (for use with e.g. <code>tail -f</code>).</p>
<code>$HOME/.local/share/go-sendxmpp/oxprivkeys</code>. To protect the key a passphrase might be set
using <code>--ox-passphrase</code> while generating the key. <br> <dl>
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity) <dt>
it might be imported using <code>--ox-import-privkey</code>.</p> <code>-j</code>, <code>--jserver</code>=[<var>value</var>]:</dt>
<dd></dd>
<p><code>--ox-genprivkey-x25519</code>: </dl>
Generate a private OpenPGP key (X25519) for the configured account (via config file or <code>-u</code> and <code>-p</code>)
and publish the corresponding public key. <p>XMPP server address.</p>
Go-sendxmpp will save the key in <code>$XDG_DATA_HOME/go-sendxmpp/oxprivkeys</code> or
<code>$HOME/.local/share/go-sendxmpp/oxprivkeys</code>. To protect the key a passphrase might be set <dl>
using <code>--ox-passphrase</code> while generating the key. <br> <dt>
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity) <code>-l</code>, <code>--listen</code>:</dt>
it might be imported using <code>--ox-import-privkey</code>.</p> <dd></dd>
</dl>
<p><code>--ox-import-privkey</code>=[<var>value</var>]:
Import an existing private OpenPGP key.</p> <p>Listen for messages and print them to stdout. If JIDs are specified only messages from those contacts
are shown. If no JIDs are specified all received messages will be shown.</p>
<p><code>--ox-passphrase</code>=[<var>value</var>]:
Passphrase for locking and unlocking the private OpenPGP key.</p> <dl>
<dt>
<p><code>--tls-version</code>=[<var>value</var>]: <code>-m</code>, <code>--message</code>=[<var>value</var>]:</dt>
Minimal TLS version. 10 (TLSv1.0), 11 (TLSv1.1), 12 (TLSv1.2), 13 (TLSv1.3) (Default: 12)</p> <dd></dd>
</dl>
<p><code>-p</code>, <code>--password</code>=[<var>value</var>]:
Password for XMPP account.</p> <p>Set file including the message.</p>
<p><code>--raw</code>: <dl>
Send raw XML. To send raw XML to a contact as normal chat message no contact must be specified. <dt>
To send raw XML to a MUC you have to specify the MUC via <code>-c</code> and go-sendxmpp will join the MUC.</p> <code>--muc-password</code>=[<var>value</var>]:</dt>
<dd></dd>
<p><code>-r</code>, <code>--resource</code>=[<var>value</var>]: </dl>
DEPRECATED: Set resource. When sending to a chatroom this is used as 'alias'.</p>
<p>Password for password protected MUCs.</p>
<p><code>--timeout=</code>[<var>value</var>]:
Connection timeout in seconds. (Default: 10)</p> <dl>
<dt>
<p><code>-t</code>, <code>--tls</code>: <code>-n</code>, <code>--no-tls-verify</code>:</dt>
Use direct TLS.</p> <dd></dd>
</dl>
<p><code>-u</code>, <code>--username</code>=[<var>value</var>]:
Username for XMPP account (JID).</p> <p>Skip verification of TLS certificates (not recommended).</p>
<p><code>--version</code>: Show version information.</p> <dl>
<dt>
<code>--ox</code>:</dt>
<dd></dd>
</dl>
<p>Use "OpenPGP for XMPP" encryption (experimental). <br>
Ox in go-sendxmpp only supports sending encrypted 1-1 messages. Sending to groupchats and
sending encrypted files is not supported.
There is no check whether the recipients key is trusted as there is no local keyring used.
Go-sendxmpp just uses the most recent key that is provided via pubsub and checks that it is not
expired. As a user facing client a notification would be shown that a new key is available and
ask the user whether to use the new key or stick to the old one. As go-sendxmpp is usually
used in scripts it just accepts the new key to prevent the user from missing a new notification
due to changed keys.</p>
<dl>
<dt>
<code>--ox-delete-nodes</code>:</dt>
<dd></dd>
</dl>
<p>Delete existing OpenPGP nodes on the server.</p>
<dl>
<dt>
<code>--ox-genprivkey-rsa</code>:</dt>
<dd></dd>
</dl>
<p>Generate a private OpenPGP key (RSA 4096 bit) for the configured account (via config file or <code>-u</code> and <code>-p</code>)
and publish the corresponding public key.
Go-sendxmpp will save the key in <code>$XDG_DATA_HOME/go-sendxmpp/oxprivkeys</code> or
<code>$HOME/.local/share/go-sendxmpp/oxprivkeys</code>. To protect the key a passphrase might be set
using <code>--ox-passphrase</code> while generating the key. <br>
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity)
it might be imported using <code>--ox-import-privkey</code>.</p>
<dl>
<dt>
<code>--ox-genprivkey-x25519</code>:</dt>
<dd></dd>
</dl>
<p>Generate a private OpenPGP key (X25519) for the configured account (via config file or <code>-u</code> and <code>-p</code>)
and publish the corresponding public key.
Go-sendxmpp will save the key in <code>$XDG_DATA_HOME/go-sendxmpp/oxprivkeys</code> or
<code>$HOME/.local/share/go-sendxmpp/oxprivkeys</code>. To protect the key a passphrase might be set
using <code>--ox-passphrase</code> while generating the key. <br>
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity)
it might be imported using <code>--ox-import-privkey</code>.</p>
<dl>
<dt>
<code>--ox-import-privkey</code>=[<var>value</var>]:</dt>
<dd></dd>
</dl>
<p>Import an existing private OpenPGP key.</p>
<dl>
<dt>
<code>--ox-passphrase</code>=[<var>value</var>]:</dt>
<dd></dd>
</dl>
<p>Passphrase for locking and unlocking the private OpenPGP key.</p>
<dl>
<dt>
<code>--tls-version</code>=[<var>value</var>]:</dt>
<dd></dd>
</dl>
<p>Minimal TLS version. 10 (TLSv1.0), 11 (TLSv1.1), 12 (TLSv1.2), 13 (TLSv1.3) (Default: 12)</p>
<dl>
<dt>
<code>-p</code>, <code>--password</code>=[<var>value</var>]:</dt>
<dd></dd>
</dl>
<p>Password for XMPP account.</p>
<dl>
<dt>
<code>--raw</code>:</dt>
<dd></dd>
</dl>
<p>Send raw XML. To send raw XML to a contact as normal chat message no contact must be specified.
To send raw XML to a MUC you have to specify the MUC via <code>-c</code> and go-sendxmpp will join the MUC.</p>
<dl>
<dt>
<code>-r</code>, <code>--resource</code>=[<var>value</var>]:</dt>
<dd></dd>
</dl>
<p>DEPRECATED: Set resource. When sending to a chatroom this is used as 'alias'.</p>
<dl>
<dt>
<code>--timeout=</code>[<var>value</var>]:</dt>
<dd></dd>
</dl>
<p>Connection timeout in seconds. (Default: 10)</p>
<dl>
<dt>
<code>-t</code>, <code>--tls</code>:</dt>
<dd></dd>
</dl>
<p>Use direct TLS.</p>
<dl>
<dt>
<code>-u</code>, <code>--username</code>=[<var>value</var>]:</dt>
<dd></dd>
</dl>
<p>Username for XMPP account (JID).</p>
<dl>
<dt>
<code>--version</code>:</dt>
<dd></dd>
</dl>
<p>Show version information.</p>
<h2 id="CHAT">CHAT</h2> <h2 id="CHAT">CHAT</h2>
@ -213,7 +344,7 @@ License: BSD 2-clause License</p>
<ol class='man-decor man-foot man foot'> <ol class='man-decor man-foot man foot'>
<li class='tl'></li> <li class='tl'></li>
<li class='tc'>September 2022</li> <li class='tc'>November 2022</li>
<li class='tr'>go-sendxmpp(1)</li> <li class='tr'>go-sendxmpp(1)</li>
</ol> </ol>

@ -16,104 +16,131 @@ file location is specified with `-f` or `--file`.
## OPTIONS ## OPTIONS
`-a`, `--alias`=[<value>]: * `-a`, `--alias`=[<value>]:
Set alias/nickname for chatrooms.
`-c`, `--chatroom`=[<value>]: Set alias/nickname for chatrooms.
Send message to a chatroom.
`-d`, `--debug`: * `-c`, `--chatroom`=[<value>]:
Show debugging info.
`-f`, `--file`=[<value>]: Send message to a chatroom.
Set configuration file. (Default: ~/.config/go-sendxmpp/config)
`--help`: * `-d`, `--debug`:
Show help.
`--http-upload=`[<value>]: Show debugging info.
Send a file via http-upload.
`-i`, `--interactive`: * `-f`, `--file`=[<value>]:
Interactive mode (for use with e.g. `tail -f`).
`-j`, `--jserver`=[<value>]: Set configuration file. (Default: ~/.config/go-sendxmpp/config)
XMPP server address.
`-l`, `--listen`: * `--help`:
Listen for messages and print them to stdout. If JIDs are specified only messages from those contacts
are shown. If no JIDs are specified all received messages will be shown.
`-m`, `--message`=[<value>]: Show help.
Set file including the message.
`--muc-password`=[<value>]: * `--http-upload=`[<value>]:
Password for password protected MUCs.
`-n`, `--no-tls-verify`: Send a file via http-upload.
Skip verification of TLS certificates (not recommended).
`--ox`: * `-i`, `--interactive`:
Use "OpenPGP for XMPP" encryption (experimental).
Ox in go-sendxmpp only supports sending encrypted 1-1 messages. Sending to groupchats and
sending encrypted files is not supported.
There is no check whether the recipients key is trusted as there is no local keyring used.
Go-sendxmpp just uses the most recent key that is provided via pubsub and checks that it is not
expired. As a user facing client a notification would be shown that a new key is available and
ask the user whether to use the new key or stick to the old one. As go-sendxmpp is usually
used in scripts it just accepts the new key to prevent the user from missing a new notification
due to changed keys.
`--ox-delete-nodes`: Interactive mode (for use with e.g. `tail -f`).
Delete existing OpenPGP nodes on the server.
`--ox-genprivkey-rsa`: * `-j`, `--jserver`=[<value>]:
Generate a private OpenPGP key (RSA 4096 bit) for the configured account (via config file or `-u` and `-p`)
and publish the corresponding public key.
Go-sendxmpp will save the key in `$XDG_DATA_HOME/go-sendxmpp/oxprivkeys` or
`$HOME/.local/share/go-sendxmpp/oxprivkeys`. To protect the key a passphrase might be set
using `--ox-passphrase` while generating the key.
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity)
it might be imported using `--ox-import-privkey`.
`--ox-genprivkey-x25519`: XMPP server address.
Generate a private OpenPGP key (X25519) for the configured account (via config file or `-u` and `-p`)
and publish the corresponding public key.
Go-sendxmpp will save the key in `$XDG_DATA_HOME/go-sendxmpp/oxprivkeys` or
`$HOME/.local/share/go-sendxmpp/oxprivkeys`. To protect the key a passphrase might be set
using `--ox-passphrase` while generating the key.
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity)
it might be imported using `--ox-import-privkey`.
`--ox-import-privkey`=[<value>]: * `-l`, `--listen`:
Import an existing private OpenPGP key.
`--ox-passphrase`=[<value>]: Listen for messages and print them to stdout. If JIDs are specified only messages from those contacts
Passphrase for locking and unlocking the private OpenPGP key. are shown. If no JIDs are specified all received messages will be shown.
`--tls-version`=[<value>]: * `-m`, `--message`=[<value>]:
Minimal TLS version. 10 (TLSv1.0), 11 (TLSv1.1), 12 (TLSv1.2), 13 (TLSv1.3) (Default: 12)
`-p`, `--password`=[<value>]: Set file including the message.
Password for XMPP account.
`--raw`: * `--muc-password`=[<value>]:
Send raw XML. To send raw XML to a contact as normal chat message no contact must be specified.
To send raw XML to a MUC you have to specify the MUC via `-c` and go-sendxmpp will join the MUC.
`-r`, `--resource`=[<value>]: Password for password protected MUCs.
DEPRECATED: Set resource. When sending to a chatroom this is used as 'alias'.
`--timeout=`[<value>]: * `-n`, `--no-tls-verify`:
Connection timeout in seconds. (Default: 10)
`-t`, `--tls`: Skip verification of TLS certificates (not recommended).
Use direct TLS.
`-u`, `--username`=[<value>]: * `--ox`:
Username for XMPP account (JID).
`--version`: Show version information. Use "OpenPGP for XMPP" encryption (experimental).
Ox in go-sendxmpp only supports sending encrypted 1-1 messages. Sending to groupchats and
sending encrypted files is not supported.
There is no check whether the recipients key is trusted as there is no local keyring used.
Go-sendxmpp just uses the most recent key that is provided via pubsub and checks that it is not
expired. As a user facing client a notification would be shown that a new key is available and
ask the user whether to use the new key or stick to the old one. As go-sendxmpp is usually
used in scripts it just accepts the new key to prevent the user from missing a new notification
due to changed keys.
* `--ox-delete-nodes`:
Delete existing OpenPGP nodes on the server.
* `--ox-genprivkey-rsa`:
Generate a private OpenPGP key (RSA 4096 bit) for the configured account (via config file or `-u` and `-p`)
and publish the corresponding public key.
Go-sendxmpp will save the key in `$XDG_DATA_HOME/go-sendxmpp/oxprivkeys` or
`$HOME/.local/share/go-sendxmpp/oxprivkeys`. To protect the key a passphrase might be set
using `--ox-passphrase` while generating the key.
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity)
it might be imported using `--ox-import-privkey`.
* `--ox-genprivkey-x25519`:
Generate a private OpenPGP key (X25519) for the configured account (via config file or `-u` and `-p`)
and publish the corresponding public key.
Go-sendxmpp will save the key in `$XDG_DATA_HOME/go-sendxmpp/oxprivkeys` or
`$HOME/.local/share/go-sendxmpp/oxprivkeys`. To protect the key a passphrase might be set
using `--ox-passphrase` while generating the key.
If there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity)
it might be imported using `--ox-import-privkey`.
* `--ox-import-privkey`=[<value>]:
Import an existing private OpenPGP key.
* `--ox-passphrase`=[<value>]:
Passphrase for locking and unlocking the private OpenPGP key.
* `--tls-version`=[<value>]:
Minimal TLS version. 10 (TLSv1.0), 11 (TLSv1.1), 12 (TLSv1.2), 13 (TLSv1.3) (Default: 12)
* `-p`, `--password`=[<value>]:
Password for XMPP account.
* `--raw`:
Send raw XML. To send raw XML to a contact as normal chat message no contact must be specified.
To send raw XML to a MUC you have to specify the MUC via `-c` and go-sendxmpp will join the MUC.
* `-r`, `--resource`=[<value>]:
DEPRECATED: Set resource. When sending to a chatroom this is used as 'alias'.
* `--timeout=`[<value>]:
Connection timeout in seconds. (Default: 10)
* `-t`, `--tls`:
Use direct TLS.
* `-u`, `--username`=[<value>]:
Username for XMPP account (JID).
* `--version`:
Show version information.
## CHAT ## CHAT

Loading…
Cancel
Save