Dave West [Sun, 5 Aug 2007 19:16:00 +0000 (19:16 +0000)]
Continue phase 2 of modules stuff.
Moved some more stuff into the relevant modules/* directories.
modified Makefile.in to build them.
Created a new Hook to register a search function. This allowed serv_fulltext.c to become independant of two files.
New suite of functions to support this hook mechanism are:
CtdlRegisterSearchFunction
CtdlUnregisterSearchFunction
CtdlModuleDoSearch
Remind me to document that mechanism too 8-)
Altered the DeleteHook mechanism slightly.
A registered DeleteHook will be called with a room name of NULL when the message no longer has a refcount and
has realy been deleted from the system. This allowed fulltext to be fully disconected from the msgbase.
Dave West [Sun, 5 Aug 2007 18:18:59 +0000 (18:18 +0000)]
Added #define LDAP_DEPRECATED 1 to get rid of warnings with newer libraries
Dave West [Sun, 5 Aug 2007 17:58:53 +0000 (17:58 +0000)]
Moved serv_ldap.h back into the main src dir as a temporary fix for a broken build when ldap enabled.
Thanks dothebart for pointing this out.
Seems there are hidden dependancies in serv_vcard so I had to reinsert the #include line there too.
This is a temporary measure and serv_ldap.h will move back into the module directory eventually.
To test this I had to install the latest OpenLDAP from the web site and have noted that several functions
we use are now deprecated to the point that they are no longer in <ldap.h> thus warnings are generated on
my build system.
Dave West [Fri, 3 Aug 2007 22:12:16 +0000 (22:12 +0000)]
Continue phase 2 of modules stuff.
Moved some more stuff into the relevant modules/* directories.
modified Makefile.in to build them.
Created a new Hook to register a maintenance thread. This allowed serv_fulltext.c to become independant of one file.
New thread hook should be easy enough to extend to other threads and get stats of threads.
Still more to be done on this to seperate the rest of the modules so they don't rely on specifics of each other.
Moved db checkpoint thread to new hook mechanism.
Remind me to document that mechanism 8-)
Art Cancro [Fri, 3 Aug 2007 19:17:30 +0000 (19:17 +0000)]
Experimental changes to the default theme. Gradient
background. We will need to alter some other elements
but that will probably be a good idea anyway. Also added
a nice little 'grippy' graphic to the message list resize
bar.
Art Cancro [Fri, 3 Aug 2007 15:49:36 +0000 (15:49 +0000)]
WebCit 7.13
Art Cancro [Thu, 2 Aug 2007 21:19:54 +0000 (21:19 +0000)]
Cleaned up the config interface.
* Eliminated SOCKET_PREFIX because unix:// works on PHP4 too, so
we can use it all the time.
* Prefix has been moved to CITADEL_HOSTNAME
* Added config_ctdlclient_local.php and added it to .svnignore, so
site operators and developers can override without wreaking havoc
in svn.
Art Cancro [Thu, 2 Aug 2007 20:21:46 +0000 (20:21 +0000)]
Optimize num_tokens() to use only one pass through the string
Art Cancro [Thu, 2 Aug 2007 20:20:42 +0000 (20:20 +0000)]
Optimize num_tokens() to use only one pass through the string
Dave West [Wed, 1 Aug 2007 23:31:53 +0000 (23:31 +0000)]
Another version of mk_module_init.sh to try and get round the echo problems
Dave West [Tue, 31 Jul 2007 21:36:03 +0000 (21:36 +0000)]
Continue phase 2 of modules stuff.
Moved rest of serv_* into modules/* where it can be done without altering the contents of the file or the code
modified Makefile.in to build them.
Dave West [Tue, 31 Jul 2007 21:06:20 +0000 (21:06 +0000)]
mk_module_init.sh now tests to see if echo supports -e and -E
Wilfried Göesgens [Tue, 31 Jul 2007 20:42:44 +0000 (20:42 +0000)]
* fixed bug in the debian init script that would make 'restart' fail. tnx to DGEAPerez for reporting this.
Michael Hampton [Tue, 31 Jul 2007 19:15:37 +0000 (19:15 +0000)]
Don't use shell built-in echo command in scripts.
Wilfried Göesgens [Mon, 30 Jul 2007 23:22:48 +0000 (23:22 +0000)]
* look exactly for 2 or 3, so the status request will still work.
Wilfried Göesgens [Mon, 30 Jul 2007 23:17:39 +0000 (23:17 +0000)]
* scdn now allso knows how to trigger restart.
Wilfried Göesgens [Sun, 29 Jul 2007 19:24:05 +0000 (19:24 +0000)]
* moved some flags so that our run flags are collected in one place.
* added IsEmptyStr from webcit
* added optional Parameter to "DOWN" command that will make the server restart instead of stopping.
* if the new flag is set, we will exit(1) to hopefully make our watcher fire us up again.
Dave West [Sat, 28 Jul 2007 11:49:26 +0000 (11:49 +0000)]
Makefile.in now cleans the modules subtree as well
Dave West [Sat, 28 Jul 2007 11:30:54 +0000 (11:30 +0000)]
Begun phase 2 of modules stuff.
Moved serv_test.c into modules/test
modified Makefile.in to build it.
Fixed a bug in mk_module_init.sh that stopped it scanning the subdirs
Wilfried Göesgens [Fri, 27 Jul 2007 19:26:06 +0000 (19:26 +0000)]
* new citadel-suite package, that will pull all other packages with it, so we can give users the "simple way without explains"
Art Cancro [Thu, 26 Jul 2007 21:07:31 +0000 (21:07 +0000)]
Completed the Bynari version of SETMETADATA.
Now when a new calendar, address book, etc. is created i
Outlook, the Citadel view type is set correctly.
Art Cancro [Thu, 26 Jul 2007 21:06:15 +0000 (21:06 +0000)]
-
Thierry Pasqualier [Thu, 26 Jul 2007 20:47:43 +0000 (20:47 +0000)]
Improvement of CSS to display message text/calendar card
Art Cancro [Thu, 26 Jul 2007 19:29:12 +0000 (19:29 +0000)]
Convert folder type names to citadel view numbers.
Now to implement the database write...
Art Cancro [Thu, 26 Jul 2007 19:15:37 +0000 (19:15 +0000)]
-
Art Cancro [Thu, 26 Jul 2007 17:02:44 +0000 (17:02 +0000)]
Minor indentation changes
Dave West [Thu, 26 Jul 2007 07:46:53 +0000 (07:46 +0000)]
Moved to new module init structure.
Added file include/ctdl_module.h
Added script mk_modules_init.sh to build files modules_init.c and modules_init.h
removed #include "serv_extensions.h" from files that don't need it
Begun creation of new module dir structure.
davew.
Art Cancro [Thu, 26 Jul 2007 03:54:05 +0000 (03:54 +0000)]
Began implementing the Bynari version of SETMETADATA. This will
(when finished) be used to set the folder type when creating a new room.
Art Cancro [Tue, 24 Jul 2007 18:48:12 +0000 (18:48 +0000)]
'master user' hack is now an #ifdef instead of commented out
Wilfried Göesgens [Mon, 23 Jul 2007 18:45:45 +0000 (18:45 +0000)]
* socket syntax is different in php5. make it configurable.
Dave West [Mon, 23 Jul 2007 09:10:58 +0000 (09:10 +0000)]
Update to documentation for event hooks.
Dave West [Mon, 23 Jul 2007 09:01:42 +0000 (09:01 +0000)]
Code clean up. Removed #include serv_sieve.h as no longer needed
Thierry Pasqualier [Mon, 23 Jul 2007 06:29:41 +0000 (06:29 +0000)]
HTML/CSS calendar mimepart display
Art Cancro [Mon, 23 Jul 2007 00:56:58 +0000 (00:56 +0000)]
When webcit converts a set of inbox rules to a Sieve script,
insert all of the user's email addresses into the script so
the parser doesn't have to guess by scanning the envelope recipient.
Wilfried Göesgens [Sun, 22 Jul 2007 22:22:23 +0000 (22:22 +0000)]
* fixed missing targets in make clean. thanks, davew for pointing this out.
Wilfried Göesgens [Sun, 22 Jul 2007 11:31:06 +0000 (11:31 +0000)]
davew: search for newer versions of berkeley db
Wilfried Göesgens [Sun, 22 Jul 2007 10:46:47 +0000 (10:46 +0000)]
davew: clean ups, addition to documentation of API and addition of an event to clean the libsieve connection to housekeeping.c
Wilfried Göesgens [Sun, 22 Jul 2007 10:35:59 +0000 (10:35 +0000)]
* put anchor comment in here too.
Art Cancro [Sun, 22 Jul 2007 04:27:19 +0000 (04:27 +0000)]
Sieve GETENVELOPE converts 'local' style addresses
into user_name@host syntax. Fixes libsieve crash for local-to-local
mail.
Thierry Pasqualier [Sat, 21 Jul 2007 07:53:29 +0000 (07:53 +0000)]
CSS/HTML for text/calendar in message... in progress
Thierry Pasqualier [Fri, 20 Jul 2007 18:31:19 +0000 (18:31 +0000)]
HTML/CSS of text/calendar display in message
Thierry Pasqualier [Fri, 20 Jul 2007 12:08:58 +0000 (12:08 +0000)]
- some HTML/CSS improvments
- I began the improvment the display of mime type calendar in messages
(to avoid black background display with IE)
Thierry Pasqualier [Thu, 19 Jul 2007 12:24:07 +0000 (12:24 +0000)]
Updated french translation
Art Cancro [Thu, 19 Jul 2007 04:39:20 +0000 (04:39 +0000)]
serv_sieve: when no envelope-to field is present, copy
it from the recipient in the message body.
Thierry Pasqualier [Wed, 18 Jul 2007 21:22:42 +0000 (21:22 +0000)]
Some important changes in iconbar
- Added a button to select or not the list of the users online
You can choise :
Yes (for only Who is online ? icon)
Yes with users list (for display users list,
correct the bad english... )
No (for no Who is online? icon)
- used radio box with Yes or No in the place of checkbox
to use the same way for all choices
- removed hardcoded color (altern table)
- added a banner to the return message: Your icon bar has been...
- CSS/HTML improvements
Test it
Art Cancro [Wed, 18 Jul 2007 04:28:14 +0000 (04:28 +0000)]
Shuffled around the sieve code:
* init function moved into the proper place
* GETENVELOPE doesn't set to/from if they are empty
Wilfried Göesgens [Mon, 16 Jul 2007 22:06:19 +0000 (22:06 +0000)]
* merged in Littlesmiths corrections and suggestions
* reworked some strings on Littlesmiths input
* reworked sysmsgs.c:44 in the original
Thierry Pasqualier [Mon, 16 Jul 2007 21:55:02 +0000 (21:55 +0000)]
fix the reply subject bug
Thierry Pasqualier [Mon, 16 Jul 2007 08:07:29 +0000 (08:07 +0000)]
I didn't initialize current time (it worked on my box ?)
Hope it's work now, sorry.
Thierry Pasqualier [Mon, 16 Jul 2007 07:17:35 +0000 (07:17 +0000)]
iconbar CSS: forgot inactive user background on user list
Wilfried Göesgens [Sun, 15 Jul 2007 21:14:10 +0000 (21:14 +0000)]
* added a comment infront of the svn modifieable returns. Now it will be me listed on all those places till the next commit ;-)
Thierry Pasqualier [Fri, 13 Jul 2007 06:33:50 +0000 (06:33 +0000)]
Some HTML/CSS changes to return to a more compact header of the messages with buttons
Wilfried Göesgens [Thu, 12 Jul 2007 22:29:19 +0000 (22:29 +0000)]
* fix the 'trilcat pastes url in webcit with trash at the end' incident.
Wilfried Göesgens [Thu, 12 Jul 2007 21:49:12 +0000 (21:49 +0000)]
* Created IsEmptyStr define to be used rather then using some weird strlen constructs
* moved strlens out of loops everywhere possible anyhow.
* evaded about half of our strlen()'s; more to come.
Art Cancro [Thu, 12 Jul 2007 18:26:54 +0000 (18:26 +0000)]
* Added new view type VIEW_JOURNAL - not yet used by
native clients, but Outlook (via the Bynari connector) needs it.
* Implemented GETMETADATA so the Connector can learn folder types
without the aid of hidden synchronization messages
Art Cancro [Thu, 12 Jul 2007 03:02:22 +0000 (03:02 +0000)]
Re-using the 'buf' variable in embed_room_banner() for
room name sanitization clobbered a bunch of variables that
we still needed, resulting (for example) in prompts such as
'0 new of 0 messages'. Fixed.
Thierry Pasqualier [Wed, 11 Jul 2007 18:35:47 +0000 (18:35 +0000)]
Some modifications in the display of each message to optimize the
place.
- Buttons are now at the top to the right
- the date is on the first line
- author and room are on the following line
Thierry Pasqualier [Tue, 10 Jul 2007 12:24:23 +0000 (12:24 +0000)]
Edit message : i agree with fleeb, i put the button on right top
Thierry Pasqualier [Mon, 9 Jul 2007 17:20:07 +0000 (17:20 +0000)]
Aligned user list on the left of iconbar with a small indent
Thierry Pasqualier [Mon, 9 Jul 2007 12:16:03 +0000 (12:16 +0000)]
iconbar CSS : light yellow background for active users
Thierry Pasqualier [Mon, 9 Jul 2007 11:59:30 +0000 (11:59 +0000)]
I wasn't woken this morning, I confused span and class ;-)
Thierry Pasqualier [Mon, 9 Jul 2007 06:54:50 +0000 (06:54 +0000)]
iconbar : mark active/inactive user with CSS
Michael Hampton [Sun, 8 Jul 2007 15:54:04 +0000 (15:54 +0000)]
Include sys/stat.h when available (FreeBSD)
Thierry Pasqualier [Sun, 8 Jul 2007 08:16:15 +0000 (08:16 +0000)]
- Simplified the user list for summary
- Added CSS for Who's online and Summary screens
Art Cancro [Sun, 8 Jul 2007 04:15:38 +0000 (04:15 +0000)]
Evidently, when an HTML checkbox is disabled, its value
is never sent to the server, even if the value was explicitly set.
Reworked the c_auth_mode setting due to this, because it was getting
unset.
Art Cancro [Sun, 8 Jul 2007 03:14:01 +0000 (03:14 +0000)]
Quick respin of WebCit (now 7.12) due to missing config.sub
(I messed up the buildpackages script while removing .svn directories)
Thierry Pasqualier [Sat, 7 Jul 2007 21:07:25 +0000 (21:07 +0000)]
- Deleted the (too wide) remote host in summary screen
- I keep it in Who is online screen
- A scrolbar appear now if the user list is too long on iconbar
Art Cancro [Sat, 7 Jul 2007 15:10:49 +0000 (15:10 +0000)]
When existing init scripts are detected during setup,
ask the user if he wants to leave them as-is.
Art Cancro [Sat, 7 Jul 2007 15:01:16 +0000 (15:01 +0000)]
Removed an unused variable
Thierry Pasqualier [Sat, 7 Jul 2007 14:10:24 +0000 (14:10 +0000)]
userlist: removed (not logged in) message on iconbar
Wilfried Göesgens [Sat, 7 Jul 2007 12:44:47 +0000 (12:44 +0000)]
* check whether we shoud shut down. we do this by checking whether the password is an empty string.
Wilfried Göesgens [Sat, 7 Jul 2007 08:57:14 +0000 (08:57 +0000)]
* we don't need to chown chkpwd anymore.
Wilfried Göesgens [Sat, 7 Jul 2007 08:33:33 +0000 (08:33 +0000)]
* for some reason config.path doesn't get createt, so we better don't delete it.
Art Cancro [Sat, 7 Jul 2007 04:25:14 +0000 (04:25 +0000)]
Support the idea of a 'master user' logging in
as another user. This will be used to support Asterisk voicemail. It
is currently disabled because the master username/password is hardcoded
and we don't want anyone using that.
Art Cancro [Sat, 7 Jul 2007 03:38:53 +0000 (03:38 +0000)]
Support AUTH=PLAIN in the IMAP server.
Art Cancro [Fri, 6 Jul 2007 19:40:29 +0000 (19:40 +0000)]
oops, update to 7.11 in configure.ac
* Updated buildpackages to use .tar.gz file format, and also
to clean out files like .svn/ etc.
Art Cancro [Fri, 6 Jul 2007 19:09:53 +0000 (19:09 +0000)]
* Move to GPL v3
* Update version number to 7.11
Wilfried Göesgens [Thu, 5 Jul 2007 22:56:04 +0000 (22:56 +0000)]
* strlen(); strcpy -> single strlen + memmove
Wilfried Göesgens [Thu, 5 Jul 2007 21:52:13 +0000 (21:52 +0000)]
* send linewraps, so we get our dots at least.
* sindcommand sends a linewrap now too, else we will block on finishing.
Art Cancro [Thu, 5 Jul 2007 20:59:27 +0000 (20:59 +0000)]
Remove the intermediate buffer in serv_puts()
Wilfried Göesgens [Thu, 5 Jul 2007 20:05:37 +0000 (20:05 +0000)]
* the memmove off by one, and some more optimization.
Art Cancro [Thu, 5 Jul 2007 19:53:58 +0000 (19:53 +0000)]
*All* <FORM> blocks now contain a nonce field, and the use of
a nonce is now enforced whenever method=POST is used. This prevents
an attacker from simply removing the nonce entirely.
Art Cancro [Thu, 5 Jul 2007 19:36:32 +0000 (19:36 +0000)]
Nearly all <FORM> blocks now contain a hidden input
tag containing a session nonce. If the nonce does not match, the request
is cancelled.
Art Cancro [Thu, 5 Jul 2007 15:44:29 +0000 (15:44 +0000)]
Sanitize text of preferences strings
Art Cancro [Thu, 5 Jul 2007 15:32:50 +0000 (15:32 +0000)]
Sanitize output of room name in room banner
Wilfried Göesgens [Wed, 4 Jul 2007 21:58:19 +0000 (21:58 +0000)]
* don't use strlen and strcpy over here too in a wrong way.
Wilfried Göesgens [Wed, 4 Jul 2007 21:57:41 +0000 (21:57 +0000)]
* don't use strlen and strcpy over here too in a wrong way.
Wilfried Göesgens [Wed, 4 Jul 2007 21:56:29 +0000 (21:56 +0000)]
* don't use strlen; use memmove instead of strcpy.
Wilfried Göesgens [Wed, 4 Jul 2007 21:50:38 +0000 (21:50 +0000)]
* have default ip, so valgrind shuts up.
Art Cancro [Wed, 4 Jul 2007 03:46:43 +0000 (03:46 +0000)]
Fixed a bug in the conversion of 'mailto:' links to WebCit
mail links.
Art Cancro [Tue, 3 Jul 2007 22:00:35 +0000 (22:00 +0000)]
Remove <script> blocks from HTML messages when displaying.
Art Cancro [Tue, 3 Jul 2007 19:44:28 +0000 (19:44 +0000)]
When converting <A> tags, don't omit the change to
bracket nesting count. Fixes rendering problems.
Art Cancro [Tue, 3 Jul 2007 15:10:38 +0000 (15:10 +0000)]
In the main readloop(), fixed a </div> that appeared
*after* the call to wDumpContent(), which was causing blank screens on IE6
Art Cancro [Sun, 1 Jul 2007 04:20:36 +0000 (04:20 +0000)]
Sanitize HTML output from the 'showuser' command
Art Cancro [Fri, 29 Jun 2007 05:01:56 +0000 (05:01 +0000)]
When reading in SMTP recipients, use safestrncpy() instead
of strcpy() to load the address conversion buffer.
Art Cancro [Thu, 28 Jun 2007 04:01:12 +0000 (04:01 +0000)]
Eliminate the 'Internet mail recommends
a subject' message; the presence of the 'Subject:' prompt
ought to be enough to communicate that. Also, do not prompt
if the subject is already set (which will be the case if the
user has selected a 'Reply' command).
Art Cancro [Wed, 27 Jun 2007 05:32:56 +0000 (05:32 +0000)]
Be a little smarter about return-path generation.
Art Cancro [Wed, 27 Jun 2007 05:06:31 +0000 (05:06 +0000)]
Removed the VRFY and EXPN commands from our SMTP server
implementation because nobody uses these commands anymore
except for spammers.
Wilfried Göesgens [Tue, 26 Jun 2007 20:55:08 +0000 (20:55 +0000)]
* print some info to the client while putting stuff into the db
* use select() to read more from the citserver.
Wilfried Göesgens [Mon, 25 Jun 2007 21:53:00 +0000 (21:53 +0000)]
* if a message subject is required, ask the user for it before opening the editor.