From 261c6ce531b131e5cba28c13b212dc90ea2ecd2c Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Thu, 11 Mar 1999 01:43:19 +0000 Subject: [PATCH] did some cleanup --- mailnews/compose/tests/compose/test.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mailnews/compose/tests/compose/test.cpp b/mailnews/compose/tests/compose/test.cpp index f2ad9efddcf..90f60956ec6 100644 --- a/mailnews/compose/tests/compose/test.cpp +++ b/mailnews/compose/tests/compose/test.cpp @@ -40,7 +40,6 @@ static NS_DEFINE_CID(kMsgSendCID, NS_MSGSEND_CID); if (res == NS_OK && pMsgCompFields) { printf("We succesfully obtained a nsIMsgCompFields interface....\n"); -/* pMsgCompFields->Test(); */ /* const char * value; @@ -103,7 +102,8 @@ static NS_DEFINE_CID(kMsgSendCID, NS_MSGSEND_CID); if (res == NS_OK && pMsgCompose) { printf("We succesfully obtained a nsIMsgCompose interface....\n"); -/* pMsgCompose->Test(); */ + + pMsgCompose->CreateAndInitialize(NULL, NULL, NULL, NULL, NULL); printf("Releasing the interface now...\n"); pMsgCompose->Release(); @@ -116,14 +116,13 @@ static NS_DEFINE_CID(kMsgSendCID, NS_MSGSEND_CID); if (res == NS_OK && pMsgSend) { printf("We succesfully obtained a nsIMsgSend interface....\n"); -/* pMsgSend->Test(); */ res = nsComponentManager::CreateInstance(kMsgCompFieldsCID, NULL, kIMsgCompFieldsIID, (void **) &pMsgCompFields); if (res == NS_OK && pMsgCompFields) { - pMsgCompFields->SetFrom("qatest02@netscape.com", NULL); + pMsgCompFields->SetFrom(", qatest02@netscape.com, ", NULL); pMsgCompFields->SetTo("qatest02@netscape.com", NULL); pMsgCompFields->SetSubject("[spam] test", NULL); pMsgCompFields->SetBody("Sample message sent with Mozilla\n\nPlease do not reply, thanks\n\nJean-Francois\n", NULL);