So when multidomain is enabled we will have tables like
sogo_cache_folder_user_A_domain_D_com instead of just
sogo_cache_folder_user
If multidomain is disabled the folders will still be like
sogo_cache_folder_user
Credentials must be supplied using '-p /path/to/credsFile'.
The credentials file should contain a single line with the format 'user:pass'
While there, add a usage message
This is related to #1955
Remove support for specifying the user:pass on the CLI
Add support for credential file: -p filename
Rewrite the core of the run function to use a switch case instead
of ... what was there.
Sprinkle so error messages along the way.
to specify the credential file, use: -p filename
The format of the file is:
username:password
Fixes: 1955
Also, add logging for some error conditions
The program still supports user:password on the cli
since this is run by cron and existing setups would break
sanitizedArguments are the arguments received on the CLI minus
those that are part of the NSArgumentDomain
For example:
sogo-tool user-preferences set sogo1 -p /tmp/creds Vacation -f /tmp/json
arguments would contain:
@"set", @"sogo1", @"-p", @"/tmp/creds", @"Vacation", @"-f", @"/tmp/json"
sanitizedArguments would contain :
@"set", @"sogo1", @"Vacation"
Add sogo-tool dump-defaults, a tool to convert an existing sogo configuration
in ~sogo/GNUstep/Defaults/.GNUstepDefaults to /etc/sogo/sogo.conf format.
The output will be in OpenStep property list format, which is much
easier to read and edit, at least for humans.
While there, sort the Tools list
use printf() instead of NSLog to print out user preferences.
Makes it easier to grep.
Monotone-Parent: 3896b9b187dfad2b01d68527f0411bd1a7cfe7b4
Monotone-Revision: f0fb54908898753faba576cb702431e4a761d814
Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-09T18:16:49
semi-colon are useless in sql queries and probably breaks on oracle
Monotone-Parent: e699f14b51f9de020728f6ca36fdcc283587d057
Monotone-Revision: aadc4759a64f724760d38bbdfd92715182856439
Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-06-21T15:51:53
Along with the associated new cronjob, this allows
user sessions expiration without a custom script.
* While there, sort tools in sogo-tool output
Monotone-Parent: 73baf2c24acbb1fb98296fc8ab448b3b3c5ba7a7
Monotone-Revision: 858274c7be3ad2a6383c2f85c8ad10907bb43292
Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-04-04T20:14:52