Opera Mail - Crash - no message available - when try restart - error to reinicialize

  • Opera Mail has worked fine for over a year on my Macbook Pro.
    Today, suddenly, the messages I clicked over was not displayed. The messages on the tabs, I had opened before, did not appear when clicked on it, a blank (gray) screen without any information was showed.
    I tried to restart Opera Mail and the following message appear (the original message was in Portuguese and I translate it to English to show below):
    "An error occurred while initializing the Opera Mail.
    Failed to open the following file:
    /User/juninho-mbp/Library/Application Support/Opera Mail/mail/omailbase.dat

    Restart the system and try again. If don't work, recover from a backup source may be required. If this is not possible or does not work, report the error in http://bugs.opera.com/wizard/ and seek the help forums for this problem."

    I tried to find the "omailbase.dat" on the path informed and the file did not exist on it.
    Tried to restart again and again. After this two restarts Opera Mail open, but my messages disappeared. New messages on server was synchronized, but the old ones do not. I use an IMAP server.

    Can anyone help?
    Many thanks for your advice...

  • If you just use IMAP, you can close down Opera and rename the "mail" folder. See "help -> about Opera" for the location. Then, start Opera Mail back up and add your IMAP account in (do not import anything).

    If you feeds, export your feeds list first via "Menu -> settings -> import and export". If you have contacts, export them too.

    If you have POP, add them back (do not import). Then, for any POP messages that you want to get back but are no longer on the server, you can import them using "Menu -> settings -> import and export -> import mail -> import generic mbox -> add folder". You point it to the "store/accountN" folder in the renamed mail folder where N is the number for the POP account as seen in accounts.ini (search for the email address to find out what account is what). Then, choose to import into the existing POP account you already set up. Then, for any duplicates, delete the read, imported copies and keep the unread, synced-from server copies.

    Then, import your contacts and feeds list.

    Also, while Opera is closed, look in operaprefs.ini (see help -> about Opera for the location) and make sure there's no "Mail Root Directory" line under the [Mail] section so that Opera uses the default mail folder path. Or, if you have your mail folder in a non-standard place, make sure the path for Mail Root Directory is correct.

  • Dear burnout426,

    Thank you for your help, but I have some questions:

    1. If I import (renaming the "mail" folder) the messages from my IMAP server, will I lost all my tags, rules, ...? Is there any backup or export process I can do to preserve these information?

    2. My time machine backup is from a month ago (stupid backup, no comments please), may I import files from it to try to recover the last "usable" "omailbase.dat" and any other important Opera Mail file? Which other files are important to recover? Preserving my tags, rules and the messages downloaded until that date and organized with my presets, it can work fine?

    3. I have a lot of messages, since 2006, if I will download all from the IMAP server it will take a long time to be done. May this crash could be caused by the amount of messages? I use only 2 accounts on Opera Mail, despite I have more accounts I access with Apple Mail and directly from the browser.

    Many thanks again for your advice...

  • If I import (renaming the "mail" folder) the messages from my IMAP server, will I lost all my tags, rules

    Yes, you'll lose all your Opera labels and their rules and the messages that were in them.

    Is there any backup or export process I can do to preserve these information?

    Not really. However, the labels and their rules are defined in index.ini in the "mail" folder. You can use a text editor to copy them from the old index.ini to the new one. But, before you paste them into the new index.ini, you need to change their index numbers to follow after the last index in the new index.ini. For example, if the last index in index.ini is 1234, you'll want to renumber the indexes you're going to paste (starting with 1235). Then, at the top of the new index.ini, you'll need to update the index count to reflect the new total number of indexes. You do this all while Opera is closed.

    That will restore you labels and their rules and settings. However, for any messages that you manually added to the labels, you'll have to manually add them again. And, if Opera doesn't rerun the rules for the labels, go into each label's properties and change a setting (or add a non-matching rule), close out, go back in and revert the setting (remove the non-matching rule).

    For any labels that have "learn from labelled messages" set, their learned rules won't be restored. They'll have to relearn all over again. You can try copying over the "autofilter" folder to the new mail folder to see if that helps.

    Now, if you make use of IMAP keywords upon encountering a message with an IMAP keyword set on it, Opera will automatically create a label with the name of that keyword (and set the name of the keyword as the keyword in the label's properties) if a label (with the same name or not) hasn't already been created with that keyword set in its properties. Messages with the keyword will automatically show up in the label.

    My time machine backup is from a month ago (stupid backup, no comments please), may I import files from it to try to recover the last "usable" "omailbase.dat" and any other important Opera Mail file? Which other files are important to recover? Preserving my tags, rules and the messages downloaded until that date and organized with my presets, it can work fine?

    You can replace the whole "mail" folder, contacts.adr and "wand.dat" with the month-old backup. When you start Opera back up, it'll just sync the changes. This will only work right with IMAP accounts.

    It wouldn't be wise to just restore omailbase.dat unless you have a backup from a few minutes before the crash.

    I have a lot of messages, since 2006, if I will download all from the IMAP server it will take a long time to be done.

    By default, Opera will only sync the headers for all your messages. The body of each message won't be downloaded until you open the message. So, you're fine unless you have "make all messages available offline" set on the "incoming" tab in the account's properties. But, do indeed use that option if you want all your messages cached in full on your hard drive. Don't use "low-bandwidth" mode or "do not download attachments" settings with IMAP.

    May this crash could be caused by the amount of messages?

    Highly unlikely.

  • My time machine backup is from a month ago (stupid backup, no comments please), may I import files from it to try to recover the last "usable" "omailbase.dat" and any other important Opera Mail file? Which other files are important to recover? Preserving my tags, rules and the messages downloaded until that date and organized with my presets, it can work fine?

    You can replace the whole "mail" folder, contacts.adr and "wand.dat" with the month-old backup. When you start Opera back up, it'll just sync the changes. This will only work right with IMAP accounts.
    It wouldn't be wise to just restore omailbase.dat unless you have a backup from a few minutes before the crash.

    @burnout426, I will try this option. Recover my backup and replace the files/folders you suggested.

    May this crash could be caused by the amount of messages?

    Highly unlikely.

    Have you any guess?

    I identified another problem, may be needed to create a new thread, but I will ask here, if no problem. When I start Opera Mail, some tabs I had opened some months ago, appear again. In really, there are 3 tabs that are opened when I start Opera Mail, 2 are received messages and the third one is a new message window. It was happening a long time. Even after closing the tabs and restart Opera Mail the same tabs appear again.

    Any advice? Thank you.

  • When I start Opera Mail, some tabs I had opened some months ago, appear again.

    Close down Opera delete autosave.win. It's in the "sessions" folder in the preferences folder. You can also rename operaprefs.ini if the former doesn't help.

  • @burnout426, I followed your tips and all work fine.
    Thank you!

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.