Art Cancro [Tue, 19 Aug 2008 21:03:47 +0000 (21:03 +0000)]
Played around with recurrences in the conflict checker
(commented out until I can make it a bit more solid)
Wilfried Göesgens [Tue, 19 Aug 2008 20:23:02 +0000 (20:23 +0000)]
* use strbuffer stresc functions
Wilfried Göesgens [Tue, 19 Aug 2008 20:22:25 +0000 (20:22 +0000)]
* provide a strbuf version of the webcit escapers
Art Cancro [Tue, 19 Aug 2008 02:58:48 +0000 (02:58 +0000)]
Split up the conflict checker again, this time into six different
functions. Right now it looks like excessive modularity, but over the next couple of commits I'll
be adding expansion of recurrences in both the proposed and existing events. Now this can be done
without making the code unreadable.
Wilfried Göesgens [Mon, 18 Aug 2008 20:14:21 +0000 (20:14 +0000)]
* inspect our templates too.
Wilfried Göesgens [Mon, 18 Aug 2008 19:47:07 +0000 (19:47 +0000)]
* migrate the WHO struct to strbuf
* add SVPUTBuf() which can handle strbuffers
* register the ITERATOR("WHO")
* provide tokens via the who iterator func: WHO:NAME, WHO:ROOM, WHO:HOST, WHO:REALROOM, WHO:REALHOST, WHO:LASTACTIVE, WHO:SESSION, WHO:IDLE, WHO:NSESSIONS
* some fixes to do_template, and the whole other stuff
Wilfried Göesgens [Sun, 17 Aug 2008 22:34:33 +0000 (22:34 +0000)]
* dug out the missing RSS Templats from uncensored
Wilfried Göesgens [Sun, 17 Aug 2008 15:21:42 +0000 (15:21 +0000)]
* correct all GetNextHashPos() calls to have const chars
* new template callback: ITERATE("iterator", "subtemplate",...); its to iterate over registered hashlists
* new RegisterIterator() call; use this to register your hashlist with the ITERATE functionality
Wilfried Göesgens [Sun, 17 Aug 2008 15:17:20 +0000 (15:17 +0000)]
* return a const char instead
Wilfried Göesgens [Sun, 17 Aug 2008 10:53:12 +0000 (10:53 +0000)]
* add new 'Context' Parameter to the template call
* add PREF:VALUE("ConvigValueName") which will give you the value of a config
* add PREF:DESCR("ConfigValueName") which will give you the locale string describing that setting
Wilfried Göesgens [Sat, 16 Aug 2008 17:45:26 +0000 (17:45 +0000)]
* now template tokens can work as functions, you can add params to them after in ("sometext", 1337) so template hooks can be steered from the templates
* added implicit _("foo") function that will look up 'foo' with gettext and print its local representation
Wilfried Göesgens [Sat, 16 Aug 2008 17:41:40 +0000 (17:41 +0000)]
* New StrBufPeek function to replace a special char inside of the string
* New AppendPrintf function so if one doesn't want to use wprintf...
Matt [Thu, 14 Aug 2008 21:38:39 +0000 (21:38 +0000)]
Move instant_messenger back
Matt [Thu, 14 Aug 2008 10:59:11 +0000 (10:59 +0000)]
Move the rest of the templates into 't' as with dothebart's previous commit.
If any should still be in static/ (i.e like nocookies) just move them back.
Wilfried Göesgens [Thu, 14 Aug 2008 06:24:05 +0000 (06:24 +0000)]
* migrate SERV_* to global callback replacers
Wilfried Göesgens [Tue, 12 Aug 2008 21:56:39 +0000 (21:56 +0000)]
* move templates to static/t/ ; made make install target respect this
* load templates on webcit start into memory
Wilfried Göesgens [Mon, 11 Aug 2008 23:05:56 +0000 (23:05 +0000)]
* cache templates
* use strbuf
Art Cancro [Mon, 11 Aug 2008 21:03:26 +0000 (21:03 +0000)]
calendar server -- further split up the conflict checker
(was two functions, is now three) in order to prepare for handling
recurring events. I might split it up even further.
Art Cancro [Mon, 11 Aug 2008 19:57:40 +0000 (19:57 +0000)]
The CtdlWriteObject() API no longer uses a temp file
Wilfried Göesgens [Sat, 9 Aug 2008 10:54:30 +0000 (10:54 +0000)]
* this one needs to be zeroed too
Wilfried Göesgens [Fri, 8 Aug 2008 20:37:20 +0000 (20:37 +0000)]
* copy statistic inforations too...
Matt [Fri, 8 Aug 2008 10:33:36 +0000 (10:33 +0000)]
Fixes for GroupDAV and hprintf
- groupdav_common_headers now hprintf
- new function: hurlescputs (hprintf'ed urlescputs)
Matt [Wed, 6 Aug 2008 12:21:03 +0000 (12:21 +0000)]
update for hprintf
Wilfried Göesgens [Wed, 6 Aug 2008 06:48:05 +0000 (06:48 +0000)]
* first aproach to formalize preferences; modules can now register preferences and their string representation; fancy that this is doing well with gettext ;)
Wilfried Göesgens [Tue, 5 Aug 2008 19:22:10 +0000 (19:22 +0000)]
* remove locales from the login window if webcit isn't able to load it.
Wilfried Göesgens [Tue, 5 Aug 2008 18:29:52 +0000 (18:29 +0000)]
* upsi. this line copying mustn't be in there.
Wilfried Göesgens [Tue, 5 Aug 2008 18:21:48 +0000 (18:21 +0000)]
* mute /sslg and /wholist_section from logging when in debug mode since it floods the debugger window.
Art Cancro [Tue, 5 Aug 2008 16:55:58 +0000 (16:55 +0000)]
When determining the week start day for the rendering
of a monthly calendar, check to see if the weekstart value from
preferences is higher than 6. If so, use a value of 0 (Sunday)
instead of actively looping forever in a futile search for an
invalid wday.
Wilfried Göesgens [Mon, 4 Aug 2008 22:47:54 +0000 (22:47 +0000)]
* ig made it.
Wilfried Göesgens [Sun, 3 Aug 2008 20:54:42 +0000 (20:54 +0000)]
* abstract setting per room preferences
* migrate mbox sortorder to the new abstraction
* add default addressbook selector, so the user gets the last selected addressbook again (html doesn't work yet)
Wilfried Göesgens [Sun, 3 Aug 2008 20:52:08 +0000 (20:52 +0000)]
* add method to duplicate stringbuffer
Wilfried Göesgens [Sun, 3 Aug 2008 18:38:23 +0000 (18:38 +0000)]
* remove Dave's SYS_ users from the addressbookpopup, since you don't want to send them emails
Wilfried Göesgens [Sun, 3 Aug 2008 18:06:36 +0000 (18:06 +0000)]
* migrate bstr backend to strbuf
* add more DBG_* defines around hash log printers
* create ENT0 headers with strbuf
Wilfried Göesgens [Sun, 3 Aug 2008 18:04:22 +0000 (18:04 +0000)]
* add VALGRIND flag to debian debug flag to make valgrind produce less noise in the hashlist
* add QP encoding to strbuf
Matt [Sun, 3 Aug 2008 11:32:41 +0000 (11:32 +0000)]
mass mobile update, interface cleanup and restyling.
Matt [Sun, 3 Aug 2008 09:47:20 +0000 (09:47 +0000)]
Added opera 9.5b1/winmobile user agent to mobile clients, is_mobile now a
TECH_PREVIEW
Wilfried Göesgens [Sat, 2 Aug 2008 11:38:19 +0000 (11:38 +0000)]
* fix new wprintf backend to handle buffer increases
Wilfried Göesgens [Thu, 31 Jul 2008 21:15:44 +0000 (21:15 +0000)]
* several memoryleaks
Wilfried Göesgens [Thu, 31 Jul 2008 21:15:04 +0000 (21:15 +0000)]
* close directory
Wilfried Göesgens [Wed, 30 Jul 2008 22:22:58 +0000 (22:22 +0000)]
* hook init function calls to the same define
Wilfried Göesgens [Wed, 30 Jul 2008 22:19:04 +0000 (22:19 +0000)]
* #if out the printing of the handler hash at system start; if s.b. needs it for debugging purposes, its still there.
* Flush hash on shutdown.
Art Cancro [Wed, 30 Jul 2008 21:48:09 +0000 (21:48 +0000)]
* debug messages now show serialized recurrence rules
* Event editor dialog is now tabbed Event/Attendees/Recurrence when
running in TECH_PREVIEW mode. Attendees are *not* yet moved into
the Attendees tab. Recurrence rules are shown as serialized iCalendar
code rather than as an actual usable editor.
Art Cancro [Wed, 30 Jul 2008 18:03:17 +0000 (18:03 +0000)]
Recurring events are now displayed in WebCit. There is
still a lot to do, but the basic display is now there. I can
already see a huge sub-project emerging. Our practice of converting
everything to GMT causes recurring events to shift by an hour
when the recurrence crosses a DST boundary.
Art Cancro [Wed, 30 Jul 2008 17:37:03 +0000 (17:37 +0000)]
Removed some spurious debugging statements
Wilfried Göesgens [Tue, 29 Jul 2008 19:11:18 +0000 (19:11 +0000)]
* make param const char *
* goto _BASEROOM_ if no pref is set
* store/load locales inn case of webcit tries to reauthenticate a user by cookie after a crash.
Wilfried Göesgens [Tue, 29 Jul 2008 18:21:28 +0000 (18:21 +0000)]
* fallback to /knrooms after login if the user doesn't have a setting.
Wilfried Göesgens [Tue, 29 Jul 2008 17:48:29 +0000 (17:48 +0000)]
* resynced changelog with dist state
* added missing files
Wilfried Göesgens [Mon, 28 Jul 2008 21:29:09 +0000 (21:29 +0000)]
* added a.n.o's patch to avoid NULL-ssl errorstrings in lprintfs
Wilfried Göesgens [Mon, 28 Jul 2008 21:22:02 +0000 (21:22 +0000)]
* read static/server files directly into the outbuffer
* resynced debian chagelog
Wilfried Göesgens [Mon, 28 Jul 2008 21:20:42 +0000 (21:20 +0000)]
* add wrapper to base64 decoding
* resynced debian changelog with debs
Wilfried Göesgens [Sun, 27 Jul 2008 21:38:24 +0000 (21:38 +0000)]
* use strbuffer as wprintf backend
* modify all HTTP Headrs to be sent with hprintf() instead of wprintf()
* end_burst now handles committing the headers and the buffer to the browser
* use strbuf to keep static images
Wilfried Göesgens [Sun, 27 Jul 2008 21:20:48 +0000 (21:20 +0000)]
* add gzip + configure detection -> re-bootstrap!
* add new functions to strbuf: file i/o; appending printf; gzip compressing a buffer;
* fixed termination bug in cutleft function
* made mime function parameter const
Wilfried Göesgens [Sun, 27 Jul 2008 18:40:17 +0000 (18:40 +0000)]
* suggestion for chunked BLOBs.
Dave West [Sun, 27 Jul 2008 11:25:50 +0000 (11:25 +0000)]
Added a directory and a text file for comments on how to do a good
method of synchronising servers over the wire.
Please add thoughts etc to the TODO.txt file
Wilfried Göesgens [Sat, 26 Jul 2008 17:10:09 +0000 (17:10 +0000)]
* GNU LD demands -l at the end... hopefully just adding them twice solves this
Wilfried Göesgens [Fri, 25 Jul 2008 17:19:23 +0000 (17:19 +0000)]
* a.n.o's patch: solaris linker wants options before the list of .o-files.
Art Cancro [Fri, 25 Jul 2008 16:51:29 +0000 (16:51 +0000)]
Cleanup of comments etc. no code changes
Wilfried Göesgens [Thu, 24 Jul 2008 18:50:05 +0000 (18:50 +0000)]
* a.n.o's solution to sun CC not liking inline in all situations...
Wilfried Göesgens [Tue, 22 Jul 2008 17:31:03 +0000 (17:31 +0000)]
* added a.n.o's sugestion to quotee conditions. Thanks for contribution
Wilfried Göesgens [Mon, 21 Jul 2008 18:24:51 +0000 (18:24 +0000)]
* added a.n.o patches for solaris compatibility
* altered the code so it is portable
* moved LDFLAGS to the debian packaging scripts
Art Cancro [Thu, 17 Jul 2008 19:50:29 +0000 (19:50 +0000)]
Displaying incoming instant messages through an IMAP client
was really cool, but now that we've got XMPP it's probably just
causing most people to see each message twice. Removed this feature.
Dave West [Thu, 17 Jul 2008 19:03:00 +0000 (19:03 +0000)]
Added code to provide a preliminary single user mode.
CtdlTrySingleUser() - Try to go single user
CtdlEndSingleUser() - End single user
CtdlIsSingleUser() - True is system is single user
CtdlWantSingleUser() - True if system is trying to go single user
The system is said to be in single user mode when there is only one
session active. Which should be the one that asked it to go single user.
When trying to go single user new connections are refused as per the
nologin mechanism and scheduled threads are prevented.
Dave West [Thu, 17 Jul 2008 18:39:34 +0000 (18:39 +0000)]
Re-added the S_LDAP semaphore. It is needed. Not sure why it didn't show
up in my grep etc.
Added a new semaphore S_SINGLE_USER this is used when the server needs
to go into single user mode to prevent changes in the DB like when doing
an artv export/import.
Dave West [Thu, 17 Jul 2008 18:37:06 +0000 (18:37 +0000)]
IMAP now supports the nologin flag in the context and will refuse
connections if its set.
Dave West [Thu, 17 Jul 2008 18:36:27 +0000 (18:36 +0000)]
POP3 server now supports the nologin flag in the context and will refuse
connections if it is set.
Dave West [Thu, 17 Jul 2008 16:50:11 +0000 (16:50 +0000)]
Removed S_LDAP. Its not used anywhere.
Dave West [Thu, 17 Jul 2008 12:57:23 +0000 (12:57 +0000)]
System users (SYS_*) now have proper user numbers.
CtdlFillPrivateContext has been replaced by CtdlFillSystemContext.
CtdlFillSystemContext will create the system user if needed, upgrade the
system user from a user 0 if needed and also load the system user if
needed.
The auto purger now makes a log entry if it encounters a user 0 (not an
Aide message).
The Auto purger will post an Aide message if it encounters a user with
no name and a valid user number. This should NEVER happen.
Test thoroughly before release and needs to be tested thoroughly with
host auth systems too.
Dave West [Thu, 17 Jul 2008 10:54:00 +0000 (10:54 +0000)]
The user with number 1 is no longer automatically an Aide.
Plugs that little security hole that an attacker would need to be very
quick to exploit.
NB. If the system Aide is not correct in the config the Aide may loose
priviledges and will need to run setup to get them back.
Dave West [Thu, 17 Jul 2008 10:48:36 +0000 (10:48 +0000)]
Fix CtdlHostAlias to correctly check if the given fqdn is one we are
masquerading as or one we do Directory mapping for.
Art Cancro [Tue, 15 Jul 2008 19:05:24 +0000 (19:05 +0000)]
more work on recurrence
Wilfried Göesgens [Tue, 15 Jul 2008 18:19:34 +0000 (18:19 +0000)]
* migrate ajax from get to post -> unlimited post size
* use SEXP user|-\n message so we don't need to escape pipes; this fixes Buf 416
Wilfried Göesgens [Mon, 14 Jul 2008 20:35:00 +0000 (20:35 +0000)]
* removed handlers from webcit.h if possible
* added file local forward declarations where needed.
Wilfried Göesgens [Mon, 14 Jul 2008 19:12:30 +0000 (19:12 +0000)]
* fix loop termination trouble
Wilfried Göesgens [Mon, 14 Jul 2008 19:08:34 +0000 (19:08 +0000)]
* fix buffer end situation
Art Cancro [Mon, 14 Jul 2008 17:45:33 +0000 (17:45 +0000)]
Don't recur if dtstart is missing
Art Cancro [Mon, 14 Jul 2008 17:28:50 +0000 (17:28 +0000)]
display_using_handler() cleanup
Art Cancro [Mon, 14 Jul 2008 16:47:09 +0000 (16:47 +0000)]
Experimenting a bit with the recur api
Art Cancro [Mon, 14 Jul 2008 16:04:33 +0000 (16:04 +0000)]
Detect recurring events when rendering a calendar.
Dave West [Mon, 14 Jul 2008 10:04:46 +0000 (10:04 +0000)]
Slight modification to dothebarts disabling of the timeout for artv
import.
Now the dont_term flag is set after we are sure we can do artv (in case
the mallocs fail).
Wilfried Göesgens [Sun, 13 Jul 2008 22:33:01 +0000 (22:33 +0000)]
* copy daves great handler script and modify it to fit the simpler needs of webcit.
* add init functions to all handler containing .c files; Register these calls in the init function
* replace strcmp URL to handler dispatcher by hashlist
* wrap calls that had more than one call in simple functions
Wilfried Göesgens [Sun, 13 Jul 2008 21:50:20 +0000 (21:50 +0000)]
* ignore null pointers to free.
Wilfried Göesgens [Sun, 13 Jul 2008 09:40:28 +0000 (09:40 +0000)]
* disable our idle-check for ARTV import/export since this tends to take longer.
Wilfried Göesgens [Sun, 13 Jul 2008 09:39:08 +0000 (09:39 +0000)]
* fixed naming crash with the new libcitadel
Matt [Sun, 13 Jul 2008 01:21:58 +0000 (01:21 +0000)]
Disable photo view for vcard
Wilfried Göesgens [Sat, 12 Jul 2008 20:20:52 +0000 (20:20 +0000)]
* fixed several tiny flaws
Wilfried Göesgens [Sat, 12 Jul 2008 20:19:08 +0000 (20:19 +0000)]
* some umlaut weirdness
Wilfried Göesgens [Sat, 12 Jul 2008 17:16:26 +0000 (17:16 +0000)]
* added GCC Format String checkers to the remaining printf alikes
* fix formatstring errors
* fix multiline preference saving
* fix signature en/decoding
We now have UNLIMITED signatures, so finaly one can put its $Company foo at the end of his mail autemagicaly.
Wilfried Göesgens [Sat, 12 Jul 2008 16:32:23 +0000 (16:32 +0000)]
* missing encoding function added
* some tiny fixes...
Wilfried Göesgens [Sat, 12 Jul 2008 10:54:43 +0000 (10:54 +0000)]
* avoid to run over the buffer while parsing the url
* Migrated message listview to be enum controlled after handling the settings, as its simpler to handle in memory handling
Wilfried Göesgens [Fri, 11 Jul 2008 17:46:48 +0000 (17:46 +0000)]
* fixed typo. Thanks for Michael to point this out.
Wilfried Göesgens [Wed, 9 Jul 2008 23:08:56 +0000 (23:08 +0000)]
* sanitize loops
Wilfried Göesgens [Wed, 9 Jul 2008 23:08:05 +0000 (23:08 +0000)]
* catch some more error conditions, double frees...
Wilfried Göesgens [Wed, 9 Jul 2008 00:52:34 +0000 (00:52 +0000)]
* added gcc printf format checking to wprintf
* corrected warnings of the above incidents
* adopted strbuf in config handling
* added multiline config handling
Wilfried Göesgens [Wed, 9 Jul 2008 00:48:39 +0000 (00:48 +0000)]
* new api version.
Wilfried Göesgens [Wed, 9 Jul 2008 00:47:39 +0000 (00:47 +0000)]
* add new buffer class which handles concatenation of strings in dynamic buffers for itself.
* adopt our algorithms to these new structures
Art Cancro [Mon, 7 Jul 2008 13:20:07 +0000 (13:20 +0000)]
Renamed database_sleepycat.c to database.c
because it reflects the fact that we only have one backend store available;
and because Sleepycat Software no longer exists.
Matt [Mon, 7 Jul 2008 05:30:08 +0000 (05:30 +0000)]
Rename is_wap to is_mobile
Detect iPhone Safari,S60 WebKit and WinCE browsers (opera, pocket ie) by
user-agent
Different and experimental message view - code is messy at the moment so
cleanup will come soon
Matt [Sun, 6 Jul 2008 04:50:34 +0000 (04:50 +0000)]
Reactivate "is_wap" for handheld browsers (iPhone, Opera, Nokia etc.).
Mobile templates end in .m.html
Art Cancro [Fri, 4 Jul 2008 03:51:50 +0000 (03:51 +0000)]
Set the environment variable SUPPRESS_DBVERSION_CHECK to any
non-null value, to suppress the test that prohibits Berkeley DB downgrade.
Wilfried Göesgens [Mon, 30 Jun 2008 18:02:42 +0000 (18:02 +0000)]
* optimize serv_getln to reduce its WC to once.