Art Cancro [Tue, 9 Jun 2009 16:04:51 +0000 (16:04 +0000)]
* Fix '/*' found in comment
Wilfried Göesgens [Sun, 7 Jun 2009 20:55:30 +0000 (20:55 +0000)]
* use onload handler for iconbar stuff. This fixes forgettyness about the iconbar config state.
Wilfried Göesgens [Sun, 7 Jun 2009 19:53:02 +0000 (19:53 +0000)]
* fix another buggy buffer increase
Wilfried Göesgens [Sun, 7 Jun 2009 14:17:22 +0000 (14:17 +0000)]
* if we split these function calls, webcit will work in valgrind with gdb attaching.
Wilfried Göesgens [Sun, 7 Jun 2009 14:06:50 +0000 (14:06 +0000)]
* move utf8 handling stuff into strbuf, so we can be more exact about our buffer lengths...
* some more shuffling
Wilfried Göesgens [Thu, 4 Jun 2009 21:21:27 +0000 (21:21 +0000)]
* make shure our cached buffers aren't to big.
Wilfried Göesgens [Thu, 4 Jun 2009 20:42:31 +0000 (20:42 +0000)]
* shrink default buffer size from 4K to 64 bytes. Applications that know they need a bigger size should use NewStrBufPlain(NULL, <wanted size>) so we don't get to much reallocs.
Wilfried Göesgens [Thu, 4 Jun 2009 20:39:24 +0000 (20:39 +0000)]
* set an application specific prefered Buffer size in places where debugging shows bigger buffers are needed anyways.
Art Cancro [Thu, 4 Jun 2009 19:07:08 +0000 (19:07 +0000)]
* cmd_move() now fails with a server error message when attempting to move or copy messages from a room to the same room. Resolves bug 461.
Art Cancro [Thu, 4 Jun 2009 19:01:24 +0000 (19:01 +0000)]
* IMAP CREATE command with no folder name specified now returns an error message instead of crashing the server
Art Cancro [Thu, 4 Jun 2009 18:54:28 +0000 (18:54 +0000)]
* Eliminated the CtdlCopyMsgsToRoom() function, since it has been reduced to nothing more than a single call to CtdlSaveMsgPointersInRoom(). All uses of this function have been changed to CtdlSaveMsgPointersInRoom() instead.
Art Cancro [Thu, 4 Jun 2009 18:33:47 +0000 (18:33 +0000)]
* Documented the undocumented server commands in msgbase.c
Art Cancro [Tue, 2 Jun 2009 19:38:32 +0000 (19:38 +0000)]
* Change /json_roomflr to json_roomflr to hopefully allow it to work in proxy mode.
Wilfried Göesgens [Mon, 1 Jun 2009 19:44:59 +0000 (19:44 +0000)]
* typo.
Wilfried Göesgens [Mon, 1 Jun 2009 19:27:02 +0000 (19:27 +0000)]
* use GetServerStatus for the new handlers
Art Cancro [Mon, 1 Jun 2009 16:44:38 +0000 (16:44 +0000)]
* Fixed bug #467, possibly at the cost of poorer performance.
Wilfried Göesgens [Mon, 1 Jun 2009 13:44:52 +0000 (13:44 +0000)]
* make the cookie failure page non-cacheable.
Wilfried Göesgens [Mon, 1 Jun 2009 13:29:00 +0000 (13:29 +0000)]
* fix non cookie request blocking
Wilfried Göesgens [Sun, 31 May 2009 22:48:05 +0000 (22:48 +0000)]
* remove duplicate callback code
* shrink http read buffers on detach
Wilfried Göesgens [Sun, 31 May 2009 22:46:15 +0000 (22:46 +0000)]
* add function to shrink empty StrBufs so they don't permanently alloc unneeded sizes.
Wilfried Göesgens [Sun, 31 May 2009 21:59:52 +0000 (21:59 +0000)]
* finish migrating the hdr struct
Wilfried Göesgens [Sun, 31 May 2009 20:53:09 +0000 (20:53 +0000)]
* iron out some more hickups in the linebuffered reading
Wilfried Göesgens [Sun, 31 May 2009 19:46:52 +0000 (19:46 +0000)]
* start moving the hdr struct up, and add detach callback. Unfinished.
Art Cancro [Sun, 31 May 2009 19:33:47 +0000 (19:33 +0000)]
* New session variable 'can_receive_im' which indicates that the session is running a protocol that is capable of receiving instant messages. This is not the same thing as quiet/nonquiet mode, it determines protocol, not policy. The server will now prohibit sending instant messages to sessions which cannot receive them (SMTP, POP, IMAP, etc.). Jabber sessions now only show buddies that are capable of receiving instant messages.
Art Cancro [Sun, 31 May 2009 18:56:00 +0000 (18:56 +0000)]
* Removed a readme file which stated that the Jabber module is unfinished.
Art Cancro [Sun, 31 May 2009 16:24:33 +0000 (16:24 +0000)]
* Add -lcitadel to chkpwd_LIBS
Wilfried Göesgens [Sun, 31 May 2009 14:07:44 +0000 (14:07 +0000)]
* fix logging / debug mode logchatty exceptions
Wilfried Göesgens [Sun, 31 May 2009 13:18:31 +0000 (13:18 +0000)]
* move session creation and session lookup into own functions
Wilfried Göesgens [Fri, 29 May 2009 18:11:40 +0000 (18:11 +0000)]
* another bug in increasing buffers.
Wilfried Göesgens [Thu, 28 May 2009 23:14:20 +0000 (23:14 +0000)]
* fix IncreaseBuf
* fix Buffered BLOB reader
Wilfried Göesgens [Tue, 26 May 2009 22:15:30 +0000 (22:15 +0000)]
* add webcit database message ID to the notification template.
Wilfried Göesgens [Tue, 26 May 2009 22:14:23 +0000 (22:14 +0000)]
* just depend on berkeley db without version.
Wilfried Göesgens [Tue, 26 May 2009 22:05:23 +0000 (22:05 +0000)]
* fix static output for subdirectories & tinymce
* strip directories...
Wilfried Göesgens [Tue, 26 May 2009 20:18:33 +0000 (20:18 +0000)]
* add slash-stripper
* fix another possible hickup situation in the linebuffered reader.
Wilfried Göesgens [Tue, 26 May 2009 19:57:59 +0000 (19:57 +0000)]
* remove stripslashes, its going into libcitadel.
Wilfried Göesgens [Tue, 26 May 2009 19:40:12 +0000 (19:40 +0000)]
* redo linebuffered reading
Wilfried Göesgens [Tue, 26 May 2009 18:19:04 +0000 (18:19 +0000)]
* -pg just if profiling is enabled.
Wilfried Göesgens [Mon, 25 May 2009 17:51:49 +0000 (17:51 +0000)]
* output files link if present not if not available.
Wilfried Göesgens [Mon, 25 May 2009 06:14:14 +0000 (06:14 +0000)]
* bug in template: won't show upload dialog
Wilfried Göesgens [Sun, 24 May 2009 22:02:46 +0000 (22:02 +0000)]
* check for WC in conditionals...
* create session header hashlist earlier so it frees the first http line on exit
Wilfried Göesgens [Sun, 24 May 2009 19:55:08 +0000 (19:55 +0000)]
* move stuff from Hdr into substruct that may be easily wiped by memset 0'ing them
* Hdr now belongs to the worker_entry() so we can lower the frequency of it and its members being de/alloced
* add commandline switch to set the default size of StrBuf s
Wilfried Göesgens [Sun, 24 May 2009 19:48:44 +0000 (19:48 +0000)]
* make default strbuf size configurable
* fix moving of pointer in case of increase buf; valgrind says its not yet perfect.
* add debug code to find out optimal default buffer size and to detect where demand for bigger buffers comes from.
Wilfried Göesgens [Fri, 22 May 2009 10:02:36 +0000 (10:02 +0000)]
* more leaks...
Wilfried Göesgens [Fri, 22 May 2009 09:49:27 +0000 (09:49 +0000)]
* don't use memcpy on overlapping operations
Wilfried Göesgens [Fri, 22 May 2009 09:44:22 +0000 (09:44 +0000)]
* fix various leaks
Wilfried Göesgens [Fri, 22 May 2009 09:20:53 +0000 (09:20 +0000)]
* don't alloc urlbuf if we don't need it
Wilfried Göesgens [Fri, 22 May 2009 09:13:06 +0000 (09:13 +0000)]
* revert sort order & start on the 'Read all messages' button due to public demand
Wilfried Göesgens [Fri, 22 May 2009 09:05:03 +0000 (09:05 +0000)]
* free header vars from auth
Wilfried Göesgens [Thu, 21 May 2009 22:46:28 +0000 (22:46 +0000)]
* don't send cookies with static data; we don't know what to put in them here.
Wilfried Göesgens [Thu, 21 May 2009 20:11:29 +0000 (20:11 +0000)]
* streamline gettext plugin
* handle bogus requests directly via the 404 handler; move it to context_loop
* handle static content without session locking
Art Cancro [Thu, 21 May 2009 19:51:59 +0000 (19:51 +0000)]
* Applied matt's patch for making +/- work properly
Art Cancro [Thu, 21 May 2009 16:25:50 +0000 (16:25 +0000)]
* Store the language setting in the session cookie instead of as a preference. Resolves bug 359.
Art Cancro [Thu, 21 May 2009 15:01:03 +0000 (15:01 +0000)]
* Print the first line of each HTTP request to the log, for debugging
Wilfried Göesgens [Wed, 20 May 2009 22:06:01 +0000 (22:06 +0000)]
* accept text/todo here too.
Wilfried Göesgens [Wed, 20 May 2009 21:52:22 +0000 (21:52 +0000)]
* move end-of-session-save prefs to session detach handler.
Wilfried Göesgens [Wed, 20 May 2009 21:51:18 +0000 (21:51 +0000)]
* remove unneded variable
Art Cancro [Wed, 20 May 2009 17:07:21 +0000 (17:07 +0000)]
* The code that handled session establishment via http-auth was also handling re-login via cookie data, since they both set c_username and c_password ... the extra function for cookie login wasn't being called at all so I removed it.
* When re-establishing a session, use gotoroom() instead of explicitly doing a GOTO server command. This causes the wc_view and other session data to be loaded properly.
Art Cancro [Wed, 20 May 2009 15:35:58 +0000 (15:35 +0000)]
* Reverting an unintentional commit to static/webcit.css
Art Cancro [Wed, 20 May 2009 15:33:02 +0000 (15:33 +0000)]
* Handle bad cookies without crashing
Art Cancro [Wed, 20 May 2009 14:14:07 +0000 (14:14 +0000)]
* netconf screens - max length of a shared secret is now 18 characters, identical to the text client. resolves bug 428.
Art Cancro [Wed, 20 May 2009 13:42:48 +0000 (13:42 +0000)]
* Applied updated fr.po submitted by translator
Wilfried Göesgens [Tue, 19 May 2009 19:50:51 +0000 (19:50 +0000)]
* fix basic auth
Wilfried Göesgens [Tue, 19 May 2009 19:47:06 +0000 (19:47 +0000)]
* fix URL parsing for /message/
Wilfried Göesgens [Mon, 18 May 2009 22:15:16 +0000 (22:15 +0000)]
* fix auth basic scheme
Wilfried Göesgens [Mon, 18 May 2009 22:14:43 +0000 (22:14 +0000)]
* add function to decode hex strings
Wilfried Göesgens [Mon, 18 May 2009 19:05:37 +0000 (19:05 +0000)]
* fix session connecting
* remove double-paste
Art Cancro [Mon, 18 May 2009 14:56:13 +0000 (14:56 +0000)]
* CSS fix to render login/logout screens properly in IE8
Wilfried Göesgens [Sun, 17 May 2009 21:35:10 +0000 (21:35 +0000)]
* shuffle auth arround...
* implement robots.txt and favicon.ico
* some more tiny fixups
Wilfried Göesgens [Sun, 17 May 2009 15:12:55 +0000 (15:12 +0000)]
* more fixes, offset in URLS is different now, since we strip the command.
Wilfried Göesgens [Sun, 17 May 2009 13:49:51 +0000 (13:49 +0000)]
* fixups, leaks...
Wilfried Göesgens [Sun, 17 May 2009 11:47:09 +0000 (11:47 +0000)]
* re-create static support; we now safe us from ..'ers by just looking up the filename in some pre-stored hash.
Wilfried Göesgens [Sun, 17 May 2009 08:34:33 +0000 (08:34 +0000)]
* BIG rewrite of header handling and slimming of context_loop and session_loop; shuffle everything arround.
Art Cancro [Sat, 16 May 2009 04:06:04 +0000 (04:06 +0000)]
* Titles and descriptions for site configuration tabs are now divs with class 'conftitle' and 'confdescr' instead of H1 and H2 blocks. Added CSS declarations for these styles. Now they don't look obtusely large anymore.
Art Cancro [Fri, 15 May 2009 21:29:56 +0000 (21:29 +0000)]
* CSS changes to make the rounded boxes look like rounded boxes, even on IE8, which broke them (again). Fuck Microsoft. Where's a multi-megaton nuke when I need one?
Wilfried Göesgens [Thu, 14 May 2009 20:00:17 +0000 (20:00 +0000)]
* add defines for our errorcodes
* create citadel<->http return code mapper
* add more DAV ed stuff
Art Cancro [Thu, 14 May 2009 19:34:30 +0000 (19:34 +0000)]
* mainmenu.c: removed C code that had been commented out and replaced with a template. Are there any more of these?
Art Cancro [Thu, 14 May 2009 13:18:26 +0000 (13:18 +0000)]
* Removed 'close window' link from logout screen because some browsers don't allow it to work.
Wilfried Göesgens [Wed, 13 May 2009 21:51:12 +0000 (21:51 +0000)]
* output the mime type of the tepmlate in read_message so we can have different ones
* switch msg to set the mimetype of the template
* add eDELETE HTTP Command to msg so we can do exactly that in this situation. previously executed stuff needs to let this through to there.
Art Cancro [Tue, 12 May 2009 21:31:44 +0000 (21:31 +0000)]
* Fixed a bug that caused vnotes not to display when encapsulated in multipart/alternative because mime_content_type was used where msg4_content_type should have been used.
Art Cancro [Tue, 12 May 2009 21:18:53 +0000 (21:18 +0000)]
* Save notes as multipart/alternative with a text/plain version so they can be read in the text mode client.
Art Cancro [Tue, 12 May 2009 20:59:37 +0000 (20:59 +0000)]
* Based on some quick testing, render_MIME_VNote() appears to be sound. Adding text/vnote to WebCit's MSGP declaration.
Art Cancro [Tue, 12 May 2009 20:53:36 +0000 (20:53 +0000)]
* Notes now display properly, regardless of whether we received the text/vnote from MSG4 or DLAT. We can add text/vnote to our MSGP declaration as soon as dothebart confirms that an inline renderer is available.
Art Cancro [Tue, 12 May 2009 20:45:34 +0000 (20:45 +0000)]
* Reversed the IsEmptyStr logic to determine whether a note is in vNote format or legacy text format. Notes are now working again, but it's still calling load_mimepart() every time.
Art Cancro [Tue, 12 May 2009 20:42:08 +0000 (20:42 +0000)]
* load_mimepart() was including protocol chatter in its data buffer. Fixed.
Art Cancro [Tue, 12 May 2009 03:29:57 +0000 (03:29 +0000)]
* Got the Notes screen a little closer to displaying properly but it's still not quite there.
Wilfried Göesgens [Mon, 11 May 2009 23:01:04 +0000 (23:01 +0000)]
* add message ID to the notification template; not used for funnambol, but for possible other applications.
Wilfried Göesgens [Sun, 10 May 2009 22:06:36 +0000 (22:06 +0000)]
* added iltls corrections and additions to our french translation.
Wilfried Göesgens [Sun, 10 May 2009 22:01:12 +0000 (22:01 +0000)]
* use enum to handle http request types
* some more cleanup
Wilfried Göesgens [Sun, 10 May 2009 21:59:59 +0000 (21:59 +0000)]
* uninitialized value...
Wilfried Göesgens [Sun, 10 May 2009 20:05:44 +0000 (20:05 +0000)]
* shrinked the rest of these shutdown stuff into the module-handler.
Wilfried Göesgens [Sun, 10 May 2009 18:05:56 +0000 (18:05 +0000)]
* add more module handlers:
* start (alloc structures here; don't depend on others...)
* init (fill your structs, register with others...)
* shutdown (free your static structs etc.
* Session New: for allocation etc.
* Session Attach: on each request before it gets hot.
* Session Detach: clean up your session local stuff
* Session Destroy: the user is gone; flush your memory.
* more news: WC is set before the SessionNew; so you can use WC there.
* shuffled some more stuff arround:
* i/o related stuff
* directory calculation
* local css detection is now part of the start handler...
* all creates/frees of structures that can be done in the above handrlers is done there now.
Wilfried Göesgens [Thu, 7 May 2009 22:40:33 +0000 (22:40 +0000)]
* just destroy it if we allocated it
Wilfried Göesgens [Thu, 7 May 2009 22:36:48 +0000 (22:36 +0000)]
* make vcard loader abstract so we can use it in more places
* use it in other places
Wilfried Göesgens [Thu, 7 May 2009 21:20:52 +0000 (21:20 +0000)]
* use default message loading mechanisms instead of brewing our own soup here
Wilfried Göesgens [Thu, 7 May 2009 20:25:44 +0000 (20:25 +0000)]
* fix memleak
Wilfried Göesgens [Thu, 7 May 2009 20:13:20 +0000 (20:13 +0000)]
* don't choke if the vcard fails to load
* upsi. serv_printf needs a formatstring as first argument...
Wilfried Göesgens [Tue, 5 May 2009 23:09:33 +0000 (23:09 +0000)]
* fix build without iconv
Wilfried Göesgens [Tue, 5 May 2009 22:47:52 +0000 (22:47 +0000)]
* init pointer...
Wilfried Göesgens [Tue, 5 May 2009 22:03:10 +0000 (22:03 +0000)]
* done should be initialized...
Wilfried Göesgens [Mon, 4 May 2009 22:22:10 +0000 (22:22 +0000)]
* remove more serv_readln etc...