2019-12-23 01:12:07 +00:00
|
|
|
Poezio OMEMO plugin
|
|
|
|
###################
|
|
|
|
|
2020-02-21 17:52:39 +00:00
|
|
|
**This plugin will not work with Poezio 0.12.**
|
|
|
|
|
|
|
|
|
2019-12-23 01:12:07 +00:00
|
|
|
This is a `Poezio <https://poez.io>`_ plugin providing OMEMO support. It
|
|
|
|
distributed separately for licensing reasons.
|
|
|
|
|
2019-12-29 01:26:14 +00:00
|
|
|
This plugin is very much **alpha**. It handles encryption and decryption
|
|
|
|
of OMEMO messages, but doesn't display the encryption state of messages,
|
2020-02-16 15:34:41 +00:00
|
|
|
and neither does it have a way to do trust management. As this plugin is
|
|
|
|
still changing often, it is recommended that users follow experimental
|
|
|
|
(master) versions of this project and its dependencies.
|
2019-12-23 01:12:07 +00:00
|
|
|
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
This plugin is licensed under GPLv3.
|
|
|
|
|
|
|
|
Note on the underlying OMEMO library
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
As stated in `python-xeddsa's
|
|
|
|
README <https://github.com/Syndace/python-xeddsa/blob/136b9f12c8286b9463566308963e70f090b60e50/README.md>`_,
|
|
|
|
(dependency of python-omemo), this library has not undergone any
|
|
|
|
security audits. If you have the knowledge, any help is welcome.
|
|
|
|
|
|
|
|
Please take this into consideration when using this library.
|
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
2020-02-16 15:34:41 +00:00
|
|
|
As this plugin is still changing often, it is recommended that users
|
2022-07-03 09:10:25 +00:00
|
|
|
follow experimental (main) versions of this project and its
|
2020-02-16 15:34:41 +00:00
|
|
|
dependencies.
|
|
|
|
|
2019-12-23 01:12:07 +00:00
|
|
|
- ArchLinux (AUR):
|
2020-11-11 15:51:42 +00:00
|
|
|
`poezio-omemo <https://aur.archlinux.org/packages/poezio-omemo>`_, or
|
|
|
|
`poezio-omemo-git <https://aur.archlinux.org/packages/poezio-omemo-git>`_
|
2023-03-10 15:24:41 +00:00
|
|
|
- Debian:
|
|
|
|
The author posed a `Request for packaging <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1007175>`_,
|
|
|
|
but so far, Debian has not packaged poezio-omemo yet.
|
2023-03-10 17:33:11 +00:00
|
|
|
Pip is disabled in Debian by default.
|
|
|
|
Call ``virtualenv your-name-for-your-poezio-env``
|
|
|
|
and then ``source your-name-for-your-poezio-env``
|
|
|
|
in order to be able to use pip.
|
|
|
|
- PIP: ``pip install poezio-omemo``
|
|
|
|
- Manual: ``python3 setup.py install``
|
2020-02-16 15:34:41 +00:00
|
|
|
|
2022-07-04 10:27:40 +00:00
|
|
|
Common issues
|
|
|
|
-------------
|
|
|
|
|
|
|
|
This plugin is **NOT** to be placed in the Poezio plugin folder, doing
|
|
|
|
so may shadow the OMEMO library and render it inaccessible from Poezio.
|
|
|
|
This module declares itself via `pkg_resources` under the
|
|
|
|
`poezio_plugins` group.
|
|
|
|
|
|
|
|
Other possible issues when loading the plugin may be that the OMEMO
|
|
|
|
library is incorrectly setup.
|
|
|
|
|
|
|
|
In a Python interpreter::
|
|
|
|
|
|
|
|
>>> # Is the backend OMEMO library is reachable? (success: no error, no output)
|
|
|
|
>>> import omemo
|
|
|
|
>>> # Is poezio_omemo reachable? (success: no error, no output)
|
|
|
|
>>> import poezio_omemo
|
|
|
|
>>> # Is the module probably declared in plugin entries? (success: true)
|
|
|
|
>>> import pkg_resources
|
|
|
|
>>> 'omemo' in map(lambda e: e.name, pkg_resources.iter_entry_points('poezio_plugins'))
|
|
|
|
|
|
|
|
If this doesn't yield any error and Poezio still can't load the plugin,
|
|
|
|
try starting it with a debug file (`-d poezio.log`) and join our
|
|
|
|
`channel <xmpp:poezio@muc.poez.io?join>`_.
|
|
|
|
|
2020-02-16 15:34:41 +00:00
|
|
|
Use in poezio
|
|
|
|
-------------
|
|
|
|
|
2023-03-10 17:33:11 +00:00
|
|
|
Once installed (see the `Installation`_ section), you can add
|
2020-02-16 15:34:41 +00:00
|
|
|
`omemo` in the `plugin_autoload` configuration. See the Poezio
|
|
|
|
`documentation
|
|
|
|
<https://doc.poez.io/plugins/index.html#plugin-autoload>`_ for more
|
|
|
|
information about autoloading plugins.
|
2023-03-10 17:33:11 +00:00
|
|
|
To load it manually in poezio, type ``/load omemo``.
|
2020-03-13 01:27:58 +00:00
|
|
|
|
|
|
|
TODO
|
|
|
|
----
|
|
|
|
|
2020-03-13 01:29:26 +00:00
|
|
|
- UI, various commands and indicators that messages are encrypted or not.
|
2023-03-10 17:33:11 +00:00
|
|
|
|
|
|
|
DEBUG
|
|
|
|
-----
|
|
|
|
|
|
|
|
Find :doc:`debugging logs </doc/debug>` for
|
|
|
|
|
|
|
|
- :doc:`pip installation on Debian unstable </doc/debug/20230310_debug-debian-sid-pip.md>`
|