GithubHelp home page GithubHelp logo

nabble-export-processor's Introduction

Nabble Export Processor

Quickstart

[ -f .env ] || cp SAMPLE.env .env

# configure NABBLE_EXPORT_PROCESSOR_SCHEMA
$EDITOR .env

source .env

if [ -z "$NABBLE_EXPORT_PROCESSOR_SCHEMA" ]; then
    >&2 echo "ERROR: found empty value of NABBLE_EXPORT_PROCESSOR_SCHEMA"
    exit 1
fi

# prepare the stuff that requires an internet connection
docker-compose build
docker-compose pull

# now, we can disable the internet connection

# cp ~/Downloads/my-export-from-nabble.zip ./DATA/original-export.zip

docker-compose up -d postgres

# wait for database initialization
sleep 10

# import Nabble's export to database
docker-compose run jdbc_pg_backup

# optionally, inspect the database
docker-compose up -d adminer
xdg-open http://localhost:8080/

# export to other formats
docker-compose exec postgres su -c /POSTPROCESS.sh postgres

sudo chown -R $(id -u):$(id -g) DATA

docker-compose down

# containers, volumes, and images may be left behind

Caveats

This is far away from a clean solution

  • there is something wrong with the encoding
  • limited to small exports (mine had about 5k messages)
  • postprocessing outputs are redundant, format should be configurable
    • eml output contains real eml emails iff the message source is an email (as opposed to web post)
  • ... (lots more)

nabble-export-processor's People

Watchers

 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.