]> code.citadel.org Git - citadel.git/blobdiff - webcit/serv_func.c
* migrated SUBST stuff to hash
[citadel.git] / webcit / serv_func.c
index 12c349dd875e18162b0750ae0280ed0fd655c52b..fed2011020372d934d32963f258f2be2198c49b4 100644 (file)
@@ -1,21 +1,17 @@
 /*
  * $Id$
  */
-/**
- * \defgroup ServFuncs Handles various types of data transfer operations with the Citadel service.
- * \ingroup CitadelCommunitacion
- */
 
-/*@{*/ 
 #include "webcit.h"
 #include "webserver.h"
 
 struct serv_info serv_info; /**< our connection data to the server */
-
-/**
- * \brief get info about the server we've connected to
- * \param browser_host the citadell we want to connect to
- * \param user_agent which browser uses our client?
+HashList *ServHash = NULL;//// TODO;
+/*
+ * get info about the server we've connected to
+ *
+ * browser_host                the citadell we want to connect to
+ * user_agent          which browser uses our client?
  */
 void get_serv_info(char *browser_host, char *user_agent)
 {
@@ -36,15 +32,13 @@ void get_serv_info(char *browser_host, char *user_agent)
        serv_puts("MSGP text/html|text/plain");
        serv_getln(buf, sizeof buf);
 
-#ifdef WEBCIT_WITH_CALENDAR_SERVICE
-       /**
+       /*
         * Tell the server that when we save a calendar event, we
         * want invitations to be generated by the Citadel server
         * instead of by the client.
         */
        serv_puts("ICAL sgi|1");
        serv_getln(buf, sizeof buf);
-#endif
 
        /** Now ask the server to tell us a little bit about itself... */
        serv_puts("INFO");
@@ -92,6 +86,15 @@ void get_serv_info(char *browser_host, char *user_agent)
                case 16:
                        safestrncpy(serv_info.serv_default_cal_zone, buf, sizeof serv_info.serv_default_cal_zone);
                        break;
+               case 20:
+                       serv_info.serv_supports_sieve = atoi(buf);
+                       break;
+               case 21:
+                       serv_info.serv_fulltext_enabled = atoi(buf);
+                       break;
+               case 22:
+                       safestrncpy(serv_info.serv_svn_revision, buf, sizeof serv_info.serv_svn_revision);
+                       break;
                }
                ++a;
        }
@@ -133,7 +136,7 @@ void fmout(char *align)
                        strcpy(buf, &buf[2]);
                }
                /** Activate embedded URL's */
-               url(buf);
+               url(buf, sizeof(buf));
 
                escputs(buf);
                wprintf("\n");