summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdepim/kdepim-3.4.0-use-point-kmail.patch
diff options
context:
space:
mode:
authorTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
committerTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
commit76ef832ce5348d12a871223d4c034c7daeaddb82 (patch)
tree7024a1f39a6114daa8c5ed24bb31a8687c832b9a /mandriva/2010.2/kdepim/kdepim-3.4.0-use-point-kmail.patch
parentec2515f058c60d2478a549f58376db628ba556b9 (diff)
downloadtde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.tar.gz
tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.zip
Adding the remaining Mandriva patches and spec files
Diffstat (limited to 'mandriva/2010.2/kdepim/kdepim-3.4.0-use-point-kmail.patch')
-rw-r--r--mandriva/2010.2/kdepim/kdepim-3.4.0-use-point-kmail.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/mandriva/2010.2/kdepim/kdepim-3.4.0-use-point-kmail.patch b/mandriva/2010.2/kdepim/kdepim-3.4.0-use-point-kmail.patch
new file mode 100644
index 000000000..4503f4a3f
--- /dev/null
+++ b/mandriva/2010.2/kdepim/kdepim-3.4.0-use-point-kmail.patch
@@ -0,0 +1,31 @@
+--- kdepim-3.4.0/kmail/kmkernel.cpp-- 2005-04-07 10:46:16.522963291 -0400
++++ kdepim-3.4.0/kmail/kmkernel.cpp 2005-04-07 10:58:04.836316900 -0400
+@@ -1069,6 +1069,7 @@ void KMKernel::init()
+ cfg->writeEntry("previous-version", KMAIL_VERSION);
+ TQString foldersPath = cfg->readPathEntry( "folders" );
+ kdDebug(5006) << k_funcinfo << "foldersPath (from config): '" << foldersPath << "'" << endl;
++ bool migrateMail = true;
+
+ if ( foldersPath.isEmpty() ) {
+ foldersPath = localDataPath() + "mail";
+@@ -1369,6 +1370,20 @@ bool KMKernel::transferMail( QString & d
+ }
+
+ if ( dir.isEmpty() ) {
++ // check whether the user has a ~/.Mail folder
++ fi.setFile( TQDir::home(), ".Mail" );
++ if ( fi.exists() && fi.isDir() &&
++ TQFile::exists( TQDir::homeDirPath() + "/.Mail/.inbox.index" ) ) {
++ // there's a ~/Mail folder which seems to be used by KMail (because of the
++ // index file)
++ dir = TQDir::homeDirPath() + "/.Mail";
++ // the following two lines can be removed once moving mail is reactivated
++ destinationDir = dir;
++ return true;
++ }
++ }
++
++ if ( dir.isEmpty() ) {
+ return true; // there's no old mail folder
+ }
+