Git Product home page Git Product logo

gajim_logdb_to_text's Introduction

Note: Because I'm running my own servers for serveral years, all data and repositories are hosted there at https://git.ypbind.de/cgit/gajim_logdb_to_text/about/


Convert Gajims chat log database file into text files

Preface

Gajim stores the chat log in an SQLite database format in ${HOME}/.gajim/logs.db For easier searching and viewing chat logs should be stored in text files.

gajim_logdb_to_text will read chat logs from the SQLite database file and write the logs into text files inside a directory


Requirements

Python

gajim_logdb_to_text is written in Python, so Python >=2.6 is required. The neccessary sqlite3 Python module is included in the Python "vanilla" installation.


Command line parameters

gajim_logdb_to_text supports the following command line parameters:

  • -h or --help - shows help text, usage and copyright/license information
  • -f or --no-fd-cache - disable cacheing of open file descriptors. Default behavior is to keep a list of open output files and close them all when the conversion finnished instead of closeing and reopening the files every time a log message is appended. Usually the default setting will result in much better write performance but the limit of open file descriptors (ulimit -n) must be set accordingly.
  • -j or --no-jid-cache - disables reading of the ID -> JID mapping from the database once and lookup JID information from memory instead of requesting it from the database. Usually this will result in much faster lookups (and reduce disk I/O on the database file) but may consume large amounts of memory for huge JID lists.

Mandatory arguments are <name_of_gajim_logs_db> and <name_of_output_directory>, the output directory must already exists. The name of the output files is <year>_<moth>_<day>.log and will be located in:

  • <output_dir>/rooms/<room_name>/ - for messages in MUC chat
  • <output_dir>/rooms/<room_name>/<member>/ - for direct messages from MUC member <member>
  • <output_dir>/<bare_jid>/ - for direct (non-MUC) chat messages

License

This program is licenses under GLPv3.

gajim_logdb_to_text's People

Contributors

sc-amaus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.