[SOGo] sogo-tool, modify user preferences

2019-07-04 Thread Alexey Dunaev
Dear SOGo community,
I'm trying to share a calendar from one mailbox to other users with
availability through MS Outlook via ActiveSync connection.

I've done with sharing using command
~# sogo-tool manage-acl add meetingr...@example.com Calendar/personal
ad...@example.com [\"PublicModifier\"]
~# sogo-tool manage-acl subscribe meetingr...@example.com Calendar/personal
ad...@example.com [\"PublicModifier\"]

And now i should add option 'Synchronize (Microsoft Enterprise ActiveSync)'
with sogo-tool (still unchecked on this screenshot http://0x0.st/z2jy.png)
I didn't find exact option names (by google or sogo sources) and have tried
something like this (of cource it's wrong):
~# sogo-tool user-preferences set settings ad...@example.com '{"Calendar":
{"FolderSynchronize": {"meetingr...@example.com:Calendar\/personal"
: 1}}}'
after i've inspect mysql database with user settings and changing
preferences via web interface but have no luck.
Also i've tried a 'hack' - via my external script i've added
'FolderSynchronize' parameter into mysql sogo_user_profile table,
c_settings row, exactly (except an order of parameters in array) like SOGo
doing this after parameter checked in web-interface, but this doesn't help.

Can someone explain right syntax to use sogo-tool user-preferences or any
other ways how to enable ActiveSync Synchronize from 'admin' side, without
necessity to user side actions?

Thank you.

P.S. even built-in help message with command 'sogo-tool user-preferences
get defaults janedoe SOGoLanguage' for my mailbox returns "Value for key
"SOGoLanguage" not found in settings"
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] sogo-tool, modify user preferences

2019-06-24 Thread Alexey Dunaev

Dear SOGo community,

I'm trying to share a calendar from one mailbox to other users with 
availability through MS Outlook via ActiveSync connection.


I've done with sharing using command
~# sogo-tool manage-acl subscribe meetingr...@example.com 
Calendar/personal ad...@example.com [\"PublicModifier\"]


And now i should add option 'Synchronize (Microsoft Enterprise 
ActiveSync)' with sogo-tool (still unchecked on this screenshot 
http://0x0.st/z2jy.png)
I didn't find exact option names (by google or sogo sources) and have 
tried something like this:
~# sogo-tool user-preferences set settings ad...@example.com 
'{"Calendar": {"FolderSynchronize": 
{"meetingr...@example.com:Calendar\/personal": 1}}}'
after i've inspect mysql database with user settings and changing 
preferences via web interface but have no luck.


Can someone explain right syntax to use sogo-tool user-preferences?

P.S. even built-in help message with command 'sogo-tool user-preferences 
get defaults janedoe SOGoLanguage' for my mailbox returns "Value for key 
"SOGoLanguage" not found in settings"


--
users@sogo.nu
https://inverse.ca/sogo/lists