Bug 101622 - Kmail 1.8 does not import mails on local folders from previous versions of Kmail
Summary: Kmail 1.8 does not import mails on local folders from previous versions of Kmail
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: kmailcvt (show other bugs)
Version: 1.8
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 103950 104450 104692 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-16 15:28 UTC by Amund Sjaavaag
Modified: 2009-03-19 00:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amund Sjaavaag 2005-03-16 15:28:47 UTC
Version:           1.8 (using KDE KDE 3.4.0)
Installed from:    Unlisted Binary Package
Compiler:           I use KDE from the THACs RPMs for Mandrake 10.1.
OS:                Linux

Kmail1.8 has tools to import mails from various e-mail clients.

It is strange it does not import local folders from previous versions of Kmail.

I tried to move all files and folders from ~/.Mail to ~/.kde/share/apps/kmail/mail:
- Still, Kmail does not read old mails under the folders here, like the inbox, sent-mails folders etc. The paths is supposed to be right: kmail stores new mails in these folder, and there are new and old emails in the same folders. Kmail ignore the old emails.
- On the other side, local .mbx mails works fine.

 The imap settings from previous kmail-version still works fine.
Comment 1 Thiago Macieira 2005-03-16 16:16:27 UTC
~/.Mail was never a KMail path. But KMail does use ~/Mail on existing configurations.

What you did should have worked, for all I know.
Comment 2 Hugo Costelha 2005-03-31 16:06:25 UTC
I also think that it would be a good option. For instance, if one wants to go to a different account, or a different computer, and wants to import the e-mails from the previous account/computer.
Comment 3 Danny Kukawka 2005-04-01 09:59:21 UTC
I work on this for kmailcvt, but first kmail must be able to import mails to specific folder and subfolder.
Comment 4 Danny Kukawka 2005-04-05 20:15:13 UTC
CVS commit by dkukawka: 

- added new feature to dcopAddMessage*(), now we can import messages to
  existing subfolders or the requested folder is created

FEATURE:
CCBUGS:101622


  M +106 -20   kmkernel.cpp   1.331
  M +2 -2      kmkernel.h   1.133
Comment 5 Danny Kukawka 2005-04-05 20:21:01 UTC
CVS commit by dkukawka: 

- updated Evolution and Thunderbird filter with new feature. Now we can
  recreate the existing folder structure. The imported (sub)folders are 
  stored in a folder named e.g. 'Evolution-Import'

CCBUGS:101622
FEATURE: 


  M +10 -8     filter_evolution.cxx   1.15
  M +5 -6      filter_evolution_v2.cxx   1.13
  M +5 -6      filter_thunderbird.cxx   1.14
Comment 6 Danny Kukawka 2005-04-06 19:00:15 UTC
CVS commit by dkukawka: 

- added new import filter for import from kmail maildir to local folder
  Should work with 1.7.x and 1.8.x

CCBUGS:101622
FEATURE:


  A            filter_kmail_maildir.cxx   1.1 [GPL (v2+)]
  A            filter_kmail_maildir.hxx   1.1 [GPL (v2+)]
  M +2 -1      Makefile.am   1.30
  M +2 -0      kselfilterpage.cpp   1.14


--- kdepim/kmailcvt/Makefile.am  #1.29:1.30
@@ -5,5 +5,6 @@
                    main.cpp filter_pmail.cxx filter_plain.cxx filter_outlook.cxx \
                    filter_mbox.cxx filter_evolution.cxx filter_mailapp.cxx \
-                   filter_evolution_v2.cxx filter_opera.cxx filter_thunderbird.cxx
+                   filter_evolution_v2.cxx filter_opera.cxx filter_thunderbird.cxx \
+                   filter_kmail_maildir.cxx
                 
 kmailcvt_LDADD   = $(LIB_KFILE)

--- kdepim/kmailcvt/kselfilterpage.cpp  #1.13:1.14
@@ -32,4 +32,5 @@
 #include "filter_opera.hxx"
 #include "filter_thunderbird.hxx"
+#include "filter_kmail_maildir.hxx"
 
 #include "kselfilterpage.h"
@@ -46,4 +47,5 @@ KSelFilterPage::KSelFilterPage(QWidget *
         // Patches appreciated. (danimo)
 
+        addFilter(new FilterKMail_maildir);
         addFilter(new FilterEvolution);
         addFilter(new FilterEvolution_v2);
Comment 7 Danny Kukawka 2005-04-06 19:07:25 UTC
I implemented a importfilter for KMail maildirs. Now you can import local maildir folder and also dimap folder. Please test this from CVS.
Comment 8 Danny Kukawka 2005-04-11 02:03:47 UTC
*** Bug has been marked as fixed ***.
Comment 9 Danny Kukawka 2005-04-15 15:30:29 UTC
*** Bug 103950 has been marked as a duplicate of this bug. ***
Comment 10 Christian Lorch 2005-04-19 18:16:31 UTC
I got my mails imported via auto-mbox and KMailCVT. In the german newsgroup I got the hint to allow writing to my mailfiles. Maybe this is interesting for you to know (i copied my mails to DVD an back on harddisk as normal files and therefore the rights were setted unusual for the maildir-files!).

Thanks for kmail!
Comment 11 Danny Kukawka 2005-04-19 18:38:12 UTC
This is normal if you copy a file to DVD or CD the file is not writeable. And if you copy the file back to your harddisk you need to set them back e.g. with 'chmod 644 * -R' 
Comment 12 Danny Kukawka 2005-04-28 11:49:03 UTC
*** Bug 104450 has been marked as a duplicate of this bug. ***
Comment 13 Danny Kukawka 2005-04-28 11:54:29 UTC
*** Bug 104692 has been marked as a duplicate of this bug. ***