summaryrefslogtreecommitdiff
path: root/misc/kdepim3/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kdepim3/patches/patch-aa')
-rw-r--r--misc/kdepim3/patches/patch-aa46
1 files changed, 0 insertions, 46 deletions
diff --git a/misc/kdepim3/patches/patch-aa b/misc/kdepim3/patches/patch-aa
deleted file mode 100644
index 0be2651bc61..00000000000
--- a/misc/kdepim3/patches/patch-aa
+++ /dev/null
@@ -1,46 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2004/02/06 10:48:58 markd Exp $
-
---- kmail/kmfilter.cpp.orig 2003-11-30 22:49:22.000000000 +1300
-+++ kmail/kmfilter.cpp
-@@ -147,9 +147,18 @@ void KMFilter::readConfig(KConfig* confi
- // that the pattern is purified.
- mPattern.readConfig(config);
-
-- if (bPopFilter)
-+ if (bPopFilter) {
- // get the action description...
-- mAction = (KMPopFilterAction) config->readNumEntry( "action" );
-+ QString action = config->readEntry( "action" );
-+ if ( action == "down" )
-+ mAction = Down;
-+ else if ( action == "later" )
-+ mAction = Later;
-+ else if ( action == "delete" )
-+ mAction = Delete;
-+ else
-+ mAction = NoAction;
-+ }
- else {
- QStringList sets = config->readListEntry("apply-on");
- if ( sets.isEmpty() && !config->hasKey("apply-on") ) {
-@@ -210,7 +219,19 @@ void KMFilter::writeConfig(KConfig* conf
- mPattern.writeConfig(config);
-
- if (bPopFilter) {
-- config->writeEntry( "action", mAction );
-+ switch ( mAction ) {
-+ case Down:
-+ config->writeEntry( "action", "down" );
-+ break;
-+ case Later:
-+ config->writeEntry( "action", "later" );
-+ break;
-+ case Delete:
-+ config->writeEntry( "action", "delete" );
-+ break;
-+ default:
-+ config->writeEntry( "action", "" );
-+ }
- } else {
- QStringList sets;
- if ( bApplyOnInbound )