Mercurial > libervia-backend
view doc/jp/message.rst @ 3028:ab2696e34d29
Python 3 port:
/!\ this is a huge commit
/!\ starting from this commit, SàT is needs Python 3.6+
/!\ SàT maybe be instable or some feature may not work anymore, this will improve with time
This patch port backend, bridge and frontends to Python 3.
Roughly this has been done this way:
- 2to3 tools has been applied (with python 3.7)
- all references to python2 have been replaced with python3 (notably shebangs)
- fixed files not handled by 2to3 (notably the shell script)
- several manual fixes
- fixed issues reported by Python 3 that where not handled in Python 2
- replaced "async" with "async_" when needed (it's a reserved word from Python 3.7)
- replaced zope's "implements" with @implementer decorator
- temporary hack to handle data pickled in database, as str or bytes may be returned,
to be checked later
- fixed hash comparison for password
- removed some code which is not needed anymore with Python 3
- deactivated some code which needs to be checked (notably certificate validation)
- tested with jp, fixed reported issues until some basic commands worked
- ported Primitivus (after porting dependencies like urwid satext)
- more manual fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 13 Aug 2019 19:08:41 +0200 |
parents | ce16847a7b6d |
children | 72583524cfd3 |
line wrap: on
line source
.. highlight:: sh ================================ message: chat message management ================================ Message commands let you send chat messages or manage your server message archives. send ==== send a message to a contact or a chat room. ``stdin`` is used as message source. You can encrypt your message using ``--encrypt [ALGORITHM]`` argument, this will create an encrypted session and replace existing one if needed. You can manage your encrypted session using ``encryption`` command. examples -------- Send a message to a contact:: $ echo 'Salut à Toi!' | jp message send louise@example.net Send a message encrypted with OMEMO:: $ echo 'pssst, this message is encrypted' | jp message send -o omemo louise@example.net .. note:: Fingerprints of your destinee must have been accepted before using OMEMO, else message can't be encrypted Send a ``normal`` message marked as French with a subject:: $ echo 'Bonjour, je vous écris avec « Salut à Toi »' | jp message send -l fr -t normal -S 'Ceci est un message de test' mam === query archives using MAM. This command allows you to check message archive kept on the server (i.e. not the local copy). You usually want to specify a starting point, and a number of message to retrieve. If too many messages are available, you'll have to use RSM commands to navigate through the results. examples -------- Retrieve messages from last 2 days:: $ jp message mam -S "2 days ago" Retrieve messages from last 5 hours on SàT official chat room:: $ jp message mam -S "2 hours ago" -s sat@chat.jabberfr.org Retrieve 2 first messages of 2019 on SàT official chat room:: $ jp message mam -S 2019-01-01 -s sat@chat.jabberfr.org -m 2