is version 6.61.
$Id$
+Wed Oct 26 16:19:24 EDT 2005 ajc
+* Bumped internal version number to 6.31. Minimum Citadel server required
+ is version 6.61.
+
Wed Oct 26 12:09:20 EDT 2005 ajc
* webcit.c: msgesc() no longer inserts backslashes before every single-quote
appearing in the quoted or forwarded message.
icalcomponent *ical_encapsulate_subcomponent(icalcomponent *subcomp) {
icalcomponent *encaps;
- lprintf(9, "ical_encapsulate_subcomponent() called\n");
+ /* lprintf(9, "ical_encapsulate_subcomponent() called\n"); */
if (subcomp == NULL) {
lprintf(3, "ERROR: called with NULL argument!\n");
* don't bother ... just return itself.
*/
if (icalcomponent_isa(subcomp) == ICAL_VCALENDAR_COMPONENT) {
- lprintf(9, "Already encapsulated. Returning itself.\n");
return subcomp;
}
/* Encapsulate the VEVENT component into a complete VCALENDAR */
encaps = icalcomponent_new(ICAL_VCALENDAR_COMPONENT);
if (encaps == NULL) {
- lprintf(3, "Error at %s:%d - could not allocate component!\n",
+ lprintf(3, "%s:%d: Error - could not allocate component!\n",
__FILE__, __LINE__);
return NULL;
}
icalcomponent_add_property(encaps, icalproperty_new_version("2.0"));
/* Encapsulate the subcomponent inside */
- lprintf(9, "Doing the encapsulation\n");
+ /* lprintf(9, "Doing the encapsulation\n"); */
icalcomponent_add_component(encaps, subcomp);
/* Convert all timestamps to UTC so we don't have to deal with
extract_token(dav_roomname, dav_pathname, 2, '/', sizeof dav_roomname);
extract_token(dav_uid, dav_pathname, 3, '/', sizeof dav_uid);
+ /*
lprintf(9, "dav_pathname: %s\n", dav_pathname);
lprintf(9, "dav_roomname: %s\n", dav_roomname);
lprintf(9, " dav_uid: %s\n", dav_uid);
+ */
/*
* If the room name is blank, the client is requesting a
* version, so we fail...
*/
if (strlen(dav_ifmatch) > 0) {
- lprintf(9, "dav_ifmatch: %s\n", dav_ifmatch);
old_msgnum = locate_message_by_uid(dav_uid);
- lprintf(9, "old_msgnum: %ld\n", old_msgnum);
if (atol(dav_ifmatch) != old_msgnum) {
wprintf("HTTP/1.1 412 Precondition Failed\r\n");
lprintf(9, "HTTP/1.1 412 Precondition Failed (ifmatch=%ld, old_msgnum=%ld)\r\n",
) {
ic = iconv_open("UTF-8", charset);
if (ic == (iconv_t)(-1) ) {
- lprintf(5, "%s:%d iconv_open() failed: %s\n", __FILE__, __LINE__, strerror(errno));
+ lprintf(5, "%s:%d iconv_open() failed: %s\n",
+ __FILE__, __LINE__, strerror(errno));
}
}
if (ic != (iconv_t)(-1) ) {
}
safestrncpy(&reply_all[strlen(reply_all)], &buf[5],
(sizeof reply_all - strlen(reply_all)) );
- lprintf(9, "REPLY_ALL: %s\n", reply_all); // FIXME
}
if ((!strncasecmp(buf, "hnod=", 5))
&& (strcasecmp(&buf[5], serv_info.serv_humannode))) {
) {
ic = iconv_open("UTF-8", mime_charset);
if (ic == (iconv_t)(-1) ) {
- lprintf(5, "%s:%d iconv_open(UTF-8, %s) failed: %s\n", __FILE__, __LINE__, mime_charset, strerror(errno));
+ lprintf(5, "%s:%d iconv_open(UTF-8, %s) failed: %s\n",
+ __FILE__, __LINE__, mime_charset, strerror(errno));
}
}
#endif
) {
ic = iconv_open("UTF-8", mime_charset);
if (ic == (iconv_t)(-1) ) {
- lprintf(5, "%s:%d iconv_open() failed: %s\n", __FILE__, __LINE__, strerror(errno));
+ lprintf(5, "%s:%d iconv_open() failed: %s\n",
+ __FILE__, __LINE__, strerror(errno));
}
}
#endif
serv_puts("MSGS ALL");
serv_getln(buf, sizeof buf);
- lprintf(9, "%s:%d fetching msgnums\n", __FILE__, __LINE__);
if (buf[0] == '1') while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
ptr = malloc(sizeof(struct stuff_t));
ptr->msgnum = atol(buf);
if (!strcasecmp(bstr(buf), "yes")) {
if (delete_button_pressed) {
- lprintf(9, "%s:%d move %d\n", __FILE__, __LINE__, stuff->msgnum);
serv_printf("MOVE %ld|_TRASH_|0", stuff->msgnum);
serv_getln(buf, sizeof buf);
- lprintf(9, "%s:%d %s\n", __FILE__, __LINE__, buf);
}
}
free(stuff);
stuff = ptr;
}
- lprintf(9, "%s:%d done, moving on...\n", __FILE__, __LINE__);
readloop("readfwd");
}
if (strcasecmp(charset, "us-ascii") && strcasecmp(charset, "utf-8") && strcasecmp(charset, "") ) {
ic = iconv_open("UTF-8", charset);
if (ic == (iconv_t)(-1)) {
- lprintf(5, "%s:%d iconv_open() failed: %s\n", __FILE__, __LINE__, strerror(errno));
+ lprintf(5, "%s:%d iconv_open() failed: %s\n",
+ __FILE__, __LINE__, strerror(errno));
goto ENDBODY;
}
}
#define SLEEPING 180 /* TCP connection timeout */
#define WEBCIT_TIMEOUT 900 /* WebCit session timeout */
#define PORT_NUM 2000 /* port number to listen on */
-#define SERVER "WebCit v6.30" /* who's in da house */
+#define SERVER "WebCit v6.31" /* who's in da house */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
-#define CLIENT_VERSION 630 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 661 /* min required Citadel vers */
+#define CLIENT_VERSION 631 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 661 /* min required Citadel ver. */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
#define LB (1) /* Internal escape chars */