fix some incompletely transformed reply strings; thanks gcov & imaptest
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 8 Nov 2010 20:44:29 +0000 (21:44 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 8 Nov 2010 20:44:29 +0000 (21:44 +0100)
citadel/modules/imap/imap_misc.c
citadel/modules/imap/imap_tools.h
citadel/modules/imap/serv_imap.c

index 500c2dc6a39876f049fc070f0d606c7b91038c4c..d62f487fa635ecb993f31f7ff553d355b20ab419 100644 (file)
@@ -212,7 +212,7 @@ void imap_copy(int num_parms, ConstStr *Params) {
                IAPuts("COPY completed\r\n");
        }
        else {
-               IReplyPrintf("NO COPY failed (error %d)\r\n", ret);
+               IReplyPrintf("NO COPY failed (error %d)", ret);
        }
 }
 
@@ -414,7 +414,7 @@ void imap_append(int num_parms, ConstStr *Params) {
                                     GLOBAL_UIDVALIDITY_VALUE, new_msgnum);
                }
                else {
-                       IReplyPrintf("BAD Error %ld saving message to disk.\r\n",
+                       IReplyPrintf("BAD Error %ld saving message to disk.",
                                     new_msgnum);
                }
        }
index 52afbacbc482a261b9d8c6dd7bccb361cd5e75f3..e5b785088820b8c79822d8131c3d8118224dacf9 100644 (file)
@@ -34,9 +34,6 @@ int imap_mailbox_matches_pattern(const char *pattern, char *mailboxname);
 int imap_datecmp(const char *datestr, time_t msgtime);
 
 
-
-
-
 /* Imap Append Printf, send to the outbuffer */
 void IAPrintf(const char *Format, ...);
 
@@ -57,9 +54,4 @@ void IPutStr(const char *Msg, long Len);
 #define IPutCStr(_ConstStr) IPutStr(CKEY(_ConstStr))
 #define IPutCParamStr(n) IPutStr(CKEY(Params[n]))
 
-/*
-void plain_imap_strout(char *buf)
-void imap_strout(ConstStr *args)
-*/
-
-
+void IUnbuffer (void);
index 753396213d9b5a3f8ea0997f5ff1b574c82ec55a..959dec8826bbceda054a0669423cd65d49e80142 100644 (file)
@@ -637,7 +637,7 @@ void imap_login(int num_parms, ConstStr *Params)
                        }
                        else
                        {
-                               IReplyPrintf("NO AUTHENTICATE %s failed\r\n",
+                               IReplyPrintf("NO AUTHENTICATE %s failed",
                                             Params[3].Key);
                        }
                }
@@ -1046,7 +1046,7 @@ void imap_create(int num_parms, ConstStr *Params)
 
        if (flags & IR_MAILBOX) {
                if (strncasecmp(Params[2].Key, "INBOX/", 6)) {
-                       IReply("%s NO Personal folders must be created under INBOX");
+                       IReply("NO Personal folders must be created under INBOX");
                        CtdlLogPrintf(CTDL_DEBUG, "not subordinate to inbox\n");
                        return;
                }
@@ -1068,7 +1068,7 @@ void imap_create(int num_parms, ConstStr *Params)
                /*** DO NOT CHANGE THIS ERROR MESSAGE IN ANY WAY!  BYNARI CONNECTOR DEPENDS ON IT! ***/
                IReply("NO Mailbox already exists, or create failed");
        } else {
-               IReply("%s OK CREATE completed");
+               IReply("OK CREATE completed");
                /* post a message in Aide> describing the new room */
                notification_message = malloc(1024);
                snprintf(notification_message, 1024,