From 1b2e24ee69c8dff6cdba91b0dea51566f3b5f554 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Fri, 16 Apr 1999 02:00:32 +0000 Subject: [PATCH] add debug info for line parser --- mailnews/imap/src/nsImapProtocol.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mailnews/imap/src/nsImapProtocol.cpp b/mailnews/imap/src/nsImapProtocol.cpp index de65e9bd9015..37b3f25abe21 100644 --- a/mailnews/imap/src/nsImapProtocol.cpp +++ b/mailnews/imap/src/nsImapProtocol.cpp @@ -2564,7 +2564,7 @@ void nsImapProtocol::FolderMsgDumpLoop(PRUint32 *msgUids, PRUint32 msgCount, nsI PRUint32 msgsDownloaded = 0; do { - nsString2 idString; + nsString2 idString(eOneByte); PRUint32 msgsToDownload = (msgCountLeft > 200) ? 200 : msgCountLeft; AllocateImapUidString(msgUids + msgsDownloaded, msgsToDownload, idString); // 20 * 200 @@ -3096,6 +3096,9 @@ char * nsImapProtocol::ReadNextLineFromInput(char * aDataBuffer, PRUint32 aDataB nsCRT::memcpy(aDataBuffer, endOfLine, PL_strlen(endOfLine)); aDataBuffer[PL_strlen(endOfLine)] = '\0'; } +#ifdef DEBUG_bienvenu + printf("read next line: %s\n", newLine); +#endif return newLine; } else // we were unable to extract the next line and we now need to wait for data!