Summary: | Filtering threads by regular expression in the headers does not work | ||
---|---|---|---|
Product: | knode | Reporter: | Roie Kerstein <roie.kerstein> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.8.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Roie Kerstein
2004-11-22 23:27:10 UTC
Which header did you try to filter? This works only with headers provided by the server when getting the article list (subject, from, date, xref, ...). Subject I'm unable to reproduce this, could you maybe post the regexp that didn't work? Never mind, I found it. I'll commit a fix soon. CVS commit by vkrause: Matching on position 0 is okay too, only negative values mean no match. BUG: 93756 M +1 -1 knstringfilter.cpp 1.22 --- kdepim/knode/knstringfilter.cpp #1.21:1.22 @@ -47,5 +47,5 @@ bool KNStringFilter::doFilter(const QStr if(regExp) { QRegExp matcher(expanded); - ret=(matcher.search(s) > 0); + ret = ( matcher.search(s) >= 0 ); } else ret=(s.find(expanded,0,false)!=-1); |