Commit dabfbbf8 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

OMEMO GTK3 inital

parent 9457a180
# Specify a configuration file.
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
# Add files or directories to the blacklist. They should be base names, not
# paths.
# Pickle collected data for later comparisons.
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
# Use multiple processes to speed up Pylint.
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
# Allow optimization of some AST trees. This will activate a peephole AST
# optimizer, which will apply various small optimizations. For instance, it can
# be used to obtain the result of joining multiple strings with the addition
# operator. Joining a lot of strings can lead to a maximum recursion error in
# Pylint and this flag can prevent that. It has one side effect, the resulting
# AST will be different than the one from reality.
# Only show warnings with the listed confidence levels. Leave empty to show
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
# Set the output format. Available formats are text, parseable, colorized, msvs
# (visual studio) and html. You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
# Put messages in a separate file for each module / package specified on the
# command line instead of printing them on stdout. Reports (if any) will be
# written in a file name "pylint_global.[txt|html]".
# Tells whether to display a full report or only the messages
# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
# List of builtins function names that should not be used, separated by a comma
# Good variable names which should always be accepted, separated by a comma
# Bad variable names which should always be refused, separated by a comma
# Colon-delimited sets of names that determine each other's naming style when
# the name regexes allow several styles.
# Include a hint for the correct naming format with invalid-name
# Regular expression matching correct function names
# Naming hint for function names
# Regular expression matching correct variable names
# Naming hint for variable names
# Regular expression matching correct constant names
# Naming hint for constant names
# Regular expression matching correct attribute names
# Naming hint for attribute names
# Regular expression matching correct argument names
# Naming hint for argument names
# Regular expression matching correct class attribute names
# Naming hint for class attribute names
# Regular expression matching correct inline iteration names
# Naming hint for inline iteration names
# Regular expression matching correct class names
# Naming hint for class names
# Regular expression matching correct module names
# Naming hint for module names
# Regular expression matching correct method names
# Naming hint for method names
# Regular expression which should only match function or class names that do
# not require a docstring.
# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
# Maximum number of nested blocks for function / method body
# Maximum number of characters on a single line.
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Allow the body of an if to be on the same line as the test if there is no
# else.
# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
# Maximum number of lines in a module
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Number of spaces of indent required inside a hanging or continued line.
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
# Logging modules to check that the string format arguments are in logging
# function parameter format
# List of note tags to take in consideration, separated by a comma.
# Minimum lines number of a similarity.
# Ignore comments when computing similarities.
# Ignore docstrings when computing similarities.
# Ignore imports when computing similarities.
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package.
# List of comma separated words that should not be checked.
# A path to a file that contains private dictionary; one word per line.
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
# List of classes names for which member attributes should not be checked
# (useful for classes with attributes dynamically set). This supports can work
# with qualified names.
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
# Tells whether we should check for unused import in __init__ files.
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
# List of strings which can identify a callback function by name. A callback
# name must start or end with one of those strings.
# List of method names used to declare (i.e. assign) instance attributes.
# List of valid names for the first argument in a class method.
# List of valid names for the first argument in a metaclass class method.
# List of member names, which should be excluded from the protected access
# warning.
# Maximum number of arguments for function / method
# Argument names that match this expression will be ignored. Default to name
# with leading underscore
# Maximum number of locals for function / method body
# Maximum number of return / yield for function / method body
# Maximum number of branch for function / method body
# Maximum number of statements in function / method body
# Maximum number of parents for a class (see R0901).
# Maximum number of attributes for a class (see R0902).
# Minimum number of public methods for a class (see R0903).
# Maximum number of public methods for a class (see R0904).
# Maximum number of boolean expressions in a if statement
# Deprecated modules which should not be used, separated by a comma
# Create a graph of every (i.e. internal and external) dependencies in the
# given file (report RP0402 must not be disabled)
# Create a graph of external dependencies in the given file (report RP0402 must
# not be disabled)
# Create a graph of internal dependencies in the given file (report RP0402 must
# not be disabled)
# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
based_on_style = pep8
align_closing_bracket_with_visual_indent = true
join_multiple_lines = true
0.9.0 / 2016-08-28
- Send INFO message to resources who dont support OMEMO
- Check dependencys and give correct error message
- Dont process PreKeyWhisperMessages without PreKey
- Dont process PGP messages
0.8.1 / 2016-08-05
- Query own Device Bundles on send button press
- Make Fingerprint Window higher and rename Buttons for something more appropriate
- Bugfixes
0.8.0 / 2016-08-03
- Encryption improvements:
-- SignedPreKey renews every 24 hours
-- New PreKeys are generated and published if less then 80 are available
-- If the Python Cryptography package is installed native encryption is now used (faster on old devices)
-- Bundle Information is only pulled right before sending a Message (see Business rules of the OMEMO XEP)
-- If Contact supports OMEMO, encryption is activated automatically
- Other Stuff:
-- The Fingerprint Window pops up if the Send Button is pressed and there are new Fingerprints in the DB
-- Message Correction now works with OMEMO (Press STRG + UP Arrow to correct the last send message)
-- SQL Refactoring, so new users dont have to go through DB Migration
-- Small bugfixes
0.7.5 / 2016-07-20
- Announcing of Support right after Plugin activation
- New Context Menu for Gajim Compact View
- Own Device Fingerprints are now available in the Fingerprint Window
- Small bugfixes
0.7 / 2016-07-16
- Reworked publishing Devicelist
- Deactivate Gajim E2E on startup
- Added new OMEMO popup menu
- UI & handling of inactive Devices
- various refactoring
0.6 / 2016-06-30
- Add MAM support
- Added Fingerprint Trustmanagment UI
- Added Plugin Config Menu
0.5 / 2016-05-02
- Add Windows support
- Fix bugs
0.4 / 2016-01-21
* Update
* Fix #32: Add own devices as possible OMEMO partners.
* Fix one of the errors in #26
* Fix sqlite db intialization
* Use the standalone python-omemo library
* FIx LOG_DB errors / lost messages
* Move all OMEMO related parts to own dir
* Rename all links from kalkin/.. to omemo/...
* Update archlinux PKGBUILD to 0.3
0.3 / 2016-01-10
* Save if OMEMO is enabled between restarts - #17
* Disable OMEMO if dependencies are missing - #9
* Make logging less verbose
* Add Arch Linux PKGBUILD file (Thanks Tommaso Sardelli)
* Extend README
* Fix hiding OMEMO controls in muc
* Fix "'ChatControl' object has no attribute 'lock_image'" bug - #16
* Ui clearly displays which message is encrypted (and how) - #15
* Plaintext messages are now always marked - #15
# 2015-12-27
- Fix crash, if jid is not in list (Thanks Mic92)
- Fix clear_device_list, if account is not connected (Thanks Mic92)
- Provide python-axolotl installation instructions in README and manifest.ini
This diff is collapsed.
# OMEMO Plugin for Gajim
This Plugin adds support for the [OMEMO Encryption]( to [Gajim]( This
plugin is [free software](
distributed under the GNU General Public License version 3 or any later version.
## Installation
Before you open any issues please read our [Wiki]( which addresses some problems that can occur during an install
### Linux
See [Linux Wiki](
### Windows
See [Windows Wiki](
### Via Package Manager
#### Arch
See [Arch Wiki](
#### Gentoo
`layman -a flow && emerge gajim-omemo`
### Via PluginInstallerPlugin
Install the current stable version via the Gajim PluginManager. You *need* Gajim
version *0.16.5*. If your package manager does not provide an up to date version
you can install it from the official Mercurial repository. *DO NOT USE* gajim
0.16.4 it contains a vulnerability, which is fixed in 0.16.5.
hg clone
cd gajim
hg update gajim-0.16.5 --clean
**NOTE:** You *have* to install `python-axolotl` via `pip`. Depending on your setup you might
want to use `pip2` as Gajim is using python2.7. If you are using the official repository,
do not forget to install the `nbxmpp` dependency via pip or you package manager.
if you still have problems, we have written down the most common problems [here](,-what-should-i-do%3F-(Linux))
## Running
Enable *OMEMO Multi-End Message and Object Encryption* in the Plugin-Manager.
If your contact supports OMEMO you should see a new orange fish icon in the chat window.
Encryption will be enabled by default for contacts that support OMEMO.
If you open the chat window, the Plugin will tell you with a green status message if its *enabled* or *disabled*.
If you see no status message, your contact doesnt support OMEMO.
(**Beware**, every status message is green. A green message does not mean encryption is active. Read the message !)
You can also check if encryption is enabled/disabled, when you click on the OMEMO icon.
When you send your first message the Plugin will query your contacts encryption keys and you will
see them in a readable fingerprint format in the fingerprint window which pops up.
you have to trust at least **one** fingerprint to send messages.
you can receive messages from fingerprints where you didnt made a trust decision, but you cant
receive Messages from *not trusted* fingerprints
## Debugging
To see OMEMO related debug output start Gajim with the parameter `-l
## Hacking
This repository contains the current development version. If you want to
contribute clone the git repository into your Gajim's plugin directory.
mkdir ~/.local/share/gajim/plugins -p
cd ~/.local/share/gajim/plugins
git clone
## Support this project
I develop this project in my free time. Your donation allows me to spend more
time working on it and on free software generally.
My Bitcoin Address is: `1CnNM3Mree9hU8eRjCXrfCWVmX6oBnEfV1`
[![Support Me via Flattr](](
## I found a bug
Please report it to the [issue
tracker]( If you are experiencing
misbehaviour please provide detailed steps to reproduce and debugging output.
Always mention the exact Gajim version.
## Contact
You can contact me via email at `` or follow me on
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkListStore" id="account_store">
<!-- column-name accountname -->
<column type="gchararray"/>
<object class="GtkListStore" id="deviceid_store">
<!-- column-name Device -->
<column type="gchararray"/>
<object class="GtkListStore" id="fingerprint_store">
<!-- column-name id -->
<column type="gint"/>
<!-- column-name screenname -->
<column type="gchararray"/>
<!-- column-name trust -->
<column type="gchararray"/>
<!-- column-name fingerprint -->
<column type="gchararray"/>
<object class="GtkNotebook" id="notebook1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="spacing">10</property>
<object class="GtkHBox" id="hbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">5</property>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" comments="label for account selector">&lt;b&gt;Account:&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
<object class="GtkComboBox" id="account_combobox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">account_store</property>
<signal name="changed" handler="account_combobox_changed_cb" swapped="no"/>
<object class="GtkCellRendererText" id="cellrenderertext1"/>
<attribute name="text">0</attribute>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<object class="GtkLabel" id="fingerprint_label_desc">