if ((name.IsEmpty() && m_isMail) || (!ExcludeFolderClass( name))) {
if ((name.IsEmpty() && m_isMail) || (!ExcludeFolderClass(name.GetUnicode()))) {
BOOL CGetStoreFoldersIter::HandleHierarchyItem( ULONG oType, ULONG cb, LPENTRYID pEntry){	if (oType == MAPI_FOLDER) {		LPMAPIFOLDER pFolder;		if (m_pApi->OpenEntry( cb, pEntry, (LPUNKNOWN *) &pFolder)) {			LPSPropValue		pVal;			nsCString			name;			pVal = m_pApi->GetMapiProperty( pFolder, PR_CONTAINER_CLASS);			if (pVal)				m_pApi->GetStringFromProp( pVal, name);			else				name.Truncate();			if ((name.IsEmpty() && m_isMail) || (!ExcludeFolderClass( name))) {				pVal = m_pApi->GetMapiProperty( pFolder, PR_DISPLAY_NAME);				m_pApi->GetStringFromProp( pVal, name);				CMapiFolder	*pNewFolder = new CMapiFolder( name, cb, pEntry, m_depth);				m_pList->AddItem( pNewFolder);								pVal = m_pApi->GetMapiProperty( pFolder, PR_FOLDER_TYPE);				MAPI_TRACE2( "Type: %d, name: %s\n", m_pApi->GetLongFromProp( pVal), (const char *)name);				// m_pApi->ListProperties( pFolder);							CGetStoreFoldersIter	nextIter( m_pApi, *m_pList, m_depth + 1, m_isMail);				m_pApi->IterateHierarchy( &nextIter, pFolder);			}			pFolder->Release();		}		else {			MAPI_TRACE0( "GetStoreFolders - HandleHierarchyItem: Error opening folder entry.\n");			return( FALSE);		}	}	else {		MAPI_TRACE1( "GetStoreFolders - HandleHierarchyItem: Unhandled ObjectType: %ld\n", oType);	}	return( TRUE);}