clone: git://shithub.us/sigrid/xmpp gits://shithub.us/sigrid/xmpp
patches to: sigrid on 9gridchan, or email@example.com
– Sigrid Solveig Haflínudóttir <firstname.lastname@example.org>
on 2022/02/20 16:57
preserve original jid verbatim for matching with "to" (thanks binarycat)
XMPP(1) General Commands Manual XMPP(1)
xmpp - XMPP client
xmpp [ -n nick ] [ -r resource ] [ -p ] [ -h ] [ -y ] jid | jid@server
xmpp is a simple XMPP client.
It supports multi-user chat (MUC). Server-side bookmarks are used to
join specific MUCs automatically on connect. TLS is required, SCRAM-
SHA-1, DIGEST-MD5 and PLAIN authentication methods are supported. The
latter is enabled using -y option. Thumbprints of trusted servers are
expected to be in /sys/lib/tls/xmpp, see thumbprint(6).
-p enables "joined"/"left" messages, which are disabled by default.
-h allows MUCs to send out "discussion history".
The command language understood by xmpp is as follows:
/j [jid[/nick] [passwd]]
send raw data to the server
cycle through matching targets
get list of active nicks in the MUC
get list of all nicks in the MUC
list bookmarked MUCs
bookmark current MUC
remove current MUC from bookmarks
/a target affiliation
set affiliation (for a target in MUC)
get affiliations for a room (current one if no args given)
start multiline message (end with a dot on a single line)
set nick for current MUC
show roster (list online contacts)
show roster (show offline and jids)
/r+ (jid|target) [name]
subscribe/approve, add to roster
unsubscribe/decline, remove from roster
show current subject
start new subject (end with a dot on a single line)
Affiliations are: none, owner, admin, member, outcast.
The target can be specified as follows:
room@domain a specific room
room@domain/nick private chat (MUC)
Wernher private chat (roster, name)
email@example.com private chat (roster, jid)
Assuming you previously joined a MUC firstname.lastname@example.org, you can quickly
switch to private chat with kgbvax as follows:
XMPP sucks. XML sucks.