-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add predifined addressbooks #22
base: master
Are you sure you want to change the base?
Conversation
In order to add additional ways to add or delete CardDAV server, we factor out backend operations from carddav_server_save() and carddav_server_delete(). Those frontend functions have been suffixed with `_from_settings` to disambiguate them from them backend counterpart (`add_carddav_server` and `delete_carddav_server`, respectively). `carddav_server_check_connection` now explicitly receives settings instead of dircectly parsing user parameters.
A new configuration directive `carddav_default_servers` can be used to specify a list of predefined addressbooks. It supports some replacement strings in order to work with CardDAV servers that share authentication credentials with the IMAP server. In order to spot new (or deleted) predefined addressbooks, we add a new `default_server` flag to the database. This way we can ensure that we will never automatically remove user defined calendars. We also hide and prevent modifications to predefined addressbooks from the users. Closes: christian-putzke#4
I'll check this. But I've allready planed that feature and may check if your solution will be compatible to mine or not. But thanks anyway for your contribution! |
Any news ? |
Whoaaa!!!! Thank you very much, I needed this option, and your changes are working fine. +1 for the merge |
It rock´s! Thx a lot for the merge. |
* @param array server connection parameters | ||
* @return mixed either a CardDAV_Backend or FALSE if the connection fails | ||
*/ | ||
private function get_backend($server) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change to "private function get_backend(&$server)" to have it working correctly
This branch implements predifined addressbooks (Issue #4). Please merge!