[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/kmail
From:       Ingo Klöcker <ingo.kloecker () epost ! de>
Date:       2003-03-31 23:07:45
[Download RAW message or body]

CVS commit by kloecker: 

Only change the GUI label but not the value stored in the filter configuration \
because this would break existing filters. Thanks, Marc.


  M +2 -2      kmsearchpattern.cpp   1.26
  M +1 -1      kmsearchpattern.h   1.12
  M +1 -1      kmsearchpatternedit.cpp   1.40


--- kdepim/kmail/kmsearchpattern.h  #1.11:1.12
@@ -107,5 +107,5 @@ public:
       @li <any header>: Try to match against any header field.
       @li <recipients>: Try to match against both To: and Cc: header fields.
-      @li <size in bytes>: Try to match against size of message (numerical).
+      @li <size>: Try to match against size of message (numerical).
       @li <age in days>: Try to match against age of message (numerical).
   */

--- kdepim/kmail/kmsearchpattern.cpp  #1.25:1.26
@@ -171,5 +171,5 @@ bool KMSearchRule::matches(const KMMessa
     //
     msgContents = msg->headerField("To") + msg->headerField("Cc");
-  } else if( mField == "<size in bytes>" ) {
+  } else if( mField == "<size>" ) {
     numerical = TRUE;
     numericalMsgContents = int(msg->msgLength());
@@ -289,5 +289,5 @@ bool KMSearchRule::isEmpty() const
   bool ok;
 
-  if ( mField == "<size in bytes>" || mField == "<age in days>" ) {
+  if ( mField == "<size>" || mField == "<age in days>" ) {
     ok = FALSE;
     mContents.toInt(&ok);

--- kdepim/kmail/kmsearchpatternedit.cpp  #1.39:1.40
@@ -146,5 +146,5 @@ QString KMSearchRuleWidget::ruleFieldToE
   if (i18nVal == i18n("<message>")) return QString::fromLatin1("<message>");
   if (i18nVal == i18n("<any header>")) return QString::fromLatin1("<any header>");
-  if (i18nVal == i18n("<size in bytes>")) return QString::fromLatin1("<size in \
bytes>"); +  if (i18nVal == i18n("<size in bytes>")) return \
QString::fromLatin1("<size>");  if (i18nVal == i18n("<age in days>")) return \
QString::fromLatin1("<age in days>");  return i18nVal;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic