Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv7670/src/modules
Modified Files:
Filters.cpp
Log Message:
Whitelist now searches subgroups too
Index: Filters.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/Filters.cpp,v
retrieving revision 1.168
retrieving revision 1.169
diff -b -u -2 -r1.168 -r1.169
--- Filters.cpp 16 Oct 2003 15:15:46 -0000 1.168
+++ Filters.cpp 16 Oct 2003 15:56:00 -0000 1.169
@@ -2344,25 +2344,18 @@
manager->Unget();
- wxArrayString names;
- book->GetEntryNames(names);
-
- bool found = false;
for( Address *candidate = parser->GetFirst(); candidate;
candidate = parser->GetNext(candidate) )
{
- for( size_t each = 0; each < names.GetCount(); ++each )
+ if( !candidate->GetDomain().empty() )
{
- RefCounter<AdbEntry> entry(book->GetEntry(names[each]));
-
- // FIXME: Grammar without escape sequences
- if( entry->Matches(String(_T("*@"))+candidate->GetDomain(),
+ if( book->Matches(String(_T("*@"))+candidate->GetDomain(),
AdbLookup_EMail,AdbLookup_Match) )
{
- found = true;
+ return true;
}
}
}
- return !found;
+ return false;
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates