File: sendxmpp-raw-messages

package info (click to toggle)
sendxmpp 1.22-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 108 kB
  • sloc: perl: 334; makefile: 50; xml: 6
file content (28 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (4)
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
28
#
# 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.platon.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>