Hi

On 2013-01-02, at 11:18 AM, mourik jan heupink <[email protected]> wrote:

> Ok, I see what went wrong:
> 
> It seems that sogo stores the settings for an auxiliary email account under 
> c_defaults, and not under c_settings.
> 
> I'm getting further now, but it's still not working...
> 
> Using 'sogo-tool user-preferences get defaults heupink AuxiliaryMailAccounts' 
> gives me the settings like I entered them in the SOGo webaccess. That's good, 
> progess! :-)
> 
> However: feeding these settings (copy/paste and enclosed in '') into 
> sogo-tool gives:
> 
> /usr/sbin/sogo-tool: Uncaught exception NSInvalidArgumentException, reason: 
> GSMutableArray(instance) does not recognize allValues
> 
> Complete set defaults command:
> /usr/sbin/sogo-tool user-preferences set defaults heupink 
> AuxiliaryMailAccounts '[{"password": "xxxxx", "userName": "heupink", 
> "identities": [{"email": "[email protected]", "signature": "test signature", 
> "fullName": "heupink, mourik jan c"}], "encryption": "ssl", "serverName": 
> "imap.googlemail.com", "name": "gm"}]'
> 
> http://pastebin.ubuntu.com/1488772/
> 
> Seems sogo-tool doesn't understand some of it's own output?
> 
> The logs show nothing, so I'm also not sure what value exactly causes the 
> trouble…?


You need to repeat the key in the value string :

sogo-tool user-preferences set defaults heupink AuxiliaryMailAccounts 
'{"AuxiliaryMailAccounts": [{"password": "xxxxx", "userName": "heupink", 
"identities": [{"email": "[email protected]", "signature": "test signature", 
"fullName": "heupink, mourik jan c"}], "encryption": "ssl", "serverName": 
"imap.googlemail.com", "name": "gm"}]}'


Francis

--
[email protected] :: +1.514.755.3640 :: http://www.inverse.ca
Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence 
(http://packetfence.org)

-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to