Wilfried Göesgens [Mon, 11 Feb 2008 23:07:56 +0000 (23:07 +0000)]
* anounce mmap to xdgmime.
Wilfried Göesgens [Mon, 11 Feb 2008 22:43:19 +0000 (22:43 +0000)]
* add our hardcoded mimetypes first, and then fallback to xdgmime.
Wilfried Göesgens [Mon, 11 Feb 2008 21:33:35 +0000 (21:33 +0000)]
* allow LMTP posting to all rooms.
Art Cancro [Mon, 11 Feb 2008 18:23:47 +0000 (18:23 +0000)]
The external libiconv test in webcit configure was
faulty. It set the -libiconv compiler flag even if no external
libiconv was available. Fixed this by turning it into an
autoconf builtin test. Hopefully this fixes FreeBSD.
Wilfried Göesgens [Sun, 10 Feb 2008 22:02:01 +0000 (22:02 +0000)]
* make the aide-room public postable for cron, hostmaster and friends.
Wilfried Göesgens [Sun, 10 Feb 2008 21:40:47 +0000 (21:40 +0000)]
* add typedefs in citadel.h so we don't need to typedef all over the place.
* having a struct 'march' and a global variable 'march' isn't that smart. the variable is marchptr now.
* fixed some warnings and unneded inclodes.
Art Cancro [Sat, 9 Feb 2008 21:38:32 +0000 (21:38 +0000)]
Attempt to fix httpdate_to_timestamp() on freebsd
Wilfried Göesgens [Sat, 9 Feb 2008 17:36:24 +0000 (17:36 +0000)]
* f'bse seems to carry its resolver calls in its libc, as o'bse
Wilfried Göesgens [Sat, 9 Feb 2008 17:27:36 +0000 (17:27 +0000)]
* include time.h, as we reference time_t
Wilfried Göesgens [Sat, 9 Feb 2008 15:46:20 +0000 (15:46 +0000)]
* don't nail upload hellos to .gif as we don't need that anymore
* specify mimetype at image upload
* display the current image in the upload dialog
* specify mimetype at file upload
* display listing with mimetypes
* dummy implementation with mime-icons, just does diskette fallback atm.
* some tiny inacuracy in the translation.
Wilfried Göesgens [Sat, 9 Feb 2008 15:43:36 +0000 (15:43 +0000)]
* UIMG and UOPN require the client to specify a Mimetype now.
* the list file now contains this mimetype too, if there is no statement with a '/' in the expected place, we fallback to old notation and specify application/octetstream
* adjust the client library.
* in rooms.c list the [mimetype]. if s.b. doesn't like this notation, please change.
Wilfried Göesgens [Sat, 9 Feb 2008 14:59:37 +0000 (14:59 +0000)]
* add xdgmime from freedesktop.org
* tiny wrapper, which bears our own functionality as comment (just in case)
Wilfried Göesgens [Fri, 8 Feb 2008 21:50:34 +0000 (21:50 +0000)]
* tell the user we understand gif/jpg/png; if we want more, we need to add them to the mime guesser.
Wilfried Göesgens [Fri, 8 Feb 2008 21:47:41 +0000 (21:47 +0000)]
* move the mime guesser out into libcitadel
Wilfried Göesgens [Fri, 8 Feb 2008 21:46:14 +0000 (21:46 +0000)]
* refuse empty passvoids against host auth
* use the mime guesser to check the picture type.
Wilfried Göesgens [Fri, 8 Feb 2008 21:42:33 +0000 (21:42 +0000)]
Wilfried Göesgens [Fri, 8 Feb 2008 19:31:42 +0000 (19:31 +0000)]
* tiny 'file'-extract, now we can detect the type of an image. and set the mimetype apropriate.
* First bits to fallback to serverwinde gettext if we don't have uselocale on that system.
Wilfried Göesgens [Fri, 8 Feb 2008 18:42:32 +0000 (18:42 +0000)]
* offer facility to up/download the greeter/goodbuye pic.
Art Cancro [Fri, 8 Feb 2008 04:12:56 +0000 (04:12 +0000)]
Oops, applied that timezone offset in the wrong direction. Fixed.
Art Cancro [Fri, 8 Feb 2008 04:04:55 +0000 (04:04 +0000)]
httpdate_to_datestamp() no longer needs to temporarily
set the TZ environment variable to UTC, which is good because some systems
will fail to set it back afterwards. Instead we grab the offset from the
global 'timezone' variable and add it to tm_sec. mktime() will then
normalize the struct before converting to time_t. This fixes a bug on some
systems where the time zone would appear to spontaneously switch to UTC.
Wilfried Göesgens [Thu, 7 Feb 2008 23:29:17 +0000 (23:29 +0000)]
* ctdl_message_dir is the directory where messages are in, so we should substitute bbsdir with this. Fixes Bug 328.
Art Cancro [Thu, 7 Feb 2008 20:51:23 +0000 (20:51 +0000)]
Fixed (hopefully) the mailing list problem.
Art Cancro [Thu, 7 Feb 2008 17:54:23 +0000 (17:54 +0000)]
Changed the 'No subscribers found' error message to 'This mailing
list only accepts posts from subscribers' for clarity.
Art Cancro [Thu, 7 Feb 2008 17:42:45 +0000 (17:42 +0000)]
funambol65.c: cleaned up compiler warnings
Wilfried Göesgens [Wed, 6 Feb 2008 19:43:46 +0000 (19:43 +0000)]
* set the roomflax apropriate.
Wilfried Göesgens [Wed, 6 Feb 2008 10:40:07 +0000 (10:40 +0000)]
* handle situations were just one set of bdb utils is installed on debian
Art Cancro [Tue, 5 Feb 2008 21:52:03 +0000 (21:52 +0000)]
No spaces in temp file names
Art Cancro [Tue, 5 Feb 2008 21:13:44 +0000 (21:13 +0000)]
New option in the text client to open attachments
directly instead of saving them to a temporary file. The
fact that most Linux systems now have 'xdg-open' makes this
a big win.
Wilfried Göesgens [Mon, 4 Feb 2008 20:32:39 +0000 (20:32 +0000)]
* build the modules stuff while configuring. it's functional now, and once done is enough.
Art Cancro [Mon, 4 Feb 2008 18:38:35 +0000 (18:38 +0000)]
html.c support the '´' entity tag
Wilfried Göesgens [Mon, 4 Feb 2008 10:26:44 +0000 (10:26 +0000)]
* don't link unused libs
* getmail actualy does s.th. usefull
* artv dump now separates the types by blank lines; control didn't print varname.
Art Cancro [Sun, 3 Feb 2008 03:40:34 +0000 (03:40 +0000)]
Do not allow external editor in citadel.rc by default
Wilfried Göesgens [Sat, 2 Feb 2008 20:44:50 +0000 (20:44 +0000)]
* preserve symlinks
Wilfried Göesgens [Sat, 2 Feb 2008 20:38:35 +0000 (20:38 +0000)]
* dereference symlinks
Wilfried Göesgens [Sat, 2 Feb 2008 20:36:13 +0000 (20:36 +0000)]
* dereference symlinks
Wilfried Göesgens [Sat, 2 Feb 2008 10:03:34 +0000 (10:03 +0000)]
* set +x flags
Wilfried Göesgens [Sat, 2 Feb 2008 09:57:13 +0000 (09:57 +0000)]
* set execute bit on the right files
Art Cancro [Sat, 2 Feb 2008 05:45:20 +0000 (05:45 +0000)]
* Thread ID's are now displayed in 0x%08lx format instead
of %ld format. This seems to be the standard.
* Added AUTHMODE_LDAP to the authentication modes in the header file.
The code itself has not been written, but the framework for cleanly
separating handlers for each auth mode is taking shape.
Wilfried Göesgens [Fri, 1 Feb 2008 10:07:13 +0000 (10:07 +0000)]
* remove debugging printfs
Art Cancro [Thu, 31 Jan 2008 18:49:29 +0000 (18:49 +0000)]
--- VERSION 7.30 ---
Wilfried Göesgens [Wed, 30 Jan 2008 22:44:37 +0000 (22:44 +0000)]
* if we find an '&', try to watch out for an ; within the next 6 chars. if we find a ';' we probably found an entity, and the URL is finished.
* fixiate our endpoint by a '\0' so the other fixups don't trick us.
Wilfried Göesgens [Wed, 30 Jan 2008 21:34:17 +0000 (21:34 +0000)]
* TECH_PREVIEW here too.
Michael Hampton [Wed, 30 Jan 2008 18:40:02 +0000 (18:40 +0000)]
Text client: allow message quoting of lines over 1000
Wilfried Göesgens [Tue, 29 Jan 2008 23:35:28 +0000 (23:35 +0000)]
* readSmessage(); zero our strings properly so we don't get random on higher -O's
Wilfried Göesgens [Tue, 29 Jan 2008 22:49:55 +0000 (22:49 +0000)]
* fix uninitialized case.
Art Cancro [Tue, 29 Jan 2008 22:09:54 +0000 (22:09 +0000)]
Missed a few :)
Art Cancro [Tue, 29 Jan 2008 21:59:07 +0000 (21:59 +0000)]
Eliminated unnecessary complexity by removing support
for RFC 1893 (ESMTP enhanced status codes). This is a
stupid extension that doesn't accomplish what it intended
to, so out it goes.
Wilfried Göesgens [Tue, 29 Jan 2008 21:46:11 +0000 (21:46 +0000)]
* don't double evaluate the first pair; some nice comments
Wilfried Göesgens [Tue, 29 Jan 2008 21:25:48 +0000 (21:25 +0000)]
* move the whole string rather than just the next partition, as we don't know whether there is a last partition.
Art Cancro [Tue, 29 Jan 2008 21:20:00 +0000 (21:20 +0000)]
smtp service: offer the 8BITMIME extension, because
clients are going to send it anyway.
Wilfried Göesgens [Tue, 29 Jan 2008 20:56:58 +0000 (20:56 +0000)]
* remove blanks between qp partitions.
Art Cancro [Tue, 29 Jan 2008 05:04:05 +0000 (05:04 +0000)]
Third try. :(
The test for libcitadel version in the configure script had too many
places where it could either break or send the build into an infinite
loop of reconfiguration. Moved the test into the citadel.h and
webcit.h header files, where they throw an error if the version is
too old.
Art Cancro [Tue, 29 Jan 2008 04:42:08 +0000 (04:42 +0000)]
Moved the libcitadel version check below the point
where it generates sysdep.h because that header is needed
for the test.
Wilfried Göesgens [Mon, 28 Jan 2008 23:14:09 +0000 (23:14 +0000)]
* use iconv for more parts of the message while replying/quoting, so we don't produce QP-encoded character juice here.
Art Cancro [Mon, 28 Jan 2008 16:25:50 +0000 (16:25 +0000)]
* Unfinished code is now disabled.
To enable it, do 'CFLAGS=-DTECH_PREVIEW' prior to configure.
This will activate the Jabber and Wiki modules.
* Citadel and WebCit configure scripts now check to make sure that
libcitadel is current enough.
* Cleaned up some compiler warnings.
Wilfried Göesgens [Sun, 27 Jan 2008 22:57:43 +0000 (22:57 +0000)]
* now getmail does s.th. almost usefull
Wilfried Göesgens [Sun, 27 Jan 2008 18:31:56 +0000 (18:31 +0000)]
* user creation commandline tool
* some sample data
Wilfried Göesgens [Sun, 27 Jan 2008 17:27:32 +0000 (17:27 +0000)]
* support dele command
* z-push plugin
* sample edit config command
Wilfried Göesgens [Sun, 27 Jan 2008 00:31:44 +0000 (00:31 +0000)]
* we didn't calculate our directories in a proper sequence. fixed hereby.
Wilfried Göesgens [Sun, 27 Jan 2008 00:07:06 +0000 (00:07 +0000)]
* try to watch the PID for shutting down citserver
Wilfried Göesgens [Sat, 26 Jan 2008 23:57:07 +0000 (23:57 +0000)]
* restart by doing 'sendcommand down 1' which will make citserver restart internaly.
Dave West [Sat, 26 Jan 2008 18:57:31 +0000 (18:57 +0000)]
Fix the segault on server shutdown that crept in when we decided to
purge users at logout.
Art Cancro [Fri, 25 Jan 2008 03:59:59 +0000 (03:59 +0000)]
Shuffled around the order of resolver library tests.
Art Cancro [Thu, 24 Jan 2008 16:43:23 +0000 (16:43 +0000)]
Fixed bug #226. The sample message supplied was
a multipart/mixed that contained nothing except an attached message/rfc822
submessage. This is quite unusual but I suppose it is legal. With no viewable
parts at the top level, webcit assumed that the message was corrupt. Changed the
code so that this is no longer an error condition. Instead of displaying an error
and jumping to the exit point, we now display nothing and jump to the portion of
read_message() that displays attachments and submessages.
Art Cancro [Thu, 24 Jan 2008 04:51:44 +0000 (04:51 +0000)]
Added a second test for libresolv that takes into
consideration the fact that res_query() is a macro on some hosts.
Art Cancro [Thu, 24 Jan 2008 03:47:48 +0000 (03:47 +0000)]
Nothing happens.
Art Cancro [Wed, 23 Jan 2008 18:28:39 +0000 (18:28 +0000)]
Implemented the XYZZY command.
Art Cancro [Wed, 23 Jan 2008 17:39:26 +0000 (17:39 +0000)]
Applied Matt's latest funambol65 patch.
Matt: please clean up your compiler warnings.
Art Cancro [Wed, 23 Jan 2008 17:35:26 +0000 (17:35 +0000)]
Modified ical_dezonify() again. It seems that there
is never a need to free the icaltimezone, as it will always be one
of three things:
1. A built-in timezone (memory belongs to libical)
2. Hardcoded UTC timezone (memory belongs to libical)
3. A supplied timezone from another component (memory belongs to caller)
Removed the call to icaltimezone_free().
Wilfried Göesgens [Tue, 22 Jan 2008 22:21:53 +0000 (22:21 +0000)]
* OpenBSD compatibility: select properly while reading/writing to sockets
* some minor deb changes.
Wilfried Göesgens [Tue, 22 Jan 2008 22:20:28 +0000 (22:20 +0000)]
* if two edit in the same screen...
Wilfried Göesgens [Tue, 22 Jan 2008 21:22:10 +0000 (21:22 +0000)]
* correctly handle tcp write, so that we work properly on openbsd. Thanks to Maide for this work.
Wilfried Göesgens [Tue, 22 Jan 2008 21:21:24 +0000 (21:21 +0000)]
* use the hash to store our config.
Dave West [Tue, 22 Jan 2008 10:16:47 +0000 (10:16 +0000)]
Clean up in Hash functions.
Some bug fixes too.
Addition of hash ittereator functions.
This is Dothebarts spiffing new hash functions.
Art Cancro [Tue, 22 Jan 2008 05:02:04 +0000 (05:02 +0000)]
Fixed the webcit preferences bug once and for all, using a proper
linked list instead of a clumsy hack with the string tokenizer.
Art Cancro [Mon, 21 Jan 2008 14:55:07 +0000 (14:55 +0000)]
Added funambol_newmail_soap.xml
Wilfried Göesgens [Sun, 20 Jan 2008 21:10:17 +0000 (21:10 +0000)]
* sanitize the next message pointer loop in the "Goto Next Room"-Call
* include missing header.
Wilfried Göesgens [Sun, 20 Jan 2008 15:05:22 +0000 (15:05 +0000)]
* add skelleton hash lib.
Dave West [Sun, 20 Jan 2008 13:52:06 +0000 (13:52 +0000)]
Now when a room is created or deleted this users icon bar is updated
immediately.
Other users will have to wait until their iconbar is refreshed (up to
300 seconds) but since they have no knowledge of when the room was
created/deleted they'll never notice.
Art Cancro [Sun, 20 Jan 2008 04:47:06 +0000 (04:47 +0000)]
Add remote hostname and IP address to 'Session started.' log message
Art Cancro [Sun, 20 Jan 2008 04:43:25 +0000 (04:43 +0000)]
Applied Matt's new patch. Adds 'extnotify' and removes
the 'pager' and 'funambol' modules.
Dave West [Sat, 19 Jan 2008 23:53:29 +0000 (23:53 +0000)]
Fix the user purge / delete thing once and for all.
When a user is deleted they are purged from the database immediately
unless they are currently logged in.
This used to rely on the autopurger purging the user at a later date.
Now when the user logs out we check to see if they have been marked for
deletion and if they have purge them immediately.
Dave West [Sat, 19 Jan 2008 21:29:37 +0000 (21:29 +0000)]
If we are redirected we need to close this socket before the goto retry
which causes a new one to be opened.
Art Cancro [Sat, 19 Jan 2008 06:51:26 +0000 (06:51 +0000)]
Aha! Finally found the culprit. Someone (possibly me) at
some point in the past decided to set the TZ environment variable
to UTC if it was empty. This is wrong because an empty TZ causes
libc to discover the timezone by other means. As a result, hosts
that were in other timezones were getting their times changed to
UTC.
Art Cancro [Sat, 19 Jan 2008 06:02:47 +0000 (06:02 +0000)]
Backed out previous commit
Art Cancro [Sat, 19 Jan 2008 05:35:02 +0000 (05:35 +0000)]
Applied matt's latest patch set
Art Cancro [Fri, 18 Jan 2008 05:12:23 +0000 (05:12 +0000)]
Reinstated the call to icaltimezone_copy()
Wilfried Göesgens [Thu, 17 Jan 2008 23:21:09 +0000 (23:21 +0000)]
* this way the package builds again.
Art Cancro [Thu, 17 Jan 2008 22:29:07 +0000 (22:29 +0000)]
Fixed infinite-loop bug in room name display code.
Dave West [Thu, 17 Jan 2008 22:07:54 +0000 (22:07 +0000)]
Fix reply quoting in webcit.
Wilfried Göesgens [Thu, 17 Jan 2008 21:01:04 +0000 (21:01 +0000)]
* decode subject in the right position; if we decode the full text, we don't get hickups with sections passing the border.
* put in a correct dummy string.
Art Cancro [Thu, 17 Jan 2008 20:29:27 +0000 (20:29 +0000)]
The encoding and decoding tables for Base64 are
no longer calculated at startup. CtdlInitBase64Table() is removed. The tables
are now hardcoded as 'const' arrays. Not only will this eliminate the need to do
a startup calculation, but since it is now const we will get a nice clean segv if
some other code attempts to clobber them.
Art Cancro [Thu, 17 Jan 2008 06:20:17 +0000 (06:20 +0000)]
Backed out r5921 and r5936 because they were causing
SSL session lockups and CitContext table corruption.
Art Cancro [Thu, 17 Jan 2008 05:19:48 +0000 (05:19 +0000)]
Temporary workaround to compile with old libical
Art Cancro [Thu, 17 Jan 2008 05:08:46 +0000 (05:08 +0000)]
dtable/etable initialization code in libcitadel was
not complete. CtdlEncodeBase64() still initialized upon each call -- and it was
initializing dtable, not etable, causing dtable to have the wrong data the next time
CtdlDecodeBase64() is called. Fixed. Also noticed that WebCit was not calling the
initialization function at all, so this has probably been broken ever since the move
to libcitadel. Fixed this too.
Wilfried Göesgens [Wed, 16 Jan 2008 22:37:00 +0000 (22:37 +0000)]
* checking a pointer is useless if you dereference it in advance.
Wilfried Göesgens [Wed, 16 Jan 2008 22:28:17 +0000 (22:28 +0000)]
* for loops seem to execute at least once? hm.
Wilfried Göesgens [Wed, 16 Jan 2008 22:10:55 +0000 (22:10 +0000)]
* if the token extractor fails to do its work, rather return '0' than some random number.
Wilfried Göesgens [Wed, 16 Jan 2008 22:04:40 +0000 (22:04 +0000)]
* don't overrun our room list.
Dave West [Wed, 16 Jan 2008 14:56:40 +0000 (14:56 +0000)]
Changed log message when worker thread select is interrupted. It now
says it was interrupted rather than an unhandled select failure.