Version number to 7.35 in preparation for an upcoming release.
authorArt Cancro <ajc@citadel.org>
Fri, 11 Apr 2008 14:26:13 +0000 (14:26 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 11 Apr 2008 14:26:13 +0000 (14:26 +0000)
13 files changed:
citadel/citadel.h
citadel/citadel.nsi
citadel/configure.ac
libcitadel/lib/hash.c
libcitadel/lib/html_to_ascii.c
libcitadel/lib/libcitadel.h
libcitadel/lib/tools.c
webcit/addressbook_popup.c
webcit/auth.c
webcit/autocompletion.c
webcit/availability.c
webcit/configure.ac
webcit/webcit.h

index e34dce4df11fe20a34a748a512a544da498b9691..c68393b17e6be059fe378982e820f5e78f975015 100644 (file)
@@ -38,7 +38,7 @@ extern "C" {
  * usually more strict because you're not really supposed to dump/load and
  * upgrade at the same time.
  */
-#define REV_LEVEL      733             /* This version */
+#define REV_LEVEL      735             /* This version */
 #define REV_MIN                591             /* Oldest compatible database */
 #define EXPORT_REV_MIN 733             /* Oldest compatible export files */
 #define LIBCITADEL_MIN 109             /* Minimum required version of libcitadel */
index f7621105cbf8a064b5a981598054c9802f12b56a..cfd3c2cb71cb1a1d9e18bb307df9fbe49c65cf1a 100644 (file)
@@ -4,7 +4,7 @@
 
 !include "${NSISDIR}\Contrib\Modern UI\System.nsh"
 !define MUI_PRODUCT "Citadel"
-!define MUI_VERSION "7.30"
+!define MUI_VERSION "7.35"
 !define MUI_WELCOMEPAGE
 !define MUI_LICENSEPAGE
 !define MUI_COMPONENTSPAGE
@@ -18,7 +18,7 @@
 ;!define MUI_ICON "${NSISDIR}\Contrib\Icons\modern-install.ico"
 ;!define MUI_UNICON "${NSISDIR}\Contrib\Icons\modern-uninstall.ico"
 
-OutFile "citadel-7.30.exe"
+OutFile "citadel-7.35.exe"
 BGGradient off
 
 LangString DESC_Citadel ${LANG_ENGLISH} "Citadel client and core libraries (required)"
index 7746c99cb49da0b23282b518284f130868ad8962..ab250a96d3ceb63ef7e7be85d96fa49be4290221 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl $Id$
 AC_PREREQ(2.52)
-AC_INIT([Citadel], [7.33], [http://www.citadel.org/])
+AC_INIT([Citadel], [7.35], [http://www.citadel.org/])
 AC_REVISION([$Revision: 5108 $])
 AC_CONFIG_SRCDIR([citserver.c])
 AC_PREFIX_DEFAULT(/usr/local/citadel)
index 4443552b9ad66b6e3dd4e42bcb06c779270b851f..85c9cda95b0bebce676c9084ac0481aa7302fb99 100644 (file)
@@ -18,7 +18,7 @@ struct Payload {
 
 struct HashKey {
         /**
-        * \brief Hash key element; sorted by Keye
+        * \brief Hash key element; sorted by key
         */
        long Key;         /**< Numeric Hashkey comperator for hash sorting */
        long Position;    /**< Pointer to a Payload struct in the Payload Aray */
index e7d7fc5dd96a772a717a4c3ec8531d1d1f7eec06..e2cb2b77abe96b48963b25f224f8e0ce8abaf419 100644 (file)
@@ -98,14 +98,11 @@ char *html_to_ascii(char *inputmsg, int msglen, int screenwidth, int do_citaform
                        if (inbuf[i]==10) inbuf[i]=32;
                        if (inbuf[i]==13) inbuf[i]=32;
                        if (inbuf[i]==9) inbuf[i]=32;
-                       /*** we like foreign characters now.
-                       if ((inbuf[i]<32) || (inbuf[i]>126)) {
-                               inbuf[i] = '?';
-                       } */
                    }
                    for (i=0; !IsEmptyStr(&inbuf[i]); ++i) {
-                       while ((inbuf[i]==32)&&(inbuf[i+1]==32))
+                       while ((inbuf[i]==32)&&(inbuf[i+1]==32)) {
                                strcpy(&inbuf[i], &inbuf[i+1]);
+                       }
                    }
 
                    for (i=0; !IsEmptyStr(&inbuf[i]); ++i) {
index 649a78d5dee5ec376d6363d75f81bcc376045fa3..b4008aebebc70f7f25eed23e7dea8ea630701d2c 100644 (file)
@@ -4,7 +4,6 @@
  */
 
 
-
 /*
  * since we reference time_t...
  */
@@ -177,10 +176,12 @@ void the_mime_parser(char *partnum,
 const char *GuessMimeType(char *data, size_t dlen);
 const char* GuessMimeByFilename(const char *what, size_t len);
 
-/** Run once at Programstart */
+/* Run once at Programstart */
 int LoadIconDir(const char *DirName);
-/** guess an icon to the mimetype */
+
+/* Select the icon for a given MIME type */
 const char *GetIconFilename(char *MimeType, size_t len);
+
 void ShutDownLibCitadel(void);
 
 
@@ -255,8 +256,8 @@ char *vcard_serialize(struct vCard *);
 void vcard_fn_to_n(char *vname, char *n, size_t vname_size);
 void remove_charset_attribute(char *strbuf);
 
-/**
- * Citadels Hashlist Implementation
+/*
+ * Hash list implementation for Citadel
  */
 #define HKEY(a) a, sizeof(a) - 1
 typedef struct HashList HashList;
index 15e346778aad74a2c3909c3425c5f39a9844667a..3a5e921b6fd8492b7123287a1e0a3665f41a15b9 100644 (file)
@@ -73,12 +73,14 @@ const byte dtable[256] = {
        128, 128, 0
 };
 
-/**
- * \brief copy a string into a buffer of a known size. abort if we exceed the limits
- * \param dest the targetbuffer
- * \param src the source string
- * \param n the size od dest
- * \returns the number of characters copied if dest is big enough, -n if not.
+/*
+ * copy a string into a buffer of a known size. abort if we exceed the limits
+ *
+ * dest        the targetbuffer
+ * src the source string
+ * n   the size od dest
+ *
+ * returns the number of characters copied if dest is big enough, -n if not.
  */
 int safestrncpy(char *dest, const char *src, size_t n)
 {
index 3004a826095afc5a3023e75efe2f6bc914ba1b6d..47b40a4bd4211a93a2dd864b45e77295527971d1 100644 (file)
@@ -1,16 +1,14 @@
 /*
  * $Id$
  *
- * \defgroup AjaxAutoCompletion ajax-powered autocompletion...
- * \ingroup ClientPower
+ * AJAX-powered auto-completion
  */
 
-/*@{*/
 #include "webcit.h"
 
 
-/**
- * \brief Call this right before wDumpContent() on any page which requires the address book popup
+/*
+ * Call this right before wDumpContent() on any page which requires the address book popup
  */
 void address_book_popup(void) {
        /* Open a new div, hidden initially, for address book popups. */
@@ -23,8 +21,8 @@ void address_book_popup(void) {
        /* The 'address_book_popup' div will be closed by wDumpContent() */
 }
 
-/**
- * \brief Address book popup window
+/*
+ * Address book popup window
  */
 void display_address_book_middle_div(void) {
        char buf[256];
@@ -92,8 +90,8 @@ void display_address_book_middle_div(void) {
 
 
 
-/**
- * \brief Address book popup results
+/*
+ * Address book popup results
  */
 void display_address_book_inner_div() {
        char buf[256];
@@ -184,6 +182,3 @@ void display_address_book_inner_div() {
 
        end_ajax_response();
 }
-
-
-/** @} */
index b2619691917252d1fd706b75aed4934f5fcacf2c..1cd4a3b0a16a5d1a3b7c8f25828eb4e2f11c41f4 100644 (file)
@@ -1,19 +1,13 @@
 /*
  * $Id$
- */
-/**
  *
- * \defgroup WebcitAuth WebcitAuth; Handles authentication of users to a Citadel server.
- * \ingroup CitadelConfig
+ * WebcitAuth; Handles authentication of users to a Citadel server.
  */
 
-/*@{*/
 #include "webcit.h"
 
-
-
-/**
- * \brief  user states
+/*
+ * user states
  * the plain text states of a user. filled in at \ function TODO initialize_ax_defs()
  * due to NLS
  */
@@ -32,9 +26,9 @@ void initialize_axdefs(void) {
 
 
 
-/** 
- * \brief Display the login screen
- * \param mesg The error message if last attempt failed.
+/* 
+ * Display the login screen
+ * mesg = the error message if last attempt failed.
  */
 void display_login(char *mesg)
 {
@@ -92,16 +86,17 @@ void display_login(char *mesg)
 
 
 
-/** \brief Initialize the session
+/* Initialize the session
+ *
  * This function needs to get called whenever the session changes from
  * not-logged-in to logged-in, either by an explicit login by the user or
  * by a timed-out session automatically re-establishing with a little help
  * from the browser cookie.  Either way, we need to load access controls and
  * preferences from the server.
  *
- * \param user the username
- * \param pass his password
- * \param serv_response The parameters returned from a Citadel USER or NEWU command
+ * user                        the username
+ * pass                        his password
+ * serv_response       The parameters returned from a Citadel USER or NEWU command
  */
 void become_logged_in(char *user, char *pass, char *serv_response)
 {
@@ -134,9 +129,9 @@ void become_logged_in(char *user, char *pass, char *serv_response)
 }
 
 
-/** 
- * \brief Login Checks
- * the logics to detect invalid passwords not to get on citservers nerves
+/* 
+ * Login Checks
+ * the logic to detect invalid passwords not to get on citservers nerves
  */
 void do_login(void)
 {
@@ -197,8 +192,9 @@ void do_login(void)
 
 }
 
-/**
- * \brief display the user a welcome screen. 
+/*
+ * display the user a welcome screen.
+ *
  * if this is the first time login, and the web based setup is enabled, 
  * lead the user through the setup routines
  */
@@ -243,7 +239,7 @@ void do_welcome(void)
        }
 #endif
 
-       /**
+       /*
         * Go to the user's preferred start page
         */
        get_preference("startpage", buf, sizeof buf);
@@ -258,7 +254,7 @@ void do_welcome(void)
 }
 
 
-/**
+/*
  * Disconnect from the Citadel server, and end this WebCit session
  */
 void end_webcit_session(void) {
@@ -275,7 +271,7 @@ void end_webcit_session(void) {
        /* close() of citadel socket will be done by do_housekeeping() */
 }
 
-/** 
+/* 
  * execute the logout
  */
 void do_logout(void)
@@ -327,7 +323,7 @@ void do_logout(void)
 }
 
 
-/* *
+/*
  * validate new users
  */
 void validate(void)
@@ -346,7 +342,7 @@ void validate(void)
 
        wprintf("<div id=\"content\" class=\"service\">\n");
 
-       /** If the user just submitted a validation, process it... */
+       /* If the user just submitted a validation, process it... */
        safestrncpy(buf, bstr("user"), sizeof buf);
        if (!IsEmptyStr(buf)) {
                if (havebstr("axlevel")) {
@@ -358,7 +354,7 @@ void validate(void)
                }
        }
 
-       /** Now see if any more users require validation. */
+       /* Now see if any more users require validation. */
        serv_puts("GNUR");
        serv_getln(buf, sizeof buf);
        if (buf[0] == '2') {
@@ -429,11 +425,11 @@ void validate(void)
 
 
 
-/** 
- * \brief Display form for registration.
+/*
+ * Display form for registration.
+ *
  * (Set during_login to 1 if this registration is being performed during
  * new user login and will require chaining to the proper screen.)
- * \param during_login are we just in the login phase?
  */
 void display_reg(int during_login)
 {
@@ -464,7 +460,7 @@ void display_reg(int during_login)
 
 
 
-/*
+/*
  * display form for changing your password
  */
 void display_changepw(void)
@@ -512,8 +508,8 @@ void display_changepw(void)
        wDumpContent(1);
 }
 
-/**
- * \brief change password
+/*
+ * change password
  * if passwords match, propagate it to citserver.
  */
 void changepw(void)
@@ -559,7 +555,3 @@ void changepw(void)
                display_changepw();
        }
 }
-
-
-
-/** @} */
index e9c87ab0d6e2509d1fdd38479831207750527677..327b98c6d3cec92a8895e4eb370a787c8e12e890 100644 (file)
@@ -1,16 +1,13 @@
 /*
  * $Id$
- *//**
- * \defgroup AjaxAutoCompletion ajax-powered autocompletion...
- * \ingroup ClientPower
+ *
+ * ajax-powered autocompletion...
  */
 
-/*@{*/
 #include "webcit.h"
 
-/**
- * \brief Recipient autocompletion results
- * \param partial the account to search for ??????
+/*
+ * Recipient autocompletion results
  */
 void recp_autocomplete(char *partial) {
        char buf[1024];
@@ -46,6 +43,3 @@ void recp_autocomplete(char *partial) {
        wprintf("\r\n\r\n");
        wDumpContent(0);
 }
-
-
-/** @} */
index 249859128d6aed57343b39c146a56950687e17ac..f2b4cdbe766a65875f52931c9fa9f6df1596865d 100644 (file)
@@ -8,10 +8,7 @@
 #include "webserver.h"
 
 /*
- * \brief verify users avaiability
- * Utility function to fetch a VFREEBUSY type of thing for
- * any specified user.
- * \param who string of the user to search
+ * Utility function to fetch a VFREEBUSY type of thing for any specified user.
  */
 icalcomponent *get_freebusy_for_user(char *who) {
        char buf[SIZ];
@@ -38,16 +35,13 @@ icalcomponent *get_freebusy_for_user(char *who) {
 }
 
 
-/**
- * \brief Check if dates are overlapping
+/*
  * Check to see if two events overlap.  
  * (This function is used in both Citadel and WebCit.  If you change it in
- * one place, change it in the other.  Better yet, put it in a library.)
- * \param t1start date one start
- * \param t1end  date one end
- * \param t2start date one start
- * \param t2end date two end
- * \returns nonzero if they do.
+ * one place, change it in the other.  We should seriously consider moving
+ * this function upstream into libical.)
+ *
+ * Returns nonzero if they do overlap.
  */
 int ical_ctdl_is_overlap(
                        struct icaltimetype t1start,
@@ -59,7 +53,7 @@ int ical_ctdl_is_overlap(
        if (icaltime_is_null_time(t1start)) return(0);
        if (icaltime_is_null_time(t2start)) return(0);
 
-       /** First, check for all-day events */
+       /* First, check for all-day events */
        if (t1start.is_date) {
                if (!icaltime_compare_date_only(t1start, t2start)) {
                        return(1);
@@ -87,21 +81,21 @@ int ical_ctdl_is_overlap(
                t2start.hour, t2start.minute, t2end.hour, t2end.minute);
        */
 
-       /** Now check for overlaps using date *and* time. */
+       /* Now check for overlaps using date *and* time. */
 
-       /** First, bail out if either event 1 or event 2 is missing end time. */
+       /* First, bail out if either event 1 or event 2 is missing end time. */
        if (icaltime_is_null_time(t1end)) return(0);
        if (icaltime_is_null_time(t2end)) return(0);
 
-       /** If event 1 ends before event 2 starts, we're in the clear. */
+       /* If event 1 ends before event 2 starts, we're in the clear. */
        if (icaltime_compare(t1end, t2start) <= 0) return(0);
        // lprintf(9, "first passed\n");
 
-       /** If event 2 ends before event 1 starts, we're also ok. */
+       /* If event 2 ends before event 1 starts, we're also ok. */
        if (icaltime_compare(t2end, t1start) <= 0) return(0);
        // lprintf(9, "second passed\n");
 
-       /** Otherwise, they overlap. */
+       /* Otherwise, they overlap. */
        return(1);
 }
 
index 00bc0c932ed452bc66b9ec9f0b805e68aa390a8e..2f7dc1fc979cb5daf5a8b02fd9481de17194e752 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl $Id$
-AC_INIT([WebCit], [7.34], [http://www.citadel.org/])
+AC_INIT([WebCit], [7.35], [http://www.citadel.org/])
 
 AC_SUBST(PROG_SUBDIRS)
 AC_DEFINE(PROG_SUBDIRS, [], [Program dirs])
index c9215c9abb6eb24420c38621c0b9cd681c74b240..515d9b6989dadfda5af3878caf0b8c90a399f28c 100644 (file)
@@ -124,7 +124,7 @@ extern locale_t wc_locales[];
 #define PORT_NUM               2000            /* port number to listen on */
 #define DEVELOPER_ID           0
 #define CLIENT_ID              4
-#define CLIENT_VERSION         734             /* This version of WebCit */
+#define CLIENT_VERSION         735             /* This version of WebCit */
 #define MINIMUM_CIT_VERSION    730             /* min required Citadel ver */
 #define        LIBCITADEL_MIN          109             /* min required libcitadel ver */
 #define DEFAULT_HOST           "localhost"     /* Default Citadel server */