} else { printf("Not a pop3 server\n"); }
printIncomingServer(nsIMsgIncomingServer *server){  if (!server) return NS_ERROR_NULL_POINTER;  char *value;  nsresult rv;  value=nsnull;  rv = server->GetPrettyName(&value);  if (NS_SUCCEEDED(rv) && value) printf("\tPrettyName: %s\n", value);  value=nsnull;  rv = server->GetHostName(&value);  if (NS_SUCCEEDED(rv) && value) printf("\tHostName: %s\n", value);  value=nsnull;  rv = server->GetUserName(&value);  if (NS_SUCCEEDED(rv) && value) printf("\tUserName: %s\n", value);  value=nsnull;  rv = server->GetPassword(&value);  if (NS_SUCCEEDED(rv) && value) printf("\tPassword: %s\n", value);    /* see if it's a pop server */  nsIPop3IncomingServer *popServer=nsnull;  rv = server->QueryInterface(nsIPop3IncomingServer::GetIID(),                              (void **)&popServer);    if (NS_SUCCEEDED(rv) && popServer) {    printf("\tThis is a pop3 server!\n");    value=nsnull;    rv = popServer->GetRootFolderPath(&value);    if (NS_SUCCEEDED(rv) && value) printf("\t\tPop3 root folder path: %s\n",                                          value);      } else {    printf("Not a pop3 server\n");  }    return NS_OK;}