After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 646646 - [pst-import] Incomplete and folder-incorrect import of pst file
[pst-import] Incomplete and folder-incorrect import of pst file
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Plugins
2.30.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-plugin-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2011-04-03 19:11 UTC by soren
Modified: 2011-08-03 09:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (3.27 KB, patch)
2011-08-03 09:46 UTC, Milan Crha
committed Details | Review

Description soren 2011-04-03 19:11:53 UTC
When importing messages from a a Microsoft Outlook .pst file, if there are sub folders in a folder, then the messages in the sub folders (ie. Inbox/Personal) will be imported, and placed in the correct sub folder. However, the messages that exist along with the sub folders are skipped (ie. All the mail items in inbox that are not in a sub folder). This applies to messages in subsequent sub folders too.
Comment 1 Milan Crha 2011-05-16 15:51:15 UTC
Thanks for a bug report. I'm not sure if I understand this. I suppose your .pst file has structure like this:
   main_folder
     msg1
     msg2
     sub_folder1
        msg3
        msg4
     subfolder2
        msg5
        msg6

Then you import this file into, say On This Computer/existing_folder, which has, before the import this content:
   On This Computer
      existing_folder
         msg1
         subfolder2
            msg6
            msg7

Thus subfolder2, msg1 and msg6 has same names (Subject in messages), in both .pst file and the actual destination.

What you describe is that after the import there will be imported all (6) messages from the .pst file except of those two which are matching messages in the destination by the subject. Am I right? Because I've a feeling that the import always creates also that root "main_folder", thus the clash on names might not happen.
Comment 2 Fabio Durán Verdugo 2011-06-29 03:48:38 UTC
soren, can you reply the comment 1 ? Thank!
Comment 3 soren 2011-06-29 07:47:48 UTC
Let me do an example of my own:

(1 main folder, 4 sub folders and 10 messages)

main_folder
    msg 1
    msg 2
    msg 3
    sub_folder 4
        msg 4.1
        msg 4.2
        sub_folder 4.3
            msg 4.3.1
            msg 4.3.2
            sub_folder 4.3.3
                msg 4.3.3.1
        sub_folder 4.4
            msg 4.4.1
            msg 4.4.2

what would be imported would be:

(1 main folder, 4 sub folders and 3 messages - 7 messages omitted)

main_folder
    sub_folder_4
        sub_folder_4.3
            sub_folder_4.3.3
                msg_4.3.3.1
        sub_folder_4.4
            msg_4.4.1
            msg_4.4.2

msg 1 - msg 3 - omitted: exist alongside sub_folder 4, which is created
msg 4.1 & msg_4.2 omitted: exist alongside sub_folders 4.3 & 4.4, which are created
msg 4.3.1 & 4.3.2 omitted: exist alongside sub_folder 4.3.3 which is created
msg 4.3.3.1 imported
msg 4.4.1 imported
msg 4.4.2 imported
Comment 4 soren 2011-06-29 07:50:05 UTC
Actually the summary describes the problem quite eloquently
Comment 5 Milan Crha 2011-06-29 08:28:25 UTC
(In reply to comment #3)
> msg 1 - msg 3 - omitted: exist alongside sub_folder 4, which is created
> msg 4.1 & msg_4.2 omitted: exist alongside sub_folders 4.3 & 4.4, which are
> created
> msg 4.3.1 & 4.3.2 omitted: exist alongside sub_folder 4.3.3 which is created
> msg 4.3.3.1 imported
> msg 4.4.1 imported
> msg 4.4.2 imported

How can they exist there? It's a different folder, then it should be a different message, and even if it was a copy of any message from any other folder, then because it's still in another folder, then it should be treated as a new message. About that is your bug report, I know.

Is it possible to get a testing pst file with some spam messages attached here for testing, please?
Comment 6 Milan Crha 2011-06-29 08:39:41 UTC
I checked changes between your 2.30.x and the actual git master (before 3.1.3) in the pst plugin and nothing seems to be related, thus I'm also wondering whether latest pst library wouldn't fix this inside of it, because I do not see any duplicity checking in the pst-import plugin in evolution itself.
Comment 7 Akhil Laddha 2011-08-03 05:17:54 UTC
I just tried with Outlook 2010 pst and i see the problem in Evolution 3.1.5.

What i have in pst
Inbox
  messages_inbox
     subfolder
       messages_subfolder
          subfolder2
            messages_subfolder2
              subfolder3
                messages_subfolder3

After importing in Evolution under On this computer, i see all folders but i see messages only in subfolder3, those messages were not actually part of subfolder3. After import, subfolder3 contains messages of other folders as well but i had 26 messages in total including all folders before import as per outlook and now i see only 9 messages in Evolution.
Comment 8 Milan Crha 2011-08-03 09:46:07 UTC
Created attachment 193149 [details] [review]
evo patch

for evolution;

With Akhil's help I found an issue. The folder parsing was not correct, and when moving upward in folder hierarchy, then the opened folder wasn't changed, thus the import was done into previously used folder, if any. Also, meeting invitation mails were ignored, thus that is fixed too.
Comment 9 Milan Crha 2011-08-03 09:50:20 UTC
Created commit 1000762 in evo master (3.1.5+)
Created commit 5ab040b in evo gnome-3-0 (3.0.3+)