The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
Mail panel corruption
While working with Opera this afternoon, something went badly wrong with my Mail panel.- I can set up the panel to show just the sections I want, but whenever I restart Opera I get three unwanted sections re-appearing above "All Messages".
- The "Feeds" panel doesn't show any feeds, even though the RSS posts are there in the mail store, and are visible when I right-click on the Feeds panel header and select "Read Feeds".
It looks like a problem with index.ini in my mail store folder, but I can't easily see what needs to be changed to fix it.
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
But this gets lost, and all my hidden Mail panel sections re-appear when I re-start Opera...
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
I plan to see if I can work out what the index.ini should look like (I have a copy from a few weeks ago). One obvious difference is that the "category" numbers have changed.
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
Also, download the Opera installer and installer Opera over the top of itself (upgrade to the same version) to make sure Opera's program files are right.
You can close down Opera and delete autosave.win in the sessions folder too. You might want to switch to "Opera Standard" under "ctrl + F12 -> advanced -> toolbars" to rule that out.
You can close down Opera and rename operaprefs.ini to Opera creates a new one to see if that fixes anything. If not, you can put the old one back.
Make sure you're using the "Opera Standard" skin under "shift + f12 -> skins".
You can use the "standalone installation" option in the installer to install to a folder on your desktop. Then, you can replace its mail folder with a *copy* of yours to see if you can reproduce the problem with that Opera. If you can, then the problem is definitely in the mail folder. If not, I'd look for other causes. (Mail problems aren't always with the mail folder, so it's sometimes good to check.)
Fixed the problem by copying an older copy of index.ini over the top of the corrupted one. Now working fine again, only required sections of the Mail panel in view, and all my feeds are back. And this also survives Opera re-starting. Very odd!
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
In addition to the above, I can make no changes to the Mail Panel at all. Anything I change gets reverted back when I load it new, including when I create new labels.
Sooo... I don't have a backup, so I don't have any older index.ini file. That means I'm screwed?
I guess i'll try running a new fresh install right over itself, fingers crossed...
I cannot find any autosave.win file, nor any "sessions" folder. Is this supposed to be inside the Opera folder?
>You can close down Opera and rename operaprefs.ini to Opera creates a new one to see if that fixes anything. If not, you can put the old one back.
I only see a file called operaprefs_default.ini in the Opera directory. I also have a file called "operadef6.ini". I can see a file operaprefs.ini in the folder "Custom->Defaults".
This is all very odd...
Very odd. Fine for a few days, and then this corruption happened again for no apparent reason when I restarted Opera around lunchtime today.The index.ini is in the mail folder. That's certainly the file that gets corrupted.
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
Originally posted by Moooooon:
Where do I find that index.ini file in the Opera installation?
opera:about shows you where everything is at.
It's pretty big, about 2.5 MB. How big is yours, fonant? Just curious, but are you using Windows XP by chance as well (I am).
I managed to open the ini file in UltraEdit and it opened fine, and I don't see anything corrupt about it, to be honest...
Originally posted by burnout426:
Originally posted by Moooooon:
Where do I find that index.ini file in the Opera installation?
opera:about shows you where everything is at.
Awesome, thanks!! I knew I had seen this someplace before, and then you always forget looking in the most obvious place
Originally posted by Moooooon:
I managed to find that file finally in an odd place under "Documents and Settings"/[username]/Local Settings/Application Data.
If you mean "Opera/Opera/Mail" in that application data folder, then that's not a weird place at all. That application data folder is where programs store local-only data.
Originally posted by Moooooon:
Care to elaborate what you mean with "yes"?
Originally posted by burnout426:
You can close down Opera and delete autosave.win in the sessions folder
I dunno, but it seems to be not reading some sort of ini file correctly, I think fonant may be on the right track here...?
Originally posted by Moooooon:
but do you have any idea why the path points to autopera.win and not autosave.win?
That's just the default "user hasn't changed it yet" value for opera:config#Automatic%20Window%20Storage%20File, which isn't honored if you change it I hear. I forget whether it used to be called autoopera.win a long time ago and then just never changed the string or if they plan on changing the actually filename used in the future. Wouldn't worry about it.
Originally posted by Moooooon:
I dunno, but it seems to be not reading some sort of ini file correctly, I think fonant may be on the right track here...?
Yeh, sounds like an index.ini problem for you too. But, since it happened to fontant again, there might be something else that's triggering the corruption of index.ini. Starting with a completely new mail folder should rule that out, unless it's some external program that's interfering with Opera. Just want to stress that this isn't a common problem.
Since it seems that I am not alone in this and fonant has pretty much the same problem since a few days (which is when I first noticed it, as well), then this probably points at some underlying issue in Opera itself? It would seem way too much coincidence to be just a random corruption for it to happen to two guys (that we know of so far) at nearly the same time with basically the same symptoms.30. September 2011, 23:37:06 (edited)
Originally posted by Moooooon:
OK, then I won't. What I worry about is that my Opera Mail is still seriously borked, I can't make any changes to the Mail panel, my RSS feeds and all Labels are gone Since it seems that I am not alone in this and fonant has pretty much the same problem since a few days (which is when I first noticed it, as well), then this probably points at some underlying issue in Opera itself? It would seem way too much coincidence to be just a random corruption for it to happen to two guys (that we know of so far) at nearly the same time with basically the same symptoms.
If you want to figure out what's wrong, you'll need to upload index.ini to your file space and link to it here. If we don't find anything wrong with it, then we'll need a copy of your mail folder (minus the files in the store folder would be fine and minus the lexicon folder, but still need everything else). If you're not willing to do that then it's hard for us to do anything except give you ideas to try. But, we'll need to know more about your setup like where Opera is installed, was it installed as an admin, are you running as an admin, what version of Opera, how long you've been upgrading, what service pack you have for winxp, what security software you have installed and anything else that you have installed that might be interfering with Opera reading/writing the files. And, has Opera or the computer crashed lately? Have you seen windows ask to run chkdsk etc.?
But, unless it's something simple, the damage is already done and there won't be a way to fix it. Even if it's a bug in Opera and a newer version has a fix for the bug, there's less than a 1% chance that it could repair an already-messed-up mail folder. But, you could use the "standalone installation" option in the 12.x installer at <http://my.opera.com/desktopteam/blog/> and replace its mail folder with a *copy* of yours to see what happens. Maybe it will fix things as there were some upgrade issues with index.ini a couple of versions back.
I did a standalone installation of Opera just now. Works fine.
I then copied my /mail folder into it, and I am seeing the exact same behavior as I am seeing in my main Opera installation - mail panel loads in a certain way and refuses to accept any changes I make to it, and the feeds and labels are gone.
Now, I don't think that any permanent damage has been done, because the information is, as far as I can tell, still in my mail folder. Opera is just not loading it right.
There are no problems with running as admin or anything because I am using Windows XP. This may be just a hunch, but something tells me that this could be part of the problem, i.e. something about permissions and the whole Vista/W7 admin crap.
I have reported my issues via the Bug Wizard to the developer team, and that includes all the info there is about my system, plugins etc.
No crashes, no chkdsk or anything. I did upgrade AVG free edition to the 2012 version recently, yes, but I doubt that has anything to do with it, because the standalone installation of Opera does work without my mail stuff in it.
>Maybe it will fix things as there were some upgrade issues with index.ini a couple of versions back.
Well, that is interesting, of course, especially since fonant seemed to have some success with copying an older index.ini. So this means that we need someone to figure out what is wrong with my index.ini. Is it supposed to be 2.5 MB in size? Can I simply remove some index entries from it and see what happens?
[Indexer]
[Categories]
(Spam Filter]
[Category 0]
[Category 1]
...
[Category 028]
and then a bunch of entries for "Index". One odd thing is that the first two entries appear to be out of order. They appear like this:
[Index 5078]
[Index 5079]
[Index 1]
[Index 2]
[Index 3]
...
all the way up to
[Index 5067], which is the last entry.
Some of these Index entries seem to be for my own email addresses as they have my email address listed under "Name=", others seem to be related to my mail folders, as they have the name of the mail folder under "name=" (such as "Received" etc.) But there are many indexes (well, thousands!) that list somebody else's email address (presumably someone who emailed me).
Are these some sort of searches that I had run at some point or another? Can I simply delete them?
Originally posted by Moooooon:
and then a bunch of entries for "Index". One odd thing is that the first two entries appear to be out of order
While Opera is closed, try moving them after index 5067 so they're in the right order. Make a copy of index.ini first. Maybe the out-of-orderness messes with parsing index.ini.
Originally posted by Moooooon:
Some of these Index entries seem to be for my own email addresses
For each contact in contacts.adr in the preferences folder, you'll get an index in index.ini because contacts are views too (like labels with a rule to search for the email address). This should all work fine. However, when you export your contacts, an m2indexid line will show up for each contact in the exported file. If you did this and imported the abook into a version of Opera before 11.10, would have generated indexes with numbers from those m2indexid options where those indexids with be valid according to Opera's indexer. This would result in contact views showing form wherever and you would have to open and close the properties of each contact to fix it. Or, export your address book, delete all your contacts and import them via the method listed in the "backup contacts" section at <http://operawiki.info/ImportFromBadMailFolder>. That's fixed now, but if you've been upgrading for a while, you could have hit that bug a while ago.
But, that wouldn't normally put the indexes out of order. However, if you imported your contacts with < 11.10 *before* setting up mail that had a fresh mail folder, it might mess things up. Or, if you used an old contacts.adr that was tied to an old mail folder with a new mail folder, that might have messed things up.
However, if that was the case, you probably would have noticed the problem a long time ago. But, maybe a recent upgrade to 11.51 (which might do some upgrades to index.ini) or a resetting of the mail panel to its defaults might have caused Opera to get confused with the indexes (the out of order ones). But, that's a big guess.
Are 5078 and 5079 indexes for contacts?
You should be able to delete them if they are. But, if you do, you have to decrement the index count at the top of index.ini to match the new number of indexes. But, it's better to delete contacts from the UI.
If those out-of-order indexes are for something else, try to find out what.
Finally, use the "standalone installation" option in the Opera installer to install to a folder on your desktop. Then, setup a dummy account and maybe some feeds etc. You can then use that as a reference to check some parent Ids (but not much else).
For example, the Unread view is usually:
[Index 1] Name=Unread Id=1 Parent Id=1600000000
But, also look at the category sections in your original index.ini. Some of them might have visible=0 instead of visible=1.
Stuff you can play with if you want.
Originally posted by Moooooon:
we both run Windows XP.
It's a possibility that it has to do with just WinXP, but I wouldn't assume so just yet.
Originally posted by Moooooon:
Uploading my index.ini file or mail folder here won't do it because I don't want that, and also because it's too large.
Yeh, this is always an issue with troubleshooting mail problems. Users don't want to (or can't) give up their mail folder. I don't blame them one bit, but it's always worth trying.
The mail database is 140+ MB. Perhaps that's part of the problem, not sure.
The size alone says nothing either way.
Originally posted by Moooooon:
I did a standalone installation of Opera just now. Works fine.
I then copied my /mail folder into it, and I am seeing the exact same behavior as I am seeing in my main Opera installation - mail panel loads in a certain way and refuses to accept any changes I make to it, and the feeds and labels are gone.
O.K., so it's definitely the mail folder. (Already assumed, but nice to know for sure.)
Originally posted by Moooooon:
Now, I don't think that any permanent damage has been done, because the information is, as far as I can tell, still in my mail folder. Opera is just not loading it right.
Yeh, sounds like it.
Originally posted by Moooooon:
There are no problems with running as admin or anything because I am using Windows XP. This may be just a hunch, but something tells me that this could be part of the problem, i.e. something about permissions and the whole Vista/W7 admin crap.
Well, whether you're running WinXP, Vista or Win7, you should be running Opera as a limited user and not as an admin. Running the installer as an admin to install for all users is O.K. But, once Opera is installed, you should log out of the admin account and log on to your limited user account to run Opera. Then, you might only run Opera again as admin to update it. But, you can also just run the Opera installer as your limited user and install the Opera program files to "%userprofile%\My Program Files\Opera" so that Opera is only installed for your limited account and so it upgrades just fine without admin access. But, I asked as it's always good to know whether the user is doing that or incorrectly running Opera as an admin. It's also good to know if WinXP users for example mistakenly installed Opera using the single profile option (hidden in command-line switching in the installer now) so that the profile folder is incorrectly located at "C:\Program Files\Opera\profile" where only admins have write access to it. If you do something like this on Win7, Opera will virtualize the writes to a folder in your user space, which can get goofy and mess things up.
So, from that I see that you're running as an admin, have Opera installed to "C:\Program Files\Opera", but you're using the proper local and roaming profile locations under application data. With that setup, you shouldn't have any read/write access problems. But, it's always good to check the permissions on the mail folder and all of its files.
Originally posted by Moooooon:
No crashes, no chkdsk or anything. I did upgrade AVG free edition to the 2012 version recently, yes, but I doubt that has anything to do with it, because the standalone installation of Opera does work without my mail stuff in it.
Anti-virus software is known to mess with mail clients. Usually though, it's just the email scanner that messes with things. But, it is possible that anti-virus can interfere (and has happened before). There's just no proof that this was the cause in this case.
Originally posted by Moooooon:
Well, that is interesting, of course, especially since fonant seemed to have some success with copying an older index.ini. So this means that we need someone to figure out what is wrong with my index.ini. Is it supposed to be 2.5 MB in size?
The size depends on how many views, labels (and their rules), contacts and followed threads you have. So, it could be big or small. The size itself doesn't really help.
Can I simply remove some index entries from it and see what happens?
See my previous post.
I'm running Vista x64, with 6G of RAM.
File index.ini is 2.43Mbytes in size.
When it gets corrupted, the feeds that disappear also have their [Index] sections disappear completely from index.ini
The corrupted index.ini has [Index 5000] and above, the non-corrupted one goes up to [Index 4985], just less than 5000 items.
In the OK index.ini, the [Index] sections are in numerical order, while in the corrupted one some of the 5000+ ones appear early in the file.
I'm feeling that there might be a 4999 item limit on the number of [Index] entries, perhaps? So all is well until I add a new Contact or RSS feed, and then it breaks.
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
If my index.ini file has 5000 or fewer [Index] entries, all is well.
If I have an [Index 5000] and I add a new label, to make [Index 5001], the index.ini file is saved when I close Opera with that [Index 5001] included. But when I re-open Opera I lose one of my feeds, and when Opera is closed the largest index is 5000.
Restoring an earlier index.ini restores the feeds and labels, so it might be possible to recover from this corruption by looking at the database and/or stored files on disk.
Let me know if you'd like some obfuscated index.ini files (with the Contact email addresses removed).
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
Originally posted by fonant:
The corrupted index.ini has [Index 5000] and above
I think that's fixed in Opera 12.x. Let me double-check the changelogs.
Originally posted by Moooooon:
Are 5078 and 5079 indexes for contacts?
You're probably running into the same thing.
Now my contacts list is empty, however, but I guess that's because simply deleting a bunch of indexes in the middle doesn't solve all the problems :-)
I can see my contacts in my main Opera install. Perhaps I should simply start deleting them to reduce the size of index.ini? What do you think?
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
I am wondering though if deleting contacts to get them below 5000, and then running a new install of Opera 11.51 on top of the existing install might not fix the indexes... hmmm...
- Close Opera
- Open index.ini
- Delete contacts (Type=0) that you don't recognize, or don't want to keep as contacts.
- Re-start Opera
- When you close Opera again, you'll see that the index.ini has renumbered, and with any luck the Index count will be below 5000.
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
==== Logging started ====
20/09-2011 10:08:00 Ghostbuster
Started
20/09-2011 10:08:22 Ghostbuster
Finished: Deleted 0 ghosts from the following indexes:(null)
I assume this is part of that maintenance that Opera sometimes wants to do (apparently, looking at the log entries, once a month). Is there a way to force Opera to do this maintenance (rather than having to wait until October 20th)?
Originally posted by Moooooon:
opera:config and under Mail there is an entry for Database Consistency Check
You have to set it to 0, save and restart and choose ok to run it when Opera closes. Then, it'll take a bit. But, that won't fix stuff in index.ini.
Originally posted by Moooooon:
Yup, you're right, it didn't fix anything. So I'm still out a working Mail Panel
If you close down Opera, delete a bunch of index you don't want, change all the index numbers so that they're consecutive all the way through and then update the index count to reflect, it'll probably fix it.
For example, if you have:
[Indexer] Index Count=10 [Index 1] [Index 2] [Index 3] [Index 4] [Index 5] [Index 6] [Index 7] [Index 8] [Index 9] [Index 10]
and delete indexes 3, 4 and 5, you'd change index 6 to 3, 7 to 4, 8 to 5, 9 to 6 and 10 to 7. Then, you'd update index count to 7.
Obviously, you have a lot more indexes to fix and rename. But, doing that may get you way below the 5000 mark and allow you to create new labels. Just not sure if that'll make Opera use the next available index number when you create a new label or contact or if it'll still try to use a number above 5000. Something you can try though.
"Doesn't quite fix it for me. On my standalone install, I did what you describe already before. After doing so, my Mail Panel accepts changes again, but my contacts are empty, my Feeds and Labels aren't back either, and I still see high numbered indexes (5000+) at the beginning of that list rather than at the end after closing Opera (this happens even after I move them manually to the end of the file)."
So while I was able to generate a new label and save it (as the mail panel layout), it's not fixed entirely.
Nevertheless, I just ran another attempt, this time renumbering and changing the Index Count. In addition to renumbering the Indexes to close the gap created by deleting a couple hundred of them, I also renumbered the 5000+ index numbers that appear in my ini in front of [Index 1] all the time (even if I move them to the end of the file manually, I might add).
The result:
I cannot see any difference between this approach with renumbering them vs. what I did previously. My mail panel accepts and saves changes, but I don't see my Feeds and previous Labels.
Moreover, opening Index.ini, it appears that the 5000+ indexes I had renumbered are gone entirely. It's a little hard to say for sure, because I still have 4800 or so indexes in the ini. I also don't see any obvious entries missing from the Mail Panel itself (like email addresses that I may have deleted or something like that).
But again, the old labels and feeds remain gone. That despite the fact that I think I can see them in the "autofilter" and "newsfeed" folders.
I think the labels access point for me is "category 7" with an id of 1600000004.
I think the feeds access point for me is "category 12" with an id of 1000000005.
They both have visible=1 and the parentIDs of my labels and feeds match those ids. (Feeds in folders obviously have the parentId set to the id of the parent folder and nested labels have their parentId set to the parent label's id).
So, you've already tried most of that, but you can try the above too. If those categories are missing, you might try creating them with those ids (or specifically use the id in the parentId setting for your labels as feeds) to see if you can then see your feeds.
But, if nothing helps, then you'll have to wait to the 5000 limit bug if fixed to see if that fixes things for you. And, if it doesn't, you'll just have to start over from scratch with a build that has the fix. While it's interesting to try and fix your current setup, it sounds like things are pretty much hosed.

The "5000 index bug" seems to be a pretty severe shortcoming (especially since mail accounts seem to be created by default with the "Add contacts option on"), so I would really hope that the devs come out with a fix. I've been a great supporter of Opera since version 8 and converted a whole bunch of people to it, never really encountering any issues with it until now, but this would shake my foundations in the product quite a bit.
[Category 1]
[Category 2]
...
[Category 28]
But my entry called [Categories] looks like this:
[Categories]
Category 0 open=0
Category 0 unread=0
Category 1 open=0
Category 1 unread=0
Category 2 open=0
Category 2 unread=0
Category 3 open=0
Category 3 unread=0
Category 4 open=0
Category 4 unread=0
Category 5 open=0
Category 5 unread=0
Category 6 open=0
Category 6 unread=0
Category 7 open=0
Category 7 unread=0
Category 8 open=0
Category 8 unread=0
Category 9 open=0
Category 9 unread=0
Category 1400000002 open=0
Category 1400000002 unread=0
Category 1400000005 open=0
Category 1400000007 open=0
Category 1400000007 unread=0
Category 1400000009 open=0
Category 1400000009 unread=0
Category 1400000008 open=256
Category 1400000001 open=0
Category 1400000001 unread=0
Category 1400000003 open=8
Category 1400000006 unread=0
Category 1400000000 open=1
Category 1400000006 open=64
Category 1400000004 unread=0
Category 1400000008 unread=0
Category 1400000000 unread=1
Category 1400000005 unread=0
Category 1400000004 open=0
Category 1400000003 unread=0
That doesn't looks right, does it?
Originally posted by Moooooon:
That doesn't looks right, does it?
I checked my 11.51 build and even it doesn't look like that. It might have been like that in some pre 11.51 snapshot or just in previous versions in general. Don't remember. It being like that might be a result of index.ini being upgraded from the old way. Don't know.
For ones that don't have their own category, you could try to convert them to the :
[Category 0] id=1000000001 open=1 unread=1 visible=1
format. (Try with a copy of your mail folder or copy of index.ini at least just in case it hoses things more.)
Then, you could delete the "[Categories]" section. I don't have that at all.
Unless I counted wrong, the number of entries under [Categories] corresponds to the number of [Category 1]...[Category 28] entries below it. So I'm not sure if there are any "missing", they just seem to be mis-numbered.
I'll experiment and see what happens when I simply delete that whole entry...
I guess I am starting to figure out how this whole index.ini file is working. That's the good news. The bad news seem to be that it merely reflects the broken state that it is in, and I would have to rebuild the whole thing from scratch to get things back to how they used to be :-(
My feeds seem to have the Id of 1000000003. I also see a reference to File=folder_1000000003.idx under that Index entry. But I cannot find that folder. Do you know where it is supposed to be?
My labels seem to have the Id of 1600000004. I can see the test label that I created in the Index. It also includes a reference to folder_200000030.idx. Again, I don't know where that folder is supposed to be, any ideas?
Perhaps in order to get my old feeds and labels back, I would need to figure out if the old idx files are still somewhere, and instead link to those???
But really, I'm losing hope that I'll be able to fix this myself. Looks like this Opera bug has cost me dearly this time
Originally posted by Moooooon:
My feeds seem to have the Id of 1000000003. I also see a reference to File=folder_1000000003.idx under that Index entry. But I cannot find that folder. Do you know where it is supposed to be?
I think it refers to the feed_id file in the feeds folder. But, I think it should be File=newsfeed_1200000001.idx for example for feeds and not "folder". But, it might just point to something in the indexer/database.
Originally posted by Moooooon:
My labels seem to have the Id of 1600000004. I can see the test label that I created in the Index. It also includes a reference to folder_200000030.idx.
I think that points to something in the indexer/database.
Is there a way to vote "+1" on bugs, to say "this is hurting me too!"?
Quality websites, with the help of Opera
www.numberlinelane.co.uk
Teaching and learning maths through stories
Forums » Opera for Windows/Mac/Linux » Opera mail, chat and news