citadel.git
8 years agoits wCLog now, as js styleguides command us.
Wilfried Goesgens [Sun, 3 Jan 2016 19:05:08 +0000 (20:05 +0100)]
its wCLog now, as js styleguides command us.

8 years agoadjust case
Wilfried Goesgens [Sun, 3 Jan 2016 17:27:07 +0000 (18:27 +0100)]
adjust case

8 years agoIf we find '/' in message IDs, only use the following characters to calculate the...
Wilfried Goesgens [Sun, 3 Jan 2016 16:08:41 +0000 (17:08 +0100)]
If we find '/' in message IDs, only use the following characters to calculate the thread hash, so we can identify threads by wiki page ids.

8 years agoAdd macro to calculate a hash from a part of the message id
Wilfried Goesgens [Sun, 3 Jan 2016 16:05:16 +0000 (17:05 +0100)]
Add macro to calculate a hash from a part of the message id

8 years agoConstruct the msgid for wiki entries by appending the page
Wilfried Goesgens [Sun, 3 Jan 2016 16:04:35 +0000 (17:04 +0100)]
Construct the msgid for wiki entries by appending the page

8 years agoRemove unneeded newlines from syslog calls
Art Cancro [Sun, 3 Jan 2016 05:27:28 +0000 (00:27 -0500)]
Remove unneeded newlines from syslog calls

8 years agomore progress on callers
Art Cancro [Sun, 3 Jan 2016 05:22:07 +0000 (00:22 -0500)]
more progress on callers

8 years agoMerge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Art Cancro [Sun, 3 Jan 2016 04:45:15 +0000 (23:45 -0500)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel

8 years agoRemoved the caching of netconfig entries. The caching of configdb entries now serves...
Art Cancro [Sun, 3 Jan 2016 04:43:09 +0000 (23:43 -0500)]
Removed the caching of netconfig entries.  The caching of configdb entries now serves the same purpose.
Finished the new netconfig API and all code is working and tested.  The only remaining task is to update
the callers.   DO NOT RUN THIS BUILD, NETCONFIGS ARE NOT YET BEING SAVED

8 years agoChanged the way we log errors if serv_vcard cannot create a netconfig file.
Art Cancro [Sun, 3 Jan 2016 02:22:23 +0000 (21:22 -0500)]
Changed the way we log errors if serv_vcard cannot create a netconfig file.
Never use LOG_EMERG , it broadcasts to all users on most systems.

8 years agoAdd publish button to \edit rooms
Wilfried Goesgens [Sat, 2 Jan 2016 14:13:15 +0000 (15:13 +0100)]
Add publish button to \edit rooms

8 years agofix token.
Wilfried Goesgens [Sat, 2 Jan 2016 14:13:06 +0000 (15:13 +0100)]
fix token.

8 years agoAdd the IDs of a message to the markup, so .js can find it later on.
Wilfried Goesgens [Sat, 2 Jan 2016 14:12:27 +0000 (15:12 +0100)]
Add the IDs of a message to the markup, so .js can find it later on.

8 years agoAdd new conditional that finds whether a room name ends with \edit
Wilfried Goesgens [Sat, 2 Jan 2016 14:11:03 +0000 (15:11 +0100)]
Add new conditional that finds whether a room name ends with \edit

8 years agoFollow type change to StrBuf
Wilfried Goesgens [Sat, 2 Jan 2016 14:10:13 +0000 (15:10 +0100)]
Follow type change to StrBuf

8 years agoI should drink more while writing this
Art Cancro [Sat, 2 Jan 2016 03:46:40 +0000 (22:46 -0500)]
I should drink more while writing this

8 years agoDONALD TRUMP IS AWESOME
Art Cancro [Sat, 2 Jan 2016 03:03:57 +0000 (22:03 -0500)]
DONALD TRUMP IS AWESOME

8 years agoWhen deleting a room, delete its netconfig configdb entry instead of the netconfig...
Art Cancro [Sat, 2 Jan 2016 03:00:46 +0000 (22:00 -0500)]
When deleting a room, delete its netconfig configdb entry instead of the netconfig file

8 years agoConvert netconfigs to configdb entries at startup.
Art Cancro [Sat, 2 Jan 2016 02:53:16 +0000 (21:53 -0500)]
Convert netconfigs to configdb entries at startup.

8 years agoroom_ops.c: minor style cleanups which barely justify changing the file copyright...
Art Cancro [Sat, 2 Jan 2016 00:01:07 +0000 (19:01 -0500)]
room_ops.c: minor style cleanups which barely justify changing the file copyright date to 2016

8 years agonetconfig.c: Remove unnecessary newlines from syslog
Art Cancro [Fri, 1 Jan 2016 23:00:48 +0000 (18:00 -0500)]
netconfig.c: Remove unnecessary newlines from syslog

8 years ago* New function CtdlDelConfig() to delete a config db record
Art Cancro [Fri, 1 Jan 2016 22:57:17 +0000 (17:57 -0500)]
* New function CtdlDelConfig() to delete a config db record
* Updated Berkeley DB hook to syslog properly when db version >= 5.0
* Updated startup banner copyright year to 1987-2016

8 years agoTemplatize.
Wilfried Goesgens [Fri, 1 Jan 2016 13:58:55 +0000 (14:58 +0100)]
Templatize.

8 years agoAdd new mask to create a blog + edit room with sample text.
Wilfried Goesgens [Thu, 31 Dec 2015 14:09:19 +0000 (15:09 +0100)]
Add new mask to create a blog + edit room with sample text.

8 years agoFix flipping to alternate templates, and add success flag.
Wilfried Goesgens [Thu, 31 Dec 2015 14:07:33 +0000 (15:07 +0100)]
Fix flipping to alternate templates, and add success flag.

8 years agoFix free loading of other templates; add success flag.
Wilfried Goesgens [Thu, 31 Dec 2015 14:07:08 +0000 (15:07 +0100)]
Fix free loading of other templates; add success flag.

8 years agoParametrize the escaping of the IMPORTANTMESSAGE token.
Wilfried Goesgens [Thu, 31 Dec 2015 12:04:00 +0000 (13:04 +0100)]
Parametrize the escaping of the IMPORTANTMESSAGE token.

8 years agoTemplatize the info editing boxes
Wilfried Goesgens [Wed, 30 Dec 2015 15:19:36 +0000 (16:19 +0100)]
Templatize the info editing boxes

8 years agorename template so the name is more meaningfull.
Wilfried Goesgens [Sun, 27 Dec 2015 00:01:11 +0000 (01:01 +0100)]
rename template so the name is more meaningfull.

8 years agoRework blogview renderer, so it can build the threads with only the information our...
Wilfried Goesgens [Sat, 26 Dec 2015 23:57:08 +0000 (00:57 +0100)]
Rework blogview renderer, so it can build the threads with only the information our new MSGS with parametrized headers demanded gives us.

8 years agoAdd more headers that only appear on the transport via the citadel protocol, but...
Wilfried Goesgens [Sat, 26 Dec 2015 23:56:28 +0000 (00:56 +0100)]
Add more headers that only appear on the transport via the citadel protocol, but aren't persisted to disk.

8 years agoput standard handlers into their own enum-lookupable list.
Wilfried Goesgens [Mon, 21 Dec 2015 18:06:44 +0000 (19:06 +0100)]
put standard handlers into their own enum-lookupable list.

8 years agoUse a table similar to citserver to map message fields.
Wilfried Goesgens [Mon, 21 Dec 2015 14:01:11 +0000 (15:01 +0100)]
Use a table similar to citserver to map message fields.

8 years agoImplemnet new message listing mode, that allows to specify which headers to send
Wilfried Goesgens [Sun, 20 Dec 2015 22:19:34 +0000 (23:19 +0100)]
Implemnet new message listing mode, that allows to specify which headers to send

8 years agoAdd lookup table for message headers instead of doing rumpelstilskin lookup
Wilfried Goesgens [Sun, 20 Dec 2015 21:18:29 +0000 (22:18 +0100)]
Add lookup table for message headers instead of doing rumpelstilskin lookup

8 years agomove FourHash into libcitadel.
Wilfried Goesgens [Sun, 20 Dec 2015 19:03:03 +0000 (20:03 +0100)]
move FourHash into libcitadel.

8 years agoImprove documentation:
Wilfried Goesgens [Sun, 20 Dec 2015 18:12:27 +0000 (19:12 +0100)]
Improve documentation:
 - start converting to markdown
 - put the enums into the network mnemonics table

8 years agoSplit mailview renderers from mailview tokens
Wilfried Goesgens [Sun, 20 Dec 2015 13:59:27 +0000 (14:59 +0100)]
Split mailview renderers from mailview tokens

8 years agoRemove function from header.
Wilfried Goesgens [Sun, 20 Dec 2015 13:29:04 +0000 (14:29 +0100)]
Remove function from header.

8 years agoRemove function from header.
Wilfried Goesgens [Sun, 20 Dec 2015 13:27:15 +0000 (14:27 +0100)]
Remove function from header.

8 years agoremove disappeared function from header.
Wilfried Goesgens [Sun, 20 Dec 2015 13:22:23 +0000 (14:22 +0100)]
remove disappeared function from header.

8 years agoRemove unneccesary stuff from webcit.h
Wilfried Goesgens [Sun, 20 Dec 2015 13:19:53 +0000 (14:19 +0100)]
Remove unneccesary stuff from webcit.h

8 years agoadd preference whether the user prefers to send markdown messages.
Wilfried Goesgens [Sun, 13 Dec 2015 18:24:42 +0000 (19:24 +0100)]
add preference whether the user prefers to send markdown messages.

8 years agoAllow to stack contexts into message renderers.
Wilfried Goesgens [Sun, 13 Dec 2015 15:26:18 +0000 (16:26 +0100)]
Allow to stack contexts into message renderers.

8 years agofix peramnent link to blog entry
Wilfried Goesgens [Sun, 13 Dec 2015 14:26:52 +0000 (15:26 +0100)]
fix peramnent link to blog entry

8 years agoAdd new setting to disable posting of notification messages to file rooms.
Wilfried Goesgens [Sun, 13 Dec 2015 13:57:00 +0000 (14:57 +0100)]
Add new setting to disable posting of notification messages to file rooms.

8 years agofix link
Wilfried Goesgens [Sun, 13 Dec 2015 13:55:28 +0000 (14:55 +0100)]
fix link

8 years agoTemplate the last bits of the blog view.
Wilfried Goesgens [Sat, 12 Dec 2015 18:58:45 +0000 (19:58 +0100)]
Template the last bits of the blog view.

8 years agoadd template token to output the current hostname
Wilfried Goesgens [Sat, 12 Dec 2015 18:40:37 +0000 (19:40 +0100)]
add template token to output the current hostname

8 years agoUse strbuf in template token handler
Wilfried Goesgens [Sat, 12 Dec 2015 14:23:00 +0000 (15:23 +0100)]
Use strbuf in template token handler

8 years agoProtect precious strlens, as pointed out by John Goerzen
Wilfried Goesgens [Sun, 6 Dec 2015 13:48:19 +0000 (14:48 +0100)]
Protect precious strlens, as pointed out by John Goerzen

8 years agoBy John Goerzen: fix buffer overrun in the text client when sending files with mimet...
Wilfried Goesgens [Thu, 3 Dec 2015 18:36:07 +0000 (19:36 +0100)]
By  John Goerzen: fix buffer overrun in the text client when sending files with mimetypes.

8 years agoUpdated the COPYING file to have a 2015 date instead of 2012. Also removed the word...
Art Cancro [Thu, 26 Nov 2015 01:35:52 +0000 (20:35 -0500)]
Updated the COPYING file to have a 2015 date instead of 2012.  Also removed the word GNU wherever possible because Richard Stallman is a freedom-hating left wing lunatic.

8 years agoHandle importing of new config system in serv_migrate.c
Art Cancro [Wed, 25 Nov 2015 22:13:20 +0000 (17:13 -0500)]
Handle importing of new config system in serv_migrate.c

8 years agoRemoved unneeded newlines in serv_migrate.c
Art Cancro [Wed, 25 Nov 2015 21:57:49 +0000 (16:57 -0500)]
Removed unneeded newlines in serv_migrate.c

8 years agoCleanup
Wilfried Goesgens [Sat, 21 Nov 2015 21:43:03 +0000 (22:43 +0100)]
Cleanup

8 years agofinalize vcard list display
Wilfried Goesgens [Thu, 19 Nov 2015 21:47:40 +0000 (22:47 +0100)]
finalize vcard list display

8 years agofix vcard sorting and tabs
Wilfried Goesgens [Thu, 19 Nov 2015 21:44:44 +0000 (22:44 +0100)]
fix vcard sorting and tabs

8 years agoFix off by one when cutting utf8-strings
Wilfried Goesgens [Thu, 19 Nov 2015 21:29:53 +0000 (22:29 +0100)]
Fix off by one when cutting utf8-strings

8 years agoremove wrong output of tail item
Wilfried Goesgens [Tue, 17 Nov 2015 23:18:14 +0000 (00:18 +0100)]
remove wrong output of tail item

8 years agoCleanup vcard rendering code
Wilfried Goesgens [Tue, 17 Nov 2015 22:17:19 +0000 (23:17 +0100)]
Cleanup vcard rendering code

8 years agoFinalize vcard list templates
Wilfried Goesgens [Tue, 17 Nov 2015 22:17:03 +0000 (23:17 +0100)]
Finalize vcard list templates

8 years agoMake the swap buffer content function publically available.
Wilfried Goesgens [Tue, 17 Nov 2015 22:09:21 +0000 (23:09 +0100)]
Make the swap buffer content function publically available.

8 years agoHTML-escape tablabels.
Wilfried Goesgens [Tue, 17 Nov 2015 18:59:31 +0000 (19:59 +0100)]
HTML-escape tablabels.

8 years agoTemplatize email list interface.
Wilfried Goesgens [Mon, 16 Nov 2015 21:38:47 +0000 (22:38 +0100)]
Templatize email list interface.

8 years agoFinalize new iterator property tokens: COND:ITERATE:ISMOD and ITERATE:N:DIV
Wilfried Goesgens [Mon, 16 Nov 2015 21:37:25 +0000 (22:37 +0100)]
Finalize new iterator property tokens: COND:ITERATE:ISMOD and ITERATE:N:DIV

8 years agoMake it const.
Wilfried Goesgens [Mon, 16 Nov 2015 21:36:56 +0000 (22:36 +0100)]
Make it const.

8 years agoAssert that we don't always have a valid session.
Wilfried Goesgens [Mon, 16 Nov 2015 19:28:06 +0000 (20:28 +0100)]
Assert that we don't always have a valid session.

8 years agoRemoved using_web_installer variable , we do not check it anymore
Art Cancro [Sun, 15 Nov 2015 14:09:46 +0000 (09:09 -0500)]
Removed using_web_installer variable , we do not check it anymore

8 years agoReworked the setup program to use the new config system.
Art Cancro [Sun, 15 Nov 2015 02:16:14 +0000 (21:16 -0500)]
Reworked the setup program to use the new config system.

8 years agomove CTX_VCARD one layer up: so we have the message number etc.
Wilfried Goesgens [Mon, 9 Nov 2015 21:49:32 +0000 (22:49 +0100)]
move CTX_VCARD one layer up: so we have the message number etc.

8 years agoCleanup templating of vcard lists
Wilfried Goesgens [Mon, 9 Nov 2015 20:05:17 +0000 (21:05 +0100)]
Cleanup templating of vcard lists

8 years agoAdd modulo operator for the list iterator so the templates can do multi level list...
Wilfried Goesgens [Mon, 9 Nov 2015 20:02:35 +0000 (21:02 +0100)]
Add modulo operator for the list iterator so the templates can do multi level list operations

8 years agoCleanup vcard rendering code to be better able to template the list view.
Wilfried Goesgens [Fri, 6 Nov 2015 17:47:07 +0000 (18:47 +0100)]
Cleanup vcard rendering code to be better able to template the list view.

8 years agoOutput really all email headers in the mail headers output
Wilfried Goesgens [Thu, 29 Oct 2015 23:11:14 +0000 (00:11 +0100)]
Output really all email headers in the mail headers output

8 years agomake shure we send a linebreak after the headers.
Wilfried Goesgens [Thu, 29 Oct 2015 23:09:50 +0000 (00:09 +0100)]
make shure we send a linebreak after the headers.

8 years agoFinalize vcard editing:
Wilfried Goesgens [Sun, 18 Oct 2015 18:15:48 +0000 (20:15 +0200)]
Finalize vcard editing:
  - remove deprecated paramhandling functions that une implicit strlen() and their easy errnous usecases
  - add handling for : (and url escaped:) splitting of parameters
  - implement posting of vcards to structured grammers.

8 years ago - Add new function for demo printing hashes
Wilfried Goesgens [Sun, 18 Oct 2015 18:14:47 +0000 (20:14 +0200)]
 - Add new function for demo printing hashes
 - make vcard param const.

8 years agoStart migrating the vcard editing formulars to templates
Wilfried Goesgens [Mon, 12 Oct 2015 17:49:52 +0000 (19:49 +0200)]
Start migrating the vcard editing formulars to templates

8 years agoFix json structures; need to use the LKEY & lHashfunc
Wilfried Goesgens [Mon, 12 Oct 2015 17:48:24 +0000 (19:48 +0200)]
Fix json structures; need to use the LKEY & lHashfunc

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.