[kopano-migration-pst] Imported e-mails not visible
-
I’ve made an export from a IMAP-account in Outlook 2016 to a PST-file. This file was imported to Kopano with “kopano-migration-pst”. Now the imported folders are visible in Outlook, but the e-mails aren’t visible. When using the WebApp, I can see the folders AND the e-mails. The strange thing is, is that the folders don’t have a folder-icon. The properties of the folders are showing “Folder with IPF.Imap Items”. How can I fix this?
-
Hi @Nortepe85 ,
I am afraid we would need to have more information about your system before coming to a conclusion.
Which version of Kopano are you using?
On what os?
What do you mean with “aren’t visible”? Can you share a screenshot?
How did you connect Outlook? (IMAP, ActiveSync, …)I would say that since the mails are displayed in WebApp the folder class probably has no influence. I think our support has a script to fix these folder classes, so if you have a valid subscription you could open a support case to request the script.
-
Actually that script is available for everyone on our stash https://stash.kopano.io/projects/KSC/repos/core-tools/browse/ipf-imap-to-note
-
I tried this Script today to convert via PST file imported IMAP mails.
Unfortunately the script throws an error:
“IndentationError: unexpected indent” on Line 12.
As i’m not familar with python i have no clue what is missing here.
Any ideas?
BR,
//entire -
@entirenet Did you copy paste the script by any chance ?
Python is very strict on the indentation part and some editors replace the spaces for tabs and this is not allowed in Python
-
Yes, i did copy and paste it. From stash first into my editor, then into vim in terminal.
I try to dowload it from stash. maybe that works better.
-
That was a good hint. Copy & Paste into pico instead of vim seems to work better.
Now i get another error, that kopano module is missing…
Traceback (most recent call last):
File “ipf-imap-to-note.py”, line 6, in <module>
import kopano
ImportError: No module named kopano -
@entirenet said in [kopano-migration-pst] Imported e-mails not visible:
ImportError: No module named kopano
you would need to run the script on a system where the kopano packages are installed (or install at least python-kopano with its dependencies)
@entirenet said in [kopano-migration-pst] Imported e-mails not visible:
Copy & Paste into pico instead of vim seems to work better.
I would not recommend to use c&p here at all. The file is in a public git repository so the best course of action would be to clone to repo to your machine. if you do not want to clone it (e.g. because of disk space shortage and no installed git binary) you could download the “raw” file from bitbucket. For this view there is a button on the top right corner of the code display. In the case of this script it leads to https://stash.kopano.io/projects/KSC/repos/core-tools/raw/ipf-imap-to-note/ipf-imap-to-note.py?at=refs%2Fheads%2Fmaster
-
@entirenet said in [kopano-migration-pst] Imported e-mails not visible:
ImportError: No module named kopano
fixed it with “univention-install python-kopano”
Thanks a lot.
-
Still the old mails are not visible. How can i check what the script is doing or if it did something at all? I only got the output:
“Checking user store: nameofuser”
-
One step ahead. I did a kopano-fsck on the user and got this issues with unknown classes which are getting ignored:
kopano-fsck -u nameofuser -P --checkonly --all
WARNING
This tool will repair items and remove invalid items from a mailbox.
It is recommended to use this tool outside of office hours, as it may affect server performance.
Before running this program, ensure a working backup is available.To accept these terms, press <ENTER> to continue or <CTRL-C> to quit.
Enter password:
Unknown class, skipping entry “Public folders”
Ignoring folder: “TEST-HH-06 bis 01” (IPF.Note)
Ignoring folder: “TEST-HH-07” (IPF.Note)
Ignoring search folder: “Erinnerungen” (Outlook.Reminder)
Ignoring folder: “Gesendete Elemente” (IPF.Note)
Ignoring folder: “Gelöschte Elemente” (IPF.Note)
Ignoring folder: “Junk-E-Mail” (IPF.Note)
Ignoring folder: “Vorgeschlagene Kontakte” (IPF.Contact)
Ignoring folder: “Quickstep Einstellungen” (IPF.Configuration)
Ignoring folder: “Konversationseinstellungen” (IPF.Configuration)
Ignoring folder: “RSS Feeds” (IPF.Note.OutlookHomepage)
Unknown class, skipping entry “Freebusy Data”
Ignoring folder: “Junk E-Mail” (IPF.Note)
Validating folder “Aufgaben”
No entries inside folder.
Validating of folder “Aufgaben” ended
Ignoring folder: “Notizen” (IPF.StickyNote)
Ignoring folder: “Journal” (IPF.Journal)
Ignoring folder: “Entwürfe” (IPF.Note)
Validating folder “Kalender”
No entries inside folder.
Validating of folder “Kalender” ended
Validating folder “Kontakte”
No entries inside folder.
Validating of folder “Kontakte” ended
Unknown class, skipping entry “Gesendete Objekte”
Unknown class, skipping entry “Gelöschte Objekte”
Unknown class, skipping entry “Postausgang”
Unknown class, skipping entry “Posteingang”
Unknown class, skipping entry “Schedule”
Unknown class, skipping entry “Verknüpfung”
Unknown class, skipping entry “FINDER_ROOT”
Unknown class, skipping entry “IPM_VIEWS”
Unknown class, skipping entry “IPM_COMMON_VIEWS”
Unknown class, skipping entry “IPM_SUBTREE”Statistics:
IPF.Appointment
Folders: 1
Entries: 0
Problems: 0
Fixed: 0
Deleted: 0
IPF.Contact
Folders: 1
Entries: 0
Problems: 0
Fixed: 0
Deleted: 0
IPF.Task
Folders: 1
Entries: 0
Problems: 0
Fixed: 0
Deleted: 0Seems the prior executed script didn’t do as it is supposed to, or?
//entire
-
nevermind - i found an old post from @fbartels and kopano-fsck is not intended for use with mails, just contacs and appointments, taks and so on.
Anyone ideas why i only see the mails in WebApp? I might go and try the DeskApp, but in that it will work i’m sure.
//entire