зеркало из https://github.com/mozilla/pjs.git
part of mailnews audit --> Conversion to NS_WITH_SERVICE
quiet some noisy printfs which were printing out the message we were sending.
This commit is contained in:
Родитель
2ce724a62a
Коммит
eee271f9d1
|
@ -377,10 +377,6 @@ nsresult nsMsgSendMimeDeliveryState::SendMessage(nsIMsgCompFields *fields, const
|
|||
else
|
||||
nBodyLength = 0;
|
||||
|
||||
printf("SendMessage to: %s\n", ((nsMsgCompFields *)fields)->GetTo());
|
||||
printf("subject: %s\n", ((nsMsgCompFields *)fields)->GetSubject());
|
||||
printf("\n%s", pBody);
|
||||
|
||||
StartMessageDelivery(NULL, NULL, (nsMsgCompFields *)fields, PR_FALSE, PR_FALSE,
|
||||
MSG_DeliverNow, TEXT_PLAIN, pBody, nBodyLength, 0, NULL, NULL, NULL);
|
||||
}
|
||||
|
@ -3215,8 +3211,10 @@ static char * mime_generate_headers (nsMsgCompFields *fields,
|
|||
PUSH_NEWLINE ();
|
||||
}
|
||||
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
NS_WITH_SERVICE(nsINetService, pNetService, kNetServiceCID, &rv);
|
||||
|
||||
if (NS_SUCCEEDED(rv) && pNetService)
|
||||
{
|
||||
nsString aNSStr;
|
||||
|
@ -3637,9 +3635,9 @@ int MIME_GenerateMailtoFormPostHeaders (const char *old_post_url,
|
|||
if (!subject_p)
|
||||
{
|
||||
char* sAppName = nsnull;
|
||||
nsresult rv = NS_OK;
|
||||
NS_WITH_SERVICE(nsINetService, pNetService, kNetServiceCID, &rv);
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
NS_WITH_SERVICE(nsINetService, pNetService, kNetServiceCID, &rv);
|
||||
if (NS_SUCCEEDED(rv) && pNetService)
|
||||
{
|
||||
nsString aNSStr;
|
||||
|
@ -4976,9 +4974,7 @@ void nsMsgSendMimeDeliveryState::DeliverFileAsMail ()
|
|||
nsresult rv = NS_OK;
|
||||
NS_WITH_SERVICE(nsISmtpService, smtpService, kSmtpServiceCID, &rv);
|
||||
if (NS_SUCCEEDED(rv) && smtpService)
|
||||
{
|
||||
rv = smtpService->SendMailMessage(filePath, buf, nsnull, nsnull);
|
||||
}
|
||||
|
||||
PR_FREEIF(buf); // free the buf because we are done with it....
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче