Wilfried Goesgens [Sun, 16 Aug 2015 10:25:07 +0000 (12:25 +0200)]
Merge branch 'configdb' of ssh://git.citadel.org/appl/gitroot/citadel
Conflicts:
citadel/citserver.c
citadel/config.c
citadel/control.c
citadel/modules/fulltext/serv_fulltext.c
citadel/modules/migrate/serv_migrate.c
citadel/modules/upgrade/serv_upgrade.c
citadel/server.h
Wilfried Goesgens [Tue, 4 Aug 2015 21:29:32 +0000 (23:29 +0200)]
fix pop3 Aggregator
- fix usetable - only mark messages as read if we already wrote them to the db.
- fix aggregation - point to the proper message.
Wilfried Goesgens [Tue, 4 Aug 2015 21:29:23 +0000 (23:29 +0200)]
properly terminate after running maintenance commands.
Wilfried Goesgens [Tue, 4 Aug 2015 20:18:05 +0000 (22:18 +0200)]
move pointer into a function.
Wilfried Goesgens [Tue, 4 Aug 2015 20:12:04 +0000 (22:12 +0200)]
Move another message into the only file its used.
Wilfried Goesgens [Tue, 4 Aug 2015 19:56:18 +0000 (21:56 +0200)]
Move function where its used.
Wilfried Goesgens [Mon, 13 Jul 2015 15:32:49 +0000 (17:32 +0200)]
Add timeout facility for event contexts
- make shure now() is set correctly on the context for proper kill decisions
Wilfried Goesgens [Mon, 27 Jul 2015 15:18:04 +0000 (17:18 +0200)]
Add cleanup routine which crawls the whole database, (re)creates matching metadata informations, removes empty message pointers from rooms.
Wilfried Goesgens [Mon, 27 Jul 2015 15:17:42 +0000 (17:17 +0200)]
const!
Wilfried Goesgens [Mon, 27 Jul 2015 11:31:09 +0000 (13:31 +0200)]
Add enums to hacking too.
Wilfried Goesgens [Mon, 27 Jul 2015 10:55:19 +0000 (12:55 +0200)]
Fix migrating of metadata
- don't omit the length of messages
- proper rc for no error.
Wilfried Goesgens [Fri, 24 Jul 2015 12:51:33 +0000 (14:51 +0200)]
Fix error number for maxed out server users.
Wilfried Goesgens [Fri, 24 Jul 2015 10:32:35 +0000 (12:32 +0200)]
Modularise msgbase
- offer to not call the msg hooks (and set the preivous default in all places)
- move the serialization of messages into own functions
- split saving of messages and saving of new messages and make them use each other
Fix import / export
- don't use fingercount strlen(), CPP can do that way better.
- properly de-serialize messages so we know they're good.
- don't roll our own message saving facilities, use the common one (which then also does the big message data splitting)
Wilfried Goesgens [Fri, 24 Jul 2015 10:31:56 +0000 (12:31 +0200)]
Fix swap of parameters when decoding base64; this could have lead to eventually to small target buffers.
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:48 +0000 (08:18 +0200)]
Work on vcards
- add i18n strings
- add conditionals for data types
- add iterator with filter for data types
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:48 +0000 (08:18 +0200)]
Work on vcards
- add i18n strings
- add conditionals for data types
- add iterator with filter for data types
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:13 +0000 (08:18 +0200)]
Add filter option to iterators
Wilfried Goesgens [Tue, 21 Jul 2015 18:57:12 +0000 (20:57 +0200)]
Disable houskeeping and wait for active background jobs to finish before attemtpting migrating.
Wilfried Goesgens [Mon, 13 Jul 2015 15:32:49 +0000 (17:32 +0200)]
Add timeout facility for event contexts
- make shure now() is set correctly on the context for proper kill decisions
Wilfried Goesgens [Tue, 21 Jul 2015 18:57:12 +0000 (20:57 +0200)]
Disable houskeeping and wait for active background jobs to finish before attemtpting migrating.
Wilfried Goesgens [Mon, 13 Jul 2015 15:32:49 +0000 (17:32 +0200)]
Add timeout facility for event contexts
- make shure now() is set correctly on the context for proper kill decisions
Art Cancro [Wed, 3 Jun 2015 16:18:10 +0000 (12:18 -0400)]
Excluded c_min_workers from the temporary config logging because it was too noisy
Art Cancro [Wed, 3 Jun 2015 16:14:38 +0000 (12:14 -0400)]
Finished migrating legacy control record to new config format
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:48 +0000 (08:18 +0200)]
Work on vcards
- add i18n strings
- add conditionals for data types
- add iterator with filter for data types
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:13 +0000 (08:18 +0200)]
Add filter option to iterators
Art Cancro [Sat, 30 May 2015 13:17:54 +0000 (09:17 -0400)]
remove the buried and not updated copyright notice
Art Cancro [Sat, 30 May 2015 01:31:55 +0000 (21:31 -0400)]
Remove the check for older Berkeley DB version. Unfortunately we can no longer perform this check since it needs the database.
Wilfried Goesgens [Sun, 10 May 2015 10:17:44 +0000 (12:17 +0200)]
Add way to have structured URL-parametrs using : in their names
Wilfried Goesgens [Sat, 9 May 2015 13:23:49 +0000 (15:23 +0200)]
vcard <-> parser <-> template working for simple values.
Wilfried Goesgens [Sat, 9 May 2015 13:23:18 +0000 (15:23 +0200)]
Catch Z-BUS errors in templates.
Wilfried Goesgens [Sun, 10 May 2015 10:17:44 +0000 (12:17 +0200)]
Add way to have structured URL-parametrs using : in their names
Wilfried Goesgens [Sat, 9 May 2015 13:23:49 +0000 (15:23 +0200)]
vcard <-> parser <-> template working for simple values.
Wilfried Goesgens [Sat, 9 May 2015 13:23:18 +0000 (15:23 +0200)]
Catch Z-BUS errors in templates.
Art Cancro [Thu, 7 May 2015 11:17:54 +0000 (07:17 -0400)]
Accidentally merged the configdb branch into Reverting.
This reverts commit
15054b0f11409cfc68102560fe4ab5a4e2bf4ea0, reversing
changes made to
1d738ab06a5394f604de22f816b87efaa6f2563a.
Art Cancro [Wed, 6 May 2015 23:44:36 +0000 (19:44 -0400)]
Config exporter complete.
Art Cancro [Wed, 6 May 2015 23:13:08 +0000 (19:13 -0400)]
Check for existing non-legacy configuration needs to be nonzero
Wilfried Goesgens [Tue, 5 May 2015 21:19:28 +0000 (23:19 +0200)]
Implement dynamic vcard tokens
Wilfried Goesgens [Tue, 5 May 2015 21:15:50 +0000 (23:15 +0200)]
Fix pointer indirection in free'ing of list
Art Cancro [Wed, 6 May 2015 22:54:00 +0000 (18:54 -0400)]
merge
Wilfried Goesgens [Tue, 5 May 2015 21:20:28 +0000 (23:20 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Tue, 5 May 2015 21:19:28 +0000 (23:19 +0200)]
Implement dynamic vcard tokens
Wilfried Goesgens [Tue, 5 May 2015 21:15:50 +0000 (23:15 +0200)]
Fix pointer indirection in free'ing of list
Art Cancro [Tue, 5 May 2015 17:34:00 +0000 (13:34 -0400)]
CtdlGetConfigInt() and CtdlGetConfigLong() converted from macros to functions because they need to be able to handle NULL return from CtdlGetConfigStr()
Art Cancro [Tue, 5 May 2015 15:36:00 +0000 (11:36 -0400)]
temporary noisy logging of config activity
Art Cancro [Tue, 5 May 2015 15:32:48 +0000 (11:32 -0400)]
Completed initial code for config system cutover. Not tested yet. Also the import/export module is mostly stubbed out.
Art Cancro [Tue, 5 May 2015 15:18:04 +0000 (11:18 -0400)]
config migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:41:32 +0000 (22:41 -0400)]
config migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:38:07 +0000 (22:38 -0400)]
config migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:24:18 +0000 (22:24 -0400)]
here be more migration
Art Cancro [Tue, 5 May 2015 02:16:03 +0000 (22:16 -0400)]
Moved more code over to the new config system
Art Cancro [Mon, 4 May 2015 14:57:53 +0000 (10:57 -0400)]
Migrated more to the new config system
Art Cancro [Mon, 4 May 2015 14:54:34 +0000 (10:54 -0400)]
Migrated more to the new config system
Art Cancro [Sat, 2 May 2015 16:36:25 +0000 (12:36 -0400)]
serv_expire.c migrated to new config system
Art Cancro [Sat, 2 May 2015 16:24:13 +0000 (12:24 -0400)]
serv_expire.c migrated to new config system
Art Cancro [Fri, 1 May 2015 21:42:19 +0000 (17:42 -0400)]
Migrated many other files to the new config system
Art Cancro [Fri, 1 May 2015 20:50:34 +0000 (16:50 -0400)]
migrated serv_session.c to new config format
Art Cancro [Fri, 1 May 2015 20:45:49 +0000 (16:45 -0400)]
migrated serv_rooms.c to new config format
Art Cancro [Fri, 1 May 2015 20:43:51 +0000 (16:43 -0400)]
migrated serv_messages.c to new config format
Art Cancro [Fri, 1 May 2015 20:39:01 +0000 (16:39 -0400)]
migrated serv_file.c to new config format
Art Cancro [Fri, 1 May 2015 20:35:01 +0000 (16:35 -0400)]
migrated serv_crypto.c to new config format
Art Cancro [Fri, 1 May 2015 15:44:09 +0000 (11:44 -0400)]
Migrated serv_calendar.c to the new config format
Art Cancro [Fri, 1 May 2015 15:40:14 +0000 (11:40 -0400)]
Migrated serv_bio.c to the new config format
Art Cancro [Fri, 1 May 2015 15:39:34 +0000 (11:39 -0400)]
Migrated serv_autocompletion.c to the new config format
Art Cancro [Fri, 1 May 2015 15:38:21 +0000 (11:38 -0400)]
Completed migrating control.o to new config format. WARNING BROKEN BUILD
Art Cancro [Fri, 1 May 2015 14:39:51 +0000 (10:39 -0400)]
More conversion to the new config system. WARNING BROKEN BUILD
Art Cancro [Fri, 1 May 2015 14:25:36 +0000 (10:25 -0400)]
More conversion to the new config system. WARNING BROKEN BUILD
Art Cancro [Thu, 30 Apr 2015 14:05:09 +0000 (10:05 -0400)]
CONF GET command ported to new config system
Art Cancro [Wed, 29 Apr 2015 15:04:39 +0000 (11:04 -0400)]
Converted databasesc to the new config format
Art Cancro [Wed, 29 Apr 2015 15:02:07 +0000 (11:02 -0400)]
Converted serv_extensions.c to the new config format
Art Cancro [Wed, 29 Apr 2015 15:00:17 +0000 (11:00 -0400)]
Converted sysdep.c to the new config format
Art Cancro [Wed, 29 Apr 2015 14:58:43 +0000 (10:58 -0400)]
Converted citserver.c to the new config format
Art Cancro [Wed, 29 Apr 2015 14:56:43 +0000 (10:56 -0400)]
Converted user_ops.o to new config format
Art Cancro [Wed, 29 Apr 2015 14:42:51 +0000 (10:42 -0400)]
config.c ported to new system BROKEN BUILD ALERT
Art Cancro [Sat, 25 Apr 2015 05:10:12 +0000 (01:10 -0400)]
Completed the get/set config functions.
Art Cancro [Sat, 25 Apr 2015 03:46:33 +0000 (23:46 -0400)]
Move location of variable declaration to silence warning
Art Cancro [Sat, 25 Apr 2015 03:46:33 +0000 (23:46 -0400)]
Move location of variable declaration to silence warning
Art Cancro [Sat, 25 Apr 2015 03:43:37 +0000 (23:43 -0400)]
Set up the CDB_CONFIG database
Art Cancro [Fri, 24 Apr 2015 22:35:57 +0000 (18:35 -0400)]
started setting up new config system
Art Cancro [Mon, 20 Apr 2015 22:44:27 +0000 (18:44 -0400)]
get_config() is now called from master_startup() immediately after the databases are opened.
Art Cancro [Mon, 20 Apr 2015 14:54:52 +0000 (10:54 -0400)]
Removed c_ctdluid from struct config entirely
Art Cancro [Mon, 20 Apr 2015 14:52:32 +0000 (10:52 -0400)]
ctdluid is now specified on the command line with the new -u option. Config file is not used anymore.
Wilfried Goesgens [Fri, 17 Apr 2015 06:15:36 +0000 (08:15 +0200)]
In case of to many users online we throw an error; we have to stop processing too.
Wilfried Goesgens [Mon, 13 Apr 2015 22:37:39 +0000 (00:37 +0200)]
Make base64 encoding not add random linebreak/feed characters.
Art Cancro [Sat, 18 Apr 2015 23:27:00 +0000 (19:27 -0400)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)]
set_default_values() in setup.c now gone completely
Wilfried Goesgens [Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)]
set_default_values() in setup.c now gone completely
Wilfried Goesgens [Fri, 17 Apr 2015 06:15:36 +0000 (08:15 +0200)]
In case of to many users online we throw an error; we have to stop processing too.
Wilfried Goesgens [Mon, 13 Apr 2015 22:37:39 +0000 (00:37 +0200)]
Make base64 encoding not add random linebreak/feed characters.
Art Cancro [Fri, 10 Apr 2015 18:57:19 +0000 (14:57 -0400)]
Removed the whole configlen thing. Seriously, WTF?
Art Cancro [Fri, 10 Apr 2015 17:48:23 +0000 (13:48 -0400)]
Call get_config() only once, not twice
Art Cancro [Tue, 7 Apr 2015 12:37:23 +0000 (08:37 -0400)]
Create CDB_CONFIG database. Renamed some members of CitControl.
Wilfried Goesgens [Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)]
fix uninitialised warning.
Wilfried Goesgens [Thu, 2 Apr 2015 17:27:53 +0000 (19:27 +0200)]
Remove oduplicate definition which became visible once it wasn't the same anymore...
Art Cancro [Wed, 1 Apr 2015 16:58:03 +0000 (12:58 -0400)]
Ran the releaseversion.sh script to mark everything as version 9.01
Wilfried Goesgens [Mon, 30 Mar 2015 20:57:37 +0000 (22:57 +0200)]
by Harry Coin: fix implementation - this buffer was missing.
Wilfried Goesgens [Mon, 30 Mar 2015 20:57:05 +0000 (22:57 +0200)]
by Harry Coin:
- fix commandline help message.
Wilfried Goesgens [Mon, 30 Mar 2015 20:55:33 +0000 (22:55 +0200)]
By Harry Coin:
- fix detection of libdiscount
- add detection for pwuid & friends
Wilfried Goesgens [Mon, 30 Mar 2015 20:54:19 +0000 (22:54 +0200)]
by Harry Coin: remove deprecated -t option from the debian init script.
Wilfried Goesgens [Mon, 30 Mar 2015 20:53:45 +0000 (22:53 +0200)]
By Harry Coin: make IsEmptyStr NULL-pointer-safe.
Wilfried Goesgens [Mon, 30 Mar 2015 14:29:58 +0000 (16:29 +0200)]
By Harry Coin:
1) The problem long discussed upstream to do with LDAP auth wanting the user name offered after the PASS command to stick around for later vcard use. The approach is to have vcard related searches use the citserver username to search against the ldap CN, while login searches behave as in the release version.
2) The vcard has a field uid, which citserver uses to tag vcards for uniqueness. LDAP also has a uuid for each of its records, most aptly saved also in the vcard as uuid. These collided causing the vcard to be reloaded every check owing to the overwriting the LDAP written uid over the citserver use of the same field. The patches below use the RFC approved 2.1 X- extension to support the field X-UUID for the ldap uuid. There's also small code cleanup to avoid setting the UID twice.