did some cleanup

This commit is contained in:
ducarroz%netscape.com 1999-03-11 01:43:19 +00:00
parent fe246e2f84
commit 15f6c18ed9

View File

@ -40,7 +40,6 @@ static NS_DEFINE_CID(kMsgSendCID, NS_MSGSEND_CID);
if (res == NS_OK && pMsgCompFields) { if (res == NS_OK && pMsgCompFields) {
printf("We succesfully obtained a nsIMsgCompFields interface....\n"); printf("We succesfully obtained a nsIMsgCompFields interface....\n");
/* pMsgCompFields->Test(); */
/* /*
const char * value; const char * value;
@ -103,7 +102,8 @@ static NS_DEFINE_CID(kMsgSendCID, NS_MSGSEND_CID);
if (res == NS_OK && pMsgCompose) { if (res == NS_OK && pMsgCompose) {
printf("We succesfully obtained a nsIMsgCompose interface....\n"); printf("We succesfully obtained a nsIMsgCompose interface....\n");
/* pMsgCompose->Test(); */
pMsgCompose->CreateAndInitialize(NULL, NULL, NULL, NULL, NULL);
printf("Releasing the interface now...\n"); printf("Releasing the interface now...\n");
pMsgCompose->Release(); pMsgCompose->Release();
@ -116,14 +116,13 @@ static NS_DEFINE_CID(kMsgSendCID, NS_MSGSEND_CID);
if (res == NS_OK && pMsgSend) { if (res == NS_OK && pMsgSend) {
printf("We succesfully obtained a nsIMsgSend interface....\n"); printf("We succesfully obtained a nsIMsgSend interface....\n");
/* pMsgSend->Test(); */
res = nsComponentManager::CreateInstance(kMsgCompFieldsCID, res = nsComponentManager::CreateInstance(kMsgCompFieldsCID,
NULL, NULL,
kIMsgCompFieldsIID, kIMsgCompFieldsIID,
(void **) &pMsgCompFields); (void **) &pMsgCompFields);
if (res == NS_OK && 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->SetTo("qatest02@netscape.com", NULL);
pMsgCompFields->SetSubject("[spam] test", NULL); pMsgCompFields->SetSubject("[spam] test", NULL);
pMsgCompFields->SetBody("Sample message sent with Mozilla\n\nPlease do not reply, thanks\n\nJean-Francois\n", NULL); pMsgCompFields->SetBody("Sample message sent with Mozilla\n\nPlease do not reply, thanks\n\nJean-Francois\n", NULL);