citadel.git
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 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 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 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 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

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

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 agoRemoved the whole configlen thing. Seriously, WTF?
Art Cancro [Fri, 10 Apr 2015 18:57:19 +0000 (14:57 -0400)]
Removed the whole configlen thing.  Seriously, WTF?

9 years agoCall get_config() only once, not twice
Art Cancro [Fri, 10 Apr 2015 17:48:23 +0000 (13:48 -0400)]
Call get_config() only once, not twice

9 years agoCreate CDB_CONFIG database. Renamed some members of CitControl.
Art Cancro [Tue, 7 Apr 2015 12:37:23 +0000 (08:37 -0400)]
Create CDB_CONFIG database.  Renamed some members of CitControl.

9 years agofix uninitialised warning.
Wilfried Goesgens [Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)]
fix uninitialised warning.

9 years agoRemove oduplicate definition which became visible once it wasn't the same anymore...
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...

9 years agoRan the releaseversion.sh script to mark everything as version 9.01 v9.01
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

9 years agoby Harry Coin: fix implementation - this buffer was missing.
Wilfried Goesgens [Mon, 30 Mar 2015 20:57:37 +0000 (22:57 +0200)]
by Harry Coin: fix implementation - this buffer was missing.

9 years agoby Harry Coin:
Wilfried Goesgens [Mon, 30 Mar 2015 20:57:05 +0000 (22:57 +0200)]
by Harry Coin:
 - fix commandline help message.

9 years agoBy Harry Coin:
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

9 years agoby Harry Coin: remove deprecated -t option from the debian init script.
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.

9 years agoBy Harry Coin: make IsEmptyStr NULL-pointer-safe.
Wilfried Goesgens [Mon, 30 Mar 2015 20:53:45 +0000 (22:53 +0200)]
By Harry Coin: make IsEmptyStr NULL-pointer-safe.

9 years agoBy Harry Coin:
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.

9 years agoFix debian init script so it works with systemd.
Wilfried Goesgens [Sun, 1 Mar 2015 16:04:59 +0000 (17:04 +0100)]
Fix debian init script so it works with systemd.

9 years agoAdd epic editor copyright
Wilfried Goesgens [Sun, 1 Mar 2015 15:13:09 +0000 (16:13 +0100)]
Add epic editor copyright

9 years agoadd epic to the install target.
Wilfried Goesgens [Sun, 1 Mar 2015 14:53:52 +0000 (15:53 +0100)]
add epic to the install target.

9 years agoFix memory leaks; need to register lookups so their list is free'd afterwards.
Wilfried Goesgens [Sun, 1 Mar 2015 13:38:55 +0000 (14:38 +0100)]
Fix memory leaks; need to register lookups so their list is free'd afterwards.

9 years agomkd_cleanup() frees the output buffer.
Wilfried Goesgens [Sun, 1 Mar 2015 12:59:15 +0000 (13:59 +0100)]
mkd_cleanup() frees the output buffer.

9 years agoAdd libdiscount for markdown
Wilfried Goesgens [Sun, 1 Mar 2015 12:00:30 +0000 (13:00 +0100)]
Add libdiscount for markdown

9 years agoNeed to set the header data.
Wilfried Goesgens [Thu, 19 Feb 2015 23:06:07 +0000 (00:06 +0100)]
Need to set the header data.

9 years agoRSSClient: Add the location header provided URL to the error message, if we fail...
Wilfried Goesgens [Thu, 19 Feb 2015 22:31:59 +0000 (23:31 +0100)]
RSSClient: Add the location header provided URL to the error message, if we fail with a 30x HTTP

9 years agoSend crashmessage just once per day.
Wilfried Goesgens [Tue, 17 Feb 2015 19:20:05 +0000 (20:20 +0100)]
Send crashmessage just once per day.

9 years agoFix utf8-handling.
Wilfried Goesgens [Mon, 16 Feb 2015 19:52:59 +0000 (20:52 +0100)]
Fix utf8-handling.

9 years agoFix utf8-non-encoding in xml-escape
Wilfried Goesgens [Mon, 16 Feb 2015 19:35:57 +0000 (20:35 +0100)]
Fix utf8-non-encoding in xml-escape

9 years agoAdded the Easy Install script to contrib
Art Cancro [Sun, 15 Feb 2015 13:22:27 +0000 (08:22 -0500)]
Added the Easy Install script to contrib

9 years agoFixed the remaining bugs in roster iq replies.
Art Cancro [Sat, 14 Feb 2015 22:26:32 +0000 (17:26 -0500)]
Fixed the remaining bugs in roster iq replies.

9 years agofix to previous commit
Art Cancro [Sat, 14 Feb 2015 22:14:43 +0000 (17:14 -0500)]
fix to previous commit

9 years agoAdded a from= attribute to the reply to discovery queries. This appears to fix recen...
Art Cancro [Sat, 14 Feb 2015 20:21:56 +0000 (15:21 -0500)]
Added a from= attribute to the reply to discovery queries.  This appears to fix recently discovered XMPP client problems.

9 years agoChange copyright date in banner to 2015
Art Cancro [Thu, 12 Feb 2015 19:15:14 +0000 (14:15 -0500)]
Change copyright date in banner to 2015

9 years agoAs sugested by Robotamer: append the view parameter to the link.
Wilfried Goesgens [Mon, 9 Feb 2015 13:00:35 +0000 (14:00 +0100)]
As sugested by Robotamer: append the view parameter to the link.

9 years agoAdd jshintrc
Wilfried Goesgens [Sun, 1 Feb 2015 12:23:24 +0000 (13:23 +0100)]
Add jshintrc

9 years agofix token
Wilfried Goesgens [Thu, 22 Jan 2015 23:05:39 +0000 (00:05 +0100)]
fix token

9 years agofix type in testcase too.
Wilfried Goesgens [Tue, 20 Jan 2015 23:11:21 +0000 (00:11 +0100)]
fix type in testcase too.

9 years agoUse a Type for the stream pointers instead of void* so we have better error checking.
Wilfried Goesgens [Tue, 20 Jan 2015 22:56:22 +0000 (23:56 +0100)]
Use a Type for the stream pointers instead of void* so we have better error checking.

9 years agoAdd error handling to the stream functions
Wilfried Goesgens [Tue, 20 Jan 2015 22:27:46 +0000 (23:27 +0100)]
Add error handling to the stream functions

9 years agoIts the job of the stream lib to suppress chunks just consisting of the gzip header.
Wilfried Goesgens [Tue, 20 Jan 2015 21:11:12 +0000 (22:11 +0100)]
Its the job of the stream lib to suppress chunks just consisting of the gzip header.

9 years agoDon't send an extra chunk for the gzip header.
Wilfried Goesgens [Sun, 18 Jan 2015 19:12:40 +0000 (20:12 +0100)]
Don't send an extra chunk for the gzip header.

9 years agoFill the noncompress blacklist from what debian /etc/mime.types brings about uncompre...
Wilfried Goesgens [Sun, 18 Jan 2015 18:51:57 +0000 (19:51 +0100)]
Fill the noncompress blacklist from what debian /etc/mime.types brings about uncompresseable.