File kmail-dotkde4-kconf_update.diff of Package kdepim4

Subject: Migrate configured path to kmail's data to copy in $HOME/.kde4, so kde3-kmail's data is untouched
From: wstephenson@suse.de
Patch-Upstream: no
Index: kmail/kconf_update/kmail-4.0-misc.pl
===================================================================
--- kmail/kconf_update/kmail-4.0-misc.pl	(revision 907833)
+++ kmail/kconf_update/kmail-4.0-misc.pl	(working copy)
@@ -15,6 +15,13 @@
     } elsif ( $currentGroup ne "" ) { # normal entry
 	my ($key,$value) = split /=/;
 	$configFile{$currentGroup}{$key}=$value;
+	if ( $key =~ /^folders/ ) {
+	    # migrate folder path from .kde to .kde4
+	    my $newvalue = $value;
+	    $newvalue =~ s/.kde\//.kde4\//;
+	    print "# DELETE [General]$key\n";
+	    print "[General]\n$key=$newvalue\n";
+	}
     }
 }
 
openSUSE Build Service is sponsored by