Initial commit

This commit is contained in:
Alice Gaudon 2019-06-01 14:08:00 +02:00
commit ad21f20024
3 changed files with 34 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config.inc.php

18
composer.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "arisuongaku/virtuser_identity_autoupdate",
"type": "roundcube-plugin",
"description": "Updates user's identities on login based on aliases from virtuser_query. Update rules are configurable.",
"license": "",
"version": "0.1",
"authors": [
{
"name": "Alice Gaudon",
"email": "alice@gaudon.pro",
"role": "Lead"
}
],
"require": {
"php": ">=5.3.0",
"roundcube/plugin-installer": ">=0.1.3"
}
}

15
config.inc.php.dist Normal file
View File

@ -0,0 +1,15 @@
<?php
$conf = $config['virtuser_identity_autoupdate'] = array();
// Enables (true) or disables (false) the plugin
$conf['update_on_login'] = true;
// Remove identities for which the email address is unknown for this user
$conf['remove_unknown_alias_identities'] = true;
// Connection to the database which holds user aliases information
$conf['dsn'] = '';
// Query all aliases for a given user. '%u' will be replaced with the username.
// Example : SELECT aliases.email FROM aliases LEFT JOIN users ON aliases.user_id=users.id WHERE users.name="%u"
$conf['user_aliases_query'] = '';