Hello Benjamin Pierrot
On 2012-04-05 17:12, Benjamin Pierrot wrote: > Hello, > Sorry for my bad explanation and thank you for your interest in my problem. > I want to add an external calendar example > "http://www.education.gouv.fr/download.php?file=http://media.education.gouv.fr/ics/Calendrier_Scolaire_Zones_A_B_C.ics" > in > sogoof a certain number of my users. > So this is a webcalendar! (in database : > ({"Calendar":{"WebCalendars":{"vacances:Calendar\/VAC":"http:\\//www.education.gouv.fr\/download.php?file=http:\/\/media.education.gouv.fr\/ics\/Calendrier_Scolaire_Zones_A_B_C.ics > <http://www.education.gouv.fr/download.php?file=http://media.education.gouv.fr/ics/Calendrier_Scolaire_Zones_A_B_C.ics>"}}}). > > My wish would be toscript this with sogo-tool. As for other functions > such as filters sieves > example : > sogo-tool user-preferences set defaults patrick admin:qwerty > SOGoSieveFilters '{"SOGoSieveFilters": [{"active": true, "actions": > [{"method": "fileinto", "argument": "myfolder"}], "rules": [{"operator": > "contains", "field": "subject", "value": "bar"}], "match": "any", > "name":"foo"}]}') > I never tried to create a calendar with sogo-tool, but it should work. Calendar definitions are not defaults, but settings. So in your script you have to look at the existing calendar settings with: sogo-tool user-preferences get settings ${USERNAME} Calendar Then enhance it with your chosen WebCalendar settings and store this with "set". But be aware that you _never_ should use duplicate UUIDs. So your script has to check this first, before inserting your new web calendar entry. I don't know how to do that, without querying the database itself. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists