/*
* $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)
{
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");
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;
}
strcpy(buf, &buf[2]);
}
/** Activate embedded URL's */
- url(buf);
+ url(buf, sizeof(buf));
escputs(buf);
wprintf("\n");