From 4a4096bf5d55b9ab033dee43ef40e84dbf34f666 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Oct 2023 15:22:53 +0300 Subject: YAMN: slack debug code removed --- protocols/YAMN/src/proto/pop3/pop3comm.cpp | 50 +++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'protocols/YAMN/src/proto/pop3/pop3comm.cpp') diff --git a/protocols/YAMN/src/proto/pop3/pop3comm.cpp b/protocols/YAMN/src/proto/pop3/pop3comm.cpp index c734847ff5..89c5c4e359 100644 --- a/protocols/YAMN/src/proto/pop3/pop3comm.cpp +++ b/protocols/YAMN/src/proto/pop3/pop3comm.cpp @@ -583,7 +583,7 @@ void MIR_CDECL SynchroPOP3(CheckParam *WhichTemp) TranslateHeaderFcn(Temp, MyClient->NetClient->Rcv - (Temp - DataRX), &MsgQueuePtr->MailData->TranslatedHeader); #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "\n"); #endif MsgQueuePtr->Flags |= YAMN_MSG_NORMALNEW; if (autoretr) @@ -655,7 +655,7 @@ void MIR_CDECL SynchroPOP3(CheckParam *WhichTemp) if (ActualAccount->Client.POP3Error == EPOP3_STOPPED) ActualAccount->SystemError = EACC_STOPPED; #ifdef DEBUG_COMM - DebugLog(CommFile, "ERROR: %x\n", ErrorCode); + mir_writeLogA(CommFile, "ERROR: %x\n", ErrorCode); #endif { SWriteGuard swm(ActualAccount->MessagesAccessSO); @@ -684,7 +684,7 @@ void MIR_CDECL SynchroPOP3(CheckParam *WhichTemp) } #ifdef DEBUG_COMM - DebugLog(CommFile, "\n"); + mir_writeLogA(CommFile, "\n"); #endif } @@ -743,7 +743,7 @@ void __cdecl DeleteMailsPOP3(void *param) try { SetContactStatus(ActualAccount, ID_STATUS_OCCUPIED); #ifdef DEBUG_COMM - DebugLog(CommFile, "<--------Communication-------->\n"); + mir_writeLogA(CommFile, "<--------Communication-------->\n"); #endif if ((MyClient->NetClient == nullptr) || !MyClient->NetClient->Connected()) { SetStatusFcn(ActualAccount, TranslateT("Connecting to server")); @@ -787,7 +787,7 @@ void __cdecl DeleteMailsPOP3(void *param) } #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "<--------Deleting requested mails-------->\n"); + mir_writeLogA(DecodeFile, "<--------Deleting requested mails-------->\n"); #endif if (POP3_DELETEFROMCHECK != POP3PluginParam) // We do not need to get mails on server as we have already it from check function { @@ -796,13 +796,13 @@ void __cdecl DeleteMailsPOP3(void *param) char *DataRX = MyClient->Stat(); #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "\n"); #endif ExtractStat(DataRX, &mboxsize, &msgs); #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "%d\n", mboxsize); - DebugLog(DecodeFile, "%d\n", msgs); - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "%d\n", mboxsize); + mir_writeLogA(DecodeFile, "%d\n", msgs); + mir_writeLogA(DecodeFile, "\n"); #endif if (DataRX != nullptr) free(DataRX); @@ -822,12 +822,12 @@ void __cdecl DeleteMailsPOP3(void *param) if (msgs) { #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "\n"); #endif DataRX = MyClient->Uidl(); ExtractUIDL(DataRX, MyClient->NetClient->Rcv, NewMails); #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "\n"); #endif if (DataRX != nullptr) free(DataRX); @@ -894,7 +894,7 @@ void __cdecl DeleteMailsPOP3(void *param) } #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "\n"); #endif // TODO: now, we have in NewMails new mails. If NewMails is not NULL, we found some new mails, so Checking for new mail should be performed @@ -931,7 +931,7 @@ void __cdecl DeleteMailsPOP3(void *param) if (ActualAccount->Client.POP3Error == EPOP3_STOPPED) ActualAccount->SystemError = EACC_STOPPED; #ifdef DEBUG_COMM - DebugLog(CommFile, "ERROR %x\n", ErrorCode); + mir_writeLogA(CommFile, "ERROR %x\n", ErrorCode); #endif switch (ActualAccount->SystemError) { @@ -951,7 +951,7 @@ void __cdecl DeleteMailsPOP3(void *param) DeleteMessagesToEndFcn(ActualAccount, DeleteMails); #ifdef DEBUG_COMM - DebugLog(CommFile, "\n"); + mir_writeLogA(CommFile, "\n"); #endif // WriteAccounts(); @@ -989,14 +989,14 @@ void ExtractMail(char *stream, int len, HYAMNMAIL queue) if (DOTLINE(finder + 1)) // at the end of stream break; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "\n"); #endif SkipSpaces(finder); // jump whitespace if (1 != sscanf(finder, "%d", &msgnr)) throw (uint32_t)EPOP3_UIDL; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "%d\n", msgnr); + mir_writeLogA(DecodeFile, "%d\n", msgnr); #endif SkipNonSpaces(finder); @@ -1009,8 +1009,8 @@ void ExtractMail(char *stream, int len, HYAMNMAIL queue) queueptr->MailData->Body[i] = 0; // ends string queueptr->Number = msgnr; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "%s\n", queueptr->MailData->Body); - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "%s\n", queueptr->MailData->Body); + mir_writeLogA(DecodeFile, "\n"); #endif queueptr = queueptr->Next; while (!ENDLINE(finder)) finder++; @@ -1032,13 +1032,13 @@ void ExtractUIDL(char *stream, int len, HYAMNMAIL queue) if (DOTLINE(finder + 1)) // at the end of stream break; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "\n"); #endif SkipSpaces(finder); if (1 != sscanf(finder, "%d", &msgnr)) throw (uint32_t)EPOP3_UIDL; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "%d\n", msgnr); + mir_writeLogA(DecodeFile, "%d\n", msgnr); #endif // for (i=1,queueptr=queue;(queueptr->Next != NULL) && (iNext,i++); // if (i != msgnr) @@ -1053,8 +1053,8 @@ void ExtractUIDL(char *stream, int len, HYAMNMAIL queue) queueptr->ID[i] = 0; // ends string queueptr->Number = msgnr; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "%s\n", queueptr->ID); - DebugLog(DecodeFile, "\n"); + mir_writeLogA(DecodeFile, "%s\n", queueptr->ID); + mir_writeLogA(DecodeFile, "\n"); #endif queueptr = queueptr->Next; while (!ENDLINE(finder)) finder++; @@ -1076,13 +1076,13 @@ void ExtractList(char *stream, int len, HYAMNMAIL queue) if (DOTLINE(finder + 1)) // at the end of stream break; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "\n", NULL, 0); + mir_writeLogA(DecodeFile, "\n", NULL, 0); #endif SkipSpaces(finder); if (1 != sscanf(finder, "%d", &msgnr)) // message nr. throw (uint32_t)EPOP3_LIST; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "%d\n", msgnr); + mir_writeLogA(DecodeFile, "%d\n", msgnr); #endif for (i = 1, queueptr = queue; (queueptr->Next != nullptr) && (i < msgnr); queueptr = queueptr->Next, i++); @@ -1095,7 +1095,7 @@ void ExtractList(char *stream, int len, HYAMNMAIL queue) if (1 != sscanf(finder, "%u", &queueptr->MailData->Size)) throw (uint32_t)EPOP3_LIST; #ifdef DEBUG_DECODE - DebugLog(DecodeFile, "%d\n", queueptr->MailData->Size); + mir_writeLogA(DecodeFile, "%d\n", queueptr->MailData->Size); #endif while (!ENDLINE(finder)) finder++; } -- cgit v1.2.3