citadel.git
8 years agoCleanup.
Wilfried Goesgens [Sun, 11 Oct 2015 21:30:22 +0000 (23:30 +0200)]
Cleanup.
  - remove old display vcard implementation
  - fix leaks
  - fix template syntax
  - remove debug prints

8 years agofix buffer overrun
Wilfried Goesgens [Sun, 11 Oct 2015 21:26:26 +0000 (23:26 +0200)]
fix buffer overrun

8 years agofix memory leak for invavlid HTTP-Heeaders
Wilfried Goesgens [Sun, 11 Oct 2015 21:26:01 +0000 (23:26 +0200)]
fix memory leak for invavlid HTTP-Heeaders

8 years agoAdd propper debugging for lflathashs, crash if debug and invalid combination of ...
Wilfried Goesgens [Sun, 11 Oct 2015 21:24:37 +0000 (23:24 +0200)]
Add propper debugging for lflathashs, crash if debug and invalid combination of *FlatHash and LKEY / IKEY

8 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Sun, 11 Oct 2015 11:57:27 +0000 (13:57 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

8 years agoImplement template based display of a single vcard.
Wilfried Goesgens [Sun, 11 Oct 2015 11:56:12 +0000 (13:56 +0200)]
Implement template based display of a single vcard.

8 years agoImplement iterators over vcard types, used vcard fields and multiple fields.
Wilfried Goesgens [Sun, 11 Oct 2015 11:54:23 +0000 (13:54 +0200)]
Implement iterators over vcard types, used vcard fields and multiple fields.

8 years agoAdd macro so application code can more easily _not_ access iterator reserved parameters.
Wilfried Goesgens [Sun, 11 Oct 2015 11:51:24 +0000 (13:51 +0200)]
Add macro so application code can more easily _not_ access iterator reserved parameters.

8 years agothis way around the filter logic status is more common sense.
Wilfried Goesgens [Sun, 11 Oct 2015 11:50:24 +0000 (13:50 +0200)]
this way around the filter logic status is more common sense.

8 years agoFix error handling to avoid XSS attacks.
Wilfried Goesgens [Wed, 7 Oct 2015 12:40:14 +0000 (14:40 +0200)]
Fix error handling to avoid XSS attacks.

8 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Wed, 7 Oct 2015 12:37:52 +0000 (14:37 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

8 years agoCONF GETVAL and CONF PUTVAL are now implemented
Art Cancro [Fri, 2 Oct 2015 16:50:58 +0000 (12:50 -0400)]
CONF GETVAL and CONF PUTVAL are now implemented

8 years agoLOOK AT ME I AM COMMITTING AGAIN
Art Cancro [Tue, 29 Sep 2015 21:52:00 +0000 (17:52 -0400)]
LOOK AT ME I AM COMMITTING AGAIN

8 years agoRemove dependency on configdb when auto-generating CSR, because it has not been initi...
Art Cancro [Tue, 29 Sep 2015 18:54:43 +0000 (14:54 -0400)]
Remove dependency on configdb when auto-generating CSR, because it has not been initialized yet.

8 years agoremove unused variable
Wilfried Goesgens [Sun, 16 Aug 2015 10:51:42 +0000 (12:51 +0200)]
remove unused variable

8 years agoMerge branch 'configdb' of ssh://git.citadel.org/appl/gitroot/citadel
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

8 years agofix pop3 Aggregator
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.

8 years agoproperly terminate after running maintenance commands.
Wilfried Goesgens [Tue, 4 Aug 2015 21:29:23 +0000 (23:29 +0200)]
properly terminate after running maintenance commands.

8 years agomove pointer into a function.
Wilfried Goesgens [Tue, 4 Aug 2015 20:18:05 +0000 (22:18 +0200)]
move pointer into a function.

8 years agoMove another message into the only file its used.
Wilfried Goesgens [Tue, 4 Aug 2015 20:12:04 +0000 (22:12 +0200)]
Move another message into the only file its used.

8 years agoMove function where its used.
Wilfried Goesgens [Tue, 4 Aug 2015 19:56:18 +0000 (21:56 +0200)]
Move function where its used.

8 years agoAdd timeout facility for event contexts
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

8 years agoAdd cleanup routine which crawls the whole database, (re)creates matching metadata...
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.

8 years agoconst!
Wilfried Goesgens [Mon, 27 Jul 2015 15:17:42 +0000 (17:17 +0200)]
const!

8 years agoAdd enums to hacking too.
Wilfried Goesgens [Mon, 27 Jul 2015 11:31:09 +0000 (13:31 +0200)]
Add enums to hacking too.

8 years agoFix migrating of metadata
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.

8 years agoFix error number for maxed out server users.
Wilfried Goesgens [Fri, 24 Jul 2015 12:51:33 +0000 (14:51 +0200)]
Fix error number for maxed out server users.

8 years agoModularise msgbase
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)

8 years agoFix swap of parameters when decoding base64; this could have lead to eventually to...
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.

8 years agoWork on vcards
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

8 years agoWork on vcards
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

8 years agoAdd filter option to iterators
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:13 +0000 (08:18 +0200)]
Add filter option to iterators

8 years agoDisable houskeeping and wait for active background jobs to finish before attemtpting...
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.

8 years agoAdd timeout facility for event contexts
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

8 years agoDisable houskeeping and wait for active background jobs to finish before attemtpting...
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.

8 years agoAdd timeout facility for event contexts
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

8 years agoExcluded c_min_workers from the temporary config logging because it was too noisy
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

8 years agoFinished migrating legacy control record to new config format
Art Cancro [Wed, 3 Jun 2015 16:14:38 +0000 (12:14 -0400)]
Finished migrating legacy control record to new config format

8 years agoWork on vcards
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

8 years agoAdd filter option to iterators
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:13 +0000 (08:18 +0200)]
Add filter option to iterators

8 years agoremove the buried and not updated copyright notice
Art Cancro [Sat, 30 May 2015 13:17:54 +0000 (09:17 -0400)]
remove the buried and not updated copyright notice

8 years agoRemove the check for older Berkeley DB version. Unfortunately we can no longer perfo...
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.

8 years agoAdd way to have structured URL-parametrs using : in their names
Wilfried Goesgens [Sun, 10 May 2015 10:17:44 +0000 (12:17 +0200)]
Add way to have structured URL-parametrs using : in their names

8 years agovcard <-> parser <-> template working for simple values.
Wilfried Goesgens [Sat, 9 May 2015 13:23:49 +0000 (15:23 +0200)]
vcard <-> parser <-> template working for simple values.

8 years agoCatch Z-BUS errors in templates.
Wilfried Goesgens [Sat, 9 May 2015 13:23:18 +0000 (15:23 +0200)]
Catch Z-BUS errors in templates.

8 years agoAdd way to have structured URL-parametrs using : in their names
Wilfried Goesgens [Sun, 10 May 2015 10:17:44 +0000 (12:17 +0200)]
Add way to have structured URL-parametrs using : in their names

8 years agovcard <-> parser <-> template working for simple values.
Wilfried Goesgens [Sat, 9 May 2015 13:23:49 +0000 (15:23 +0200)]
vcard <-> parser <-> template working for simple values.

8 years agoCatch Z-BUS errors in templates.
Wilfried Goesgens [Sat, 9 May 2015 13:23:18 +0000 (15:23 +0200)]
Catch Z-BUS errors in templates.

8 years agoAccidentally merged the configdb branch into master. Reverting.
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.

8 years agoConfig exporter complete.
Art Cancro [Wed, 6 May 2015 23:44:36 +0000 (19:44 -0400)]
Config exporter complete.

8 years agoCheck for existing non-legacy configuration needs to be nonzero
Art Cancro [Wed, 6 May 2015 23:13:08 +0000 (19:13 -0400)]
Check for existing non-legacy configuration needs to be nonzero

8 years agoImplement dynamic vcard tokens
Wilfried Goesgens [Tue, 5 May 2015 21:19:28 +0000 (23:19 +0200)]
Implement dynamic vcard tokens

8 years agoFix pointer indirection in free'ing of list
Wilfried Goesgens [Tue, 5 May 2015 21:15:50 +0000 (23:15 +0200)]
Fix pointer indirection in free'ing of list

8 years agomerge
Art Cancro [Wed, 6 May 2015 22:54:00 +0000 (18:54 -0400)]
merge

8 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Tue, 5 May 2015 21:20:28 +0000 (23:20 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

8 years agoImplement dynamic vcard tokens
Wilfried Goesgens [Tue, 5 May 2015 21:19:28 +0000 (23:19 +0200)]
Implement dynamic vcard tokens

8 years agoFix pointer indirection in free'ing of list
Wilfried Goesgens [Tue, 5 May 2015 21:15:50 +0000 (23:15 +0200)]
Fix pointer indirection in free'ing of list

8 years agoCtdlGetConfigInt() and CtdlGetConfigLong() converted from macros to functions because...
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()

8 years agotemporary noisy logging of config activity
Art Cancro [Tue, 5 May 2015 15:36:00 +0000 (11:36 -0400)]
temporary noisy logging of config activity

8 years agoCompleted initial code for config system cutover. Not tested yet. Also the import...
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.

8 years agoconfig migration endless typing meow
Art Cancro [Tue, 5 May 2015 15:18:04 +0000 (11:18 -0400)]
config migration endless typing meow

8 years agoconfig migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:41:32 +0000 (22:41 -0400)]
config migration endless typing meow

8 years agoconfig migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:38:07 +0000 (22:38 -0400)]
config migration endless typing meow

8 years agohere be more migration
Art Cancro [Tue, 5 May 2015 02:24:18 +0000 (22:24 -0400)]
here be more migration

8 years agoMoved more code over to the new config system
Art Cancro [Tue, 5 May 2015 02:16:03 +0000 (22:16 -0400)]
Moved more code over to the new config system

8 years agoMigrated more 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

8 years agoMigrated 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

8 years agoserv_expire.c migrated to new config system
Art Cancro [Sat, 2 May 2015 16:36:25 +0000 (12:36 -0400)]
serv_expire.c migrated to new config system

8 years agoserv_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

8 years agoMigrated many other files to the 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

8 years agomigrated serv_session.c to new config format
Art Cancro [Fri, 1 May 2015 20:50:34 +0000 (16:50 -0400)]
migrated serv_session.c to new config format

8 years agomigrated serv_rooms.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

8 years agomigrated serv_messages.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

8 years agomigrated serv_file.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

8 years agomigrated serv_crypto.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

8 years agoMigrated serv_calendar.c to the 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

8 years agoMigrated serv_bio.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

8 years agoMigrated serv_autocompletion.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

8 years agoCompleted migrating control.o to new config format. WARNING BROKEN BUILD
Art Cancro [Fri, 1 May 2015 15:38:21 +0000 (11:38 -0400)]
Completed migrating control.o to new config format.  WARNING BROKEN BUILD

8 years agoMore conversion to the new config system. 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

8 years agoMore 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

9 years agoCONF GET command ported to new config system
Art Cancro [Thu, 30 Apr 2015 14:05:09 +0000 (10:05 -0400)]
CONF GET command ported to new config system

9 years agoConverted databasesc to the new config format
Art Cancro [Wed, 29 Apr 2015 15:04:39 +0000 (11:04 -0400)]
Converted databasesc to the new config format

9 years agoConverted serv_extensions.c 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

9 years agoConverted sysdep.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

9 years agoConverted citserver.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

9 years agoConverted user_ops.o to new config format
Art Cancro [Wed, 29 Apr 2015 14:56:43 +0000 (10:56 -0400)]
Converted user_ops.o to new config format

9 years agoconfig.c ported to new system BROKEN BUILD ALERT
Art Cancro [Wed, 29 Apr 2015 14:42:51 +0000 (10:42 -0400)]
config.c ported to new system BROKEN BUILD ALERT

9 years agoCompleted the get/set config functions.
Art Cancro [Sat, 25 Apr 2015 05:10:12 +0000 (01:10 -0400)]
Completed the get/set config functions.

9 years agoMove 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

9 years agoMove 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

9 years agoSet up the CDB_CONFIG database
Art Cancro [Sat, 25 Apr 2015 03:43:37 +0000 (23:43 -0400)]
Set up the CDB_CONFIG database

9 years agostarted setting up new config system
Art Cancro [Fri, 24 Apr 2015 22:35:57 +0000 (18:35 -0400)]
started setting up new config system

9 years agoget_config() is now called from master_startup() immediately after the databases...
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.

9 years agoRemoved c_ctdluid from struct config entirely
Art Cancro [Mon, 20 Apr 2015 14:54:52 +0000 (10:54 -0400)]
Removed c_ctdluid from struct config entirely

9 years agoctdluid is now specified on the command line with the new -u option. Config file...
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.

9 years agoIn case of to many users online we throw an error; we have to stop processing too.
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.

9 years agoMake base64 encoding not add random linebreak/feed characters.
Wilfried Goesgens [Mon, 13 Apr 2015 22:37:39 +0000 (00:37 +0200)]
Make base64 encoding not add random linebreak/feed characters.

9 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Art Cancro [Sat, 18 Apr 2015 23:27:00 +0000 (19:27 -0400)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

9 years agoset_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