/usr/share/doc/sendxmpp/examples/sendxmpp-raw-messages is in sendxmpp 1.24-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #
# RAW XMPP messages, which can be used with sendxmpp
#
# Thanks to David Ammouial <da AT weeno.net>
#
# cat examples/send-url.xml | sendxmpp --raw
#
# Sending an URL along with a message:
<message to='foo@server.com'>
<body>Check out the new sendxmpp website!</body>
<x xmlns='jabber:x:oob'>
<url>http://sendxmpp.hostname.sk/</url>
</x>
</message>
# Adding an item to the roster
<iq type="set" id="a1">
<query xmlns="jabber:iq:roster">
<item jid="newfriend@hello.com" name="Lisa" />
</query>
</iq>
# Sending a presence subscription request
<presence to="newfriend@hello.com" type="subscribe">
<status>Please authorize me :)</status>
</presence>
|