View Issue Details

IDProjectCategoryView StatusLast Update
0002241SOGosogo-toolpublic2013-02-10 23:43
Reporterbuzzzo Assigned Tojraby 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.0.4b 
Summary0002241: sogo-tool does not save sieve-filter
Description

if i run sogo-tool to retrieve the sieve filter info for user it works:

/usr/sbin/sogo-tool user-preferences get defaults buzzz@gci.it Vacation

Vacation: {"enabled": 1, "endDate": 1358895600, "autoReplyEmailAddresses": ["buzzz@gci.it", "dboz@gci.it", "davide.bozzelli@gci.it", "buzzz@zartech.it"], "ignoreLists": 1, "autoReplyText": "This is a default Out-Of-Office Enabled.", "daysBetweenResponse": "1", "endDateEnabled": 0}

If i try to "reinject" the json output just displayed i'vre receive the following error:

/usr/sbin/sogo-tool user-preferences set defaults buzzz@gci.it sieve::sieve_pass Vacation JSON_STRING

Feb 10 20:03:52 sogo-tool [5417]: [ERROR] <0x0x128b220[GSCBufferString]> json parser: Unrecognised leading character, attempting once more after unescaping...
Feb 10 20:03:52 sogo-tool [5417]: [ERROR] <0x0x128b220[GSCBufferString]> total failure. Original string is: Vacation
2013-02-10 20:03:52.567 sogo-tool[5417] Invalid JSON input - no changes performed in the database. The supplied value was: Vacation
user-preferences get|set|unset defaults|settings user [-p credentialFile] key [value|-f filename]

TagsNo tags attached.

Activities

jraby

jraby

2013-02-10 22:20

viewer   ~0005378

Instead of passing the user:password on the command line, pass it using a credential file, with the '-p' flag:

<pre>
sogo-tool user-preferences get|set|unset defaults|settings user [-p credentialFile] key [value|-f filename]

 user              the user of whom to set the defaults/settings key/value
 value             the JSON-formatted value of the key
 -p credentialFile    Specify the file containing the sieve admin credentials
                              The file should contain a single line:
                              username:password

</pre>

buzzzo

buzzzo

2013-02-10 23:10

reporter   ~0005379

Ok with the -p option it works.

Thx for help.

Issue History

Date Modified Username Field Change
2013-02-10 19:04 buzzzo New Issue
2013-02-10 22:20 jraby Note Added: 0005378
2013-02-10 22:20 jraby Status new => assigned
2013-02-10 22:20 jraby Assigned To => jraby
2013-02-10 23:10 buzzzo Note Added: 0005379
2013-02-10 23:43 jraby Status assigned => resolved
2013-02-10 23:43 jraby Resolution open => no change required