<commit_before>About
=====

This script `mailboxUsage.php` should be run on a machine with PHP installed.
It queries the Kerio Connect server about all users and all domains and shows
how much diskspace each mailbox uses.

How to use
==========

The script is quite easy to use:
# Download all the files and place them locally
# Make sure you can connect to your Kerio Connect Adminconsole from this host
# Run the script

    # ./mailboxUsage.php 
    Hostname: kerio.tuxis.nl
    Username: admin
    Password: ********
     - Domain tuxis.nl
        * <EMAIL> (User 1) consumes 1154 MegaBytes.
        * <EMAIL> (User 2) consumes 1008924 Bytes.
        * <EMAIL> (User 3) consumes 5682 Bytes.
     - Domain tuxis.net
        ! No users in this domain.

Hostname, Username and Password will be asked for if you run the script.
Optionally, you can configure the hostname and username in config.php

If you want the output parseable, use the `-s` switch.

    $ ./mailboxUsage.php -s
    Hostname: kerio.tuxis.nl
    Username: admin
    Password: ********
    <EMAIL>,1210056704
    <EMAIL>,1008924
    <EMAIL>,5682

This allows you, for example, to use the data to generate averages and graphs.
<commit_msg>Fix list<commit_after>About
=====

This script `mailboxUsage.php` should be run on a machine with PHP installed.
It queries the Kerio Connect server about all users and all domains and shows
how much diskspace each mailbox uses.

How to use
==========

The script is quite easy to use:
* Download all the files and place them locally
* Make sure you can connect to your Kerio Connect Adminconsole from this host
* Run the script

    # ./mailboxUsage.php 
    Hostname: kerio.tuxis.nl
    Username: admin
    Password: ********
     - Domain tuxis.nl
        * <EMAIL> (User 1) consumes 1154 MegaBytes.
        * <EMAIL> (User 2) consumes 1008924 Bytes.
        * <EMAIL> (User 3) consumes 5682 Bytes.
     - Domain tuxis.net
        ! No users in this domain.

Hostname, Username and Password will be asked for if you run the script.
Optionally, you can configure the hostname and username in config.php

If you want the output parseable, use the `-s` switch.

    $ ./mailboxUsage.php -s
    Hostname: kerio.tuxis.nl
    Username: admin
    Password: ********
    <EMAIL>,1210056704
    <EMAIL>,1008924
    <EMAIL>,5682

This allows you, for example, to use the data to generate averages and graphs.

{'fraction_non_alphanumeric': 0.08883354088833541, 'fraction_numerical': 0.0323785803237858, 'mean_word_length': 3.0847457627118646, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3705507', 'n_tokens_mistral': 796, 'n_tokens_neox': 715, 'n_words': 315}