Art Cancro [Wed, 27 Dec 2006 22:42:05 +0000 (22:42 +0000)]
* setup.c: updated to use new built-in daemonization
* sysdep.c et al: exit codes 0 and 101-199 cause the watcher to
exit without restarting citserver. This allows certain types of
initialization failures to cause the whole system to exit without
endlessly restarting.
Art Cancro [Wed, 27 Dec 2006 15:40:55 +0000 (15:40 +0000)]
* When enumerating rooms in the drop-down list
for FILEINTO, use escputs() instead of urlescputs(). Room names with spaces in
them were making it over to Citadel with '%20' in them. Fixed.
* depend on bdb 4.3 or 4.4
* depend on the db4.4|3 util package, as it provides the stuff we need for the cleanup script
* ask for auth mode
* init pointer
* adjust configure call
Art Cancro [Wed, 20 Dec 2006 19:04:43 +0000 (19:04 +0000)]
* Lock citadel.control using flock() immediately after
opening it. Failure to acquire a lock means that another citserver
already running, which causes the server to abort.
Art Cancro [Wed, 20 Dec 2006 17:39:19 +0000 (17:39 +0000)]
* ctdlsvc: Instead of closing stdin/stdout/stderr, dup2() them
to /dev/null. This keeps fd's 0, 1, and 2 from being reused and
accidentally written to.
Art Cancro [Wed, 20 Dec 2006 17:25:00 +0000 (17:25 +0000)]
* Updated setup dialog for host auth mode.
* Dropped UI_NEWT mode in setup because we did not have
enough control over button defaults, and because newt
is not widespread enough to justify maintenance.
Art Cancro [Tue, 19 Dec 2006 22:44:30 +0000 (22:44 +0000)]
* Bumped version number to 7.01
* 'host auth mode' (formerly 'autologin mode') is now defined in the global
config, and selected during setup, instead of being a compile-time option
Art Cancro [Tue, 19 Dec 2006 14:23:34 +0000 (14:23 +0000)]
If /etc/inittab is not found, return quietly instead of
displaying a scary error message. FreeBSD, Mac OS, and the newest
version of Ubuntu do not have this file.
Art Cancro [Fri, 15 Dec 2006 17:52:55 +0000 (17:52 +0000)]
Uncommented some code in network_config_management()
whose absence was causing this function to delete all
existing netconfig entries other than the type that were
being edited.
Art Cancro [Fri, 8 Dec 2006 21:30:50 +0000 (21:30 +0000)]
CtdlSetSeen() now silently returns without doing anything,
if it was given instructions to manipulate an array of zero messages.
Resolves bug #204 due to imap_copy() actually calling it that way
in some situations.
Art Cancro [Mon, 4 Dec 2006 17:12:22 +0000 (17:12 +0000)]
* libSieve download and build for Easy Install. (Not yet tested.)
* citadel.h no longer defines CITADEL manually, instead it pulls the package
name and version from the build tools.
* Updated the documentation slightly in prep for the 7.00 release.
Art Cancro [Sun, 3 Dec 2006 05:10:39 +0000 (05:10 +0000)]
BubbleTooltips.js is now loaded as part of the HEAD of every
page, instead of in the middle of the calendar month view. This is because
Internet Exploder displays an error when we try to enable tooltips, if the
page was loaded using HTTPS. We don't know why, aside from the usual reason that
IE sucks.
Art Cancro [Sat, 2 Dec 2006 17:24:25 +0000 (17:24 +0000)]
Removed 'position: fixed' from iconbar div. This eliminates
the 'wobbling' of the iconbar that happens when you click on it in
Firefox v1.5 and up. (Thanks to grelf for figuring this one out.)
Art Cancro [Fri, 1 Dec 2006 21:11:14 +0000 (21:11 +0000)]
* Sanitize message headers by stripping high-ascii characters
before handing them off to libSieve. Otherwise, certain
badly-formed messages (usually spam) will cause libSieve to
clobber the stack, which was crashing Citadel.
Art Cancro [Tue, 28 Nov 2006 23:01:36 +0000 (23:01 +0000)]
* Citadel setup: if the environment
variable NO_INIT_SCRIPTS is set, setup will not offer to install
init scripts. This option is to be used by packagers who wish to
build platform-specific init scripts.
Art Cancro [Tue, 28 Nov 2006 15:34:43 +0000 (15:34 +0000)]
* Brought over ctdlsvc.c from webcit
* Removed all the old LDAP stuff from setup.
* Removed all /etc/inittab hacking from setup, except for
one remaining function to clean out the old entry.
Art Cancro [Mon, 27 Nov 2006 17:34:43 +0000 (17:34 +0000)]
setup now writes the /etc/rc*.d/ links to start and
stop webcit during run level changes, if running on a system that
has a SysV init style directory layout. This *should* work on most
Linuxes, including those running upstart, but we don't know yet. It
should also work on Solaris.
WebCit is also started or restarted at the end of setup in this case.
Art Cancro [Mon, 20 Nov 2006 22:35:12 +0000 (22:35 +0000)]
Began fleshing out the Sieve script generator. Actions,
final actions, and the generation of conditional braces are done. Still need to
write the code that generates the conditional statements themeselves. Warning: don't
try to run this code on a production system. In the current state it will generate
scripts with syntax errors.
Art Cancro [Fri, 17 Nov 2006 15:03:06 +0000 (15:03 +0000)]
* Applied matt's patch to have it show a loading graphic for ajax operations
* Applied matt's patch to add javascript for other features such as the new header view
* Cleaned up the gratuitous overuse of realloc() when outputting HTML messages.
Although the code wasn't buggy, gnu malloc was choking on it.