Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yannissgarra
Copy link

This branch implements predifined addressbooks (Issue #4). Please merge!

Jérémy Bobbio added 3 commits June 20, 2012 17:04
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
@christian-putzke
Copy link
Owner

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!

@yannissgarra
Copy link
Author

Any news ?

@fmbiete
Copy link

fmbiete commented Aug 8, 2012

Whoaaa!!!! Thank you very much, I needed this option, and your changes are working fine.

+1 for the merge

@ghost
Copy link

ghost commented Jan 14, 2013

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) {
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants