]> code.citadel.org Git - citadel.git/commitdiff
* GroupDAV locate_message_by_uid() now uses the EUID command on the Citadel
authorArt Cancro <ajc@citadel.org>
Thu, 6 Oct 2005 19:34:09 +0000 (19:34 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 6 Oct 2005 19:34:09 +0000 (19:34 +0000)
  server.  Fast fast.

webcit/ChangeLog
webcit/groupdav_propfind.c

index b53464a63213722580f01118ec1a33c777a888fd..cd8c500249656982df23fd2cc288cdd1c413dd4c 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 625.34  2005/10/06 19:34:08  ajc
+* GroupDAV locate_message_by_uid() now uses the EUID command on the Citadel
+  server.  Fast fast.
+
 Revision 625.33  2005/10/05 17:54:08  error
 * Show the ThreadSSL in the debugging logs.
 
@@ -3100,4 +3104,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 80de45b8056e8bdc8515fc081391e116f19b56cd..be3eaeb7c33540e8f0bb37b5e7305d6b846b9cef 100644 (file)
@@ -36,14 +36,10 @@ long locate_message_by_uid(char *uid) {
        /* Decode the uid */
        euid_unescapize(decoded_uid, uid);
 
-       serv_puts("MSGS ALL|0|1");
+       serv_puts("EUID %s", decoded_uid);
        serv_getln(buf, sizeof buf);
-       if (buf[0] == '8') {
-               serv_printf("exti|%s", decoded_uid);
-               serv_puts("000");
-               while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
-                       retval = atol(buf);
-               }
+       if (buf[0] == '2') {
+               retval = extract_long(&buf[4], 0);
        }
        return(retval);
 }