View | Details | Raw Unified
Collapse All | Expand All

(-)kmail/searchjob.cpp.orig (-3 / +4 lines)
 Lines 110-124    Link Here 
110
    bool accept = true;
110
    bool accept = true;
111
    QString result;
111
    QString result;
112
    QString field = (*it)->field();
112
    QString field = (*it)->field();
113
    result = "CHARSET UTF-8 ";
113
    // check if the operation is supported
114
    // check if the operation is supported
114
    if ( (*it)->function() == KMSearchRule::FuncContainsNot ) {
115
    if ( (*it)->function() == KMSearchRule::FuncContainsNot ) {
115
      result = "NOT ";
116
      result += "NOT ";
116
    } else if ( (*it)->function() == KMSearchRule::FuncIsGreater &&
117
    } else if ( (*it)->function() == KMSearchRule::FuncIsGreater &&
117
              (*it)->field() == "<size>" ) {
118
              (*it)->field() == "<size>" ) {
118
      result = "LARGER ";
119
      result += "LARGER ";
119
    } else if ( (*it)->function() == KMSearchRule::FuncIsLess &&
120
    } else if ( (*it)->function() == KMSearchRule::FuncIsLess &&
120
              (*it)->field() == "<size>" ) {
121
              (*it)->field() == "<size>" ) {
121
      result = "SMALLER ";
122
      result += "SMALLER ";
122
    } else if ( (*it)->function() != KMSearchRule::FuncContains ) {
123
    } else if ( (*it)->function() != KMSearchRule::FuncContains ) {
123
      // can't be handled by imap
124
      // can't be handled by imap
124
      accept = false;
125
      accept = false;