# dino-chat-export Export chats and files from the XMPP client [Dino](https://dino.im) into a plain-text format. ![A screenshot of the same conversation two windows: Once in Dino, and once in HTML format displayed in Firefox.](res/combined-screenshot.png) ## Usage `$ ./dino-chat-export /tmp/xmpp-archive/` This script's only non-base requirement is `sqlite3`. It takes one argument, the output directory. The output tree ends up looking something like this: ``` $ tree /tmp/xmpp-archive/ /tmp/xmpp-archive/ └── youraccount@domain.tld ├── yourfriend@otherdomain.tld │ ├── files │ │ ├── sldfj_some_attached_file.pdf │ │ ├── their_avatar.png │ │ └── your_avatar.png │ └── messages.txt ├── evilperson@evilcompany.com │ ├── files │ │ ├── their_avatar.png │ │ └── your_avatar.png │ └── messages.txt ``` By default, each message is output in `YYYY-MM-DD <$user> $message` format, but you can customize the output of this script with environment variables. ### Environment variables | Variable | Description | Example | | ----------------- | ------------------------------------------------------------- | --------------------------------------- | | `$DINO_HOME` | Dino data directory | `~/.local/share/Dino` | | `$MESSAGE_HEADER` | Text preceding each message file, with basic substitutions. | `