Skip to content

Commit 51eaeed

Browse files
committed
SQL Readme
1 parent 8e58634 commit 51eaeed

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Roundcube Plugin to create an Address Book from list of users in the SQL View.
33
Currently Natively Supporting:
44
+ iRedMail [Aliases Supported]
5-
+ [anything you create a MySQL View for]
5+
+ [anything you create a MySQL View for (Check out SQL/README.md)]
66

77
By Default The `DomainBook` is enabled for all users. All other books will have to be configured prior to use.
88

SQL/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
The View has to be in the following layout:
2+
+ ID has to be a Unique Integer but does not have to be ordered or anything else, just unique and static, must not change per user [but can change if the user changes, so can be based on the timestamp of user modification/creation]
3+
+ name is any string that will be displayed as the name, it will also be searched in when running searches both in autocomplete and the addressbook search module.
4+
+ email is a comma seperated list [alias support] of e-mail addresses, the first e-mail is the primary and will be preferred by Roundcube but others will be shown too.
5+
+ domain is used for DomainBooks but is required also for the Whitelist and Blacklist so the column must exist, it allows Distrubution Lists to work properly within groups of the DomainBook in Roundcube also.
6+
7+
| ID | name | email | domain |
8+
|:--------:|---------------------------|--------------------------------|------------------|
9+
| 21981839 | First Middle Last | [email protected] | bar.com |
10+
| 1 | Michael Daniel Telatynski | [email protected] | webdevguru.co.uk |
11+
| 2 | John Smith | [email protected],[email protected] | smith.com |
12+
13+
If you have any questions about how to create a custom view then just drop me a message, or use one of the included views as a base. If you create a view you think others could benefit from please Pull Request this repo and add it to the /SQL/ folder.

sql_global_addressbooks/sql_global_backend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*/
1313
class sql_global_backend extends rcube_addressbook {
1414

15+
public $group_id, $groups = false;
1516
public $primary_key = 'ID';
1617
public $readonly = true;
17-
public $group_id, $groups = false;
1818

1919
private $filter, $result, $name;
2020

0 commit comments

Comments
 (0)