summaryrefslogtreecommitdiff
path: root/poezio
AgeCommit message (Collapse)Author
2019-08-22Removed repetitive code and added Error message for wrong timestampMadhur Garg
2019-08-22Removed MAM class and changed it into function.Madhur Garg
2019-08-22Removed /mam as a plugin, added it as a command in basetabs.Madhur Garg
2019-08-22Removed extra jid and password fieldsMadhur Garg
2019-08-22Removed extra connectionMadhur Garg
2019-08-22Registers xep-0313 pluginMadhur Garg
2019-08-22Client to fetch an archive of messages and add them in the current windowMadhur Garg
2019-08-21Fix xml debug logsmathieui
don’t ask, don’t tell
2019-08-20Fix /join <muc name without domain> from an existing mucmathieui
2019-08-02text_buffer: Prevent using str as a datetime objectMaxime “pep” Buquet
Cleanup a bit how `str_time` is assigned. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-29Merge remote-tracking branch 'origin/mr/28'Maxime “pep” Buquet
Address multiple reconnect issues. Thanks Ge0rG!
2019-07-19poezio/plugin_e2ee: import missing typeMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-13tabs/basetabs: Move config.get out of for loopMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02poezio/plugin_e2ee: Use encrypted_tags attribute to complete whitelist ↵Maxime “pep” Buquet
filtering on encryption Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02poezio/plugin_e2ee: Implement previous commit, add encrypted_tags attributeMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02poezio/plugin_e2ee: Add TODO in decryption method to match more than EME ↵Maxime “pep” Buquet
messages Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02e2ee-api: Fix 0380 link in documentationMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-02e2ee-api: Some more changes to the documentationMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Add documentationMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: change log line in _encryptMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Always remove non-whitelisted subelements of messagesMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Drop message if no body and no stanza encryptionMaxime “pep” Buquet
To avoid leaking data when plugin doesn't do stanza encryption. This will inevitably reduce the number of features available, but users want to send "secure" messages right. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: do not edit non-chat/groupchat messagesMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Do not remove body from messages if presentMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Add <eme/> only if <body/> is presentMaxime “pep” Buquet
As per discussion in jdev@ Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Fix log messageMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: Add replace_body_with_eme parameter to the classMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee-api: add comment on tag_whitelistMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: filter out non-whitelisted tags if not doing stanza encryptionMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Utilize priority in event handlingMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Ensure only one encryption method is enabled at a timeMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Avoid creating EME tag when looking if it's presentMaxime “pep” Buquet
Some slixmpp API fail.. it's be great if we didn't have to fiddle with the xml lib directly Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01e2ee api: Add space before encryption name in status barMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-01First shot of an E2EE plugin interfaceMaxime “pep” Buquet
Features: - Decryption by default once the plugin is loaded if messages contains the right EME magic - Encryption of messages only if encryption is enabled for the current tab Missing pieces: - No special treatment done on the order of the treatment for messages yet - No special handling of non-Partial(/Full) Stanza Encryption yet (i.e., removing stuff other than <body/>) Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-22Rename sb command 'scrollback' and make 'sb' an aliasMaxime “pep” Buquet
While this command exists in irssi and might be known by some already, 'sb' is not be the most obvious command name for newcomers. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-22Make function name clearerMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-22Merge remote-tracking branch 'origin/mr/31'Maxime “pep” Buquet
2019-06-22Rework priority handling for eventsMaxime “pep” Buquet
Introduce the concept of priority for event handlers, instead of the position parameter. The new `priority` parameter replacing `position` should be an integer between 0 and 100. It defaults to 50. The previous `position` parameter was only used to insert at a certain position in the list of handlers (for this particular event). No reference of it was kept, which means that it was not possible to ensure an event was called in the position is was supposed to be. I am now using per-event dicts, containing priority buckets (lists) of handlers. I am using OrderedDicts to make it easier to loop through all of the handlers, as insertion happens less often than reading. I was also suggested using bisect with a simple list of tuples (priority, handler) per event, but bisect tries to compare bound methods, which is obviously not possible. Maybe it would be interesting to find a way use this method instead of OrderedDict as that might be less resource consuming. This said, I don't think this part of poezio is a bottleneck at all, so maybe this is just fine as is. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-20Added few comments in the code and splitted a part of code into different ↵Madhur Garg
function.
2019-06-20Fixed some mistakes in coding styleMadhur Garg
2019-06-20Corrects the repeated refresh of the windowMadhur Garg
2019-06-20Updated usage of /sb in documentationMadhur Garg
2019-06-20Getting the line number of the message in the tab based on the searched ↵Madhur Garg
timestamp
2019-06-20Code work for /sb goto <+|-linecount>|<linenum>|<timestamp>Madhur Garg
2019-06-20Corrected code duplicationMadhur Garg
2019-06-20Corrected description of the scrollback commandMadhur Garg
2019-06-20Few imports for scrollback commandMadhur Garg
2019-06-20Initial version of scrollbackMadhur Garg
2019-05-28Also skip librsvg import on AttributeErrorEmmanuel Gil Peyrot
In the case python-gobject isn’t installed, but another package (such as libibus) provides overrides, the gi module will still get imported fine despite being empty, resulting in a traceback. To prevent this, we also catch AttributeError so that gi.require_version can fail.
2019-05-07config: ensure tabname is not a JID objectMaxime “pep” Buquet
Tabnames should be treated as opaque strings. This specific fix prevents tabname (JID) to be compared with invalid stringly-typed JIDs. JID's __eq__ method used to (after poezio/slixmpp@47968963) try and convert anything into JIDs. This has been fixed and now properly returns NotImplemented. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>