Mercurial > libervia-backend
annotate doc/jp/message.rst @ 3393:2b6f69f6df8c
tools(xml_tools): fixed `<div>` unwrapping + added `parse` instance:
`<div>` unwrapping could fail when a text node was a sibling of the top element (could
easily happen ith a `\n` line feed added by an editor). This is fixed by filtering on
IElement with `elements()`.
A `parse` instance has been added as it is not necessary to create a new `ElementParser`
each time that we want to parse something.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Nov 2020 14:53:15 +0100 |
parents | 790489521b15 |
children | ddff0ade14d6 |
rev | line source |
---|---|
2946 | 1 .. highlight:: sh |
2 | |
3 ================================ | |
4 message: chat message management | |
5 ================================ | |
6 | |
7 Message commands let you send chat messages or manage your server message archives. | |
8 | |
3041
72583524cfd3
doc (jp): jp commands are now fully documented:
Goffi <goffi@goffi.org>
parents:
2946
diff
changeset
|
9 .. _jp-message_send: |
72583524cfd3
doc (jp): jp commands are now fully documented:
Goffi <goffi@goffi.org>
parents:
2946
diff
changeset
|
10 |
2946 | 11 send |
12 ==== | |
13 | |
3041
72583524cfd3
doc (jp): jp commands are now fully documented:
Goffi <goffi@goffi.org>
parents:
2946
diff
changeset
|
14 Send a message to a contact or a chat room. |
2946 | 15 ``stdin`` is used as message source. |
16 You can encrypt your message using ``--encrypt [ALGORITHM]`` argument, this will create an encrypted session and replace existing one if needed. | |
17 You can manage your encrypted session using ``encryption`` command. | |
18 | |
19 examples | |
20 -------- | |
21 | |
22 Send a message to a contact:: | |
23 | |
24 $ echo 'Salut à Toi!' | jp message send louise@example.net | |
25 | |
26 Send a message encrypted with OMEMO:: | |
27 | |
28 $ echo 'pssst, this message is encrypted' | jp message send -o omemo louise@example.net | |
29 | |
30 .. note:: | |
31 | |
32 Fingerprints of your destinee must have been accepted before using OMEMO, else message can't be encrypted | |
33 | |
34 Send a ``normal`` message marked as French with a subject:: | |
35 | |
36 $ echo 'Bonjour, je vous écris avec « Salut à Toi »' | jp message send -l fr -t normal -S 'Ceci est un message de test' | |
37 | |
38 mam | |
39 === | |
40 | |
3041
72583524cfd3
doc (jp): jp commands are now fully documented:
Goffi <goffi@goffi.org>
parents:
2946
diff
changeset
|
41 Query archives using MAM. |
2946 | 42 This command allows you to check message archive kept on the server (i.e. not the local copy). |
43 You usually want to specify a starting point, and a number of message to retrieve. If too many messages | |
44 are available, you'll have to use RSM commands to navigate through the results. | |
45 | |
46 examples | |
47 -------- | |
48 | |
49 Retrieve messages from last 2 days:: | |
50 | |
51 $ jp message mam -S "2 days ago" | |
52 | |
53 Retrieve messages from last 5 hours on SàT official chat room:: | |
54 | |
3119 | 55 $ jp message mam -S "5 hours ago" -s sat@chat.jabberfr.org |
2946 | 56 |
57 Retrieve 2 first messages of 2019 on SàT official chat room:: | |
58 | |
59 $ jp message mam -S 2019-01-01 -s sat@chat.jabberfr.org -m 2 |