* Removed some old, commented-out code
authorArt Cancro <ajc@citadel.org>
Tue, 10 Feb 2009 03:59:41 +0000 (03:59 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 10 Feb 2009 03:59:41 +0000 (03:59 +0000)
webcit/groupdav_propfind.c

index c0f702f4a560361a9a3e235b57cafe8911c2a14e..f225eb8f1732a648804c81d43db82d4fa68c2d3d 100644 (file)
@@ -30,28 +30,15 @@ long locate_message_by_uid(const char *uid) {
        char decoded_uid[1024];
        long retval = (-1L);
 
-       /* Decode the uid */
+       /* decode the UID */
        euid_unescapize(decoded_uid, uid);
 
-/**************  THE NEW WAY ***********************/
+       /* ask Citadel if we have this one */
        serv_printf("EUID %s", decoded_uid);
        serv_getln(buf, sizeof buf);
        if (buf[0] == '2') {
                retval = atol(&buf[4]);
        }
-/***************************************************/
-
-/**************  THE OLD WAY ***********************
-       serv_puts("MSGS ALL|0|1");
-       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);
-               }
-       }
- ***************************************************/
 
        return(retval);
 }