global-messages-db.sqlite corrupted when mail/message is moved from IMAP folder to local folder, search doesn't find messages
Categories
(Thunderbird :: Search, defect, P3)
Tracking
(thunderbird_esr68- affected)
People
(Reporter: spam, Unassigned)
References
()
Details
(Keywords: dataloss)
User Story
Attachments
(1 file)
|
4.37 KB,
image/png
|
Details |
| Reporter | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
| Reporter | ||
Comment 3•10 years ago
|
||
Comment 4•9 years ago
|
||
| Reporter | ||
Comment 5•9 years ago
|
||
Comment 6•8 years ago
|
||
| Reporter | ||
Comment 7•7 years ago
|
||
Comment 8•6 years ago
|
||
Similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1254982 "Open message in list" is empty for imap messages archived to local folders [faceted search results] (still indexed on Inbox, not on archive folder, fixed by rebuilding gloda database)
Comment 9•6 years ago
|
||
I am affected by this bug. It is the most severe flaw in Thunderbird that I am currently experiencing.
In my experience, The problem is corrected by rebuilding the Gloda database. Some, but not all, messages which are in the Local Folders and which Gloda cannot find have an empty cell in the Glodaquilla plugin's Gloda ID column. I am using current Thunderbird (presently 60.7.0) on Mac OS X 10.11.6.
Workaround: select the local folder into which the disappeared message was archived. Enable Quick Filter. Type search text into Quick Filter search box. Desired message is found.
Comment 12•6 years ago
|
||
This is a serious search problem, and easily reproduced. Can we assign someone to it to fix?
related to bug 1217958?
Comment 13•6 years ago
|
||
https://support.mozilla.org/en-US/questions/1252397
https://support.mozilla.org/en-US/questions/1253814
https://support.mozilla.org/en-US/questions/1258666
I'm sure there are more.
I also experience this.
Updated•6 years ago
|
Comment 14•6 years ago
|
||
Sounds to me global-messages-db.sqlite isn't corrupted, it's just that it doesn't know about the message in question. Like perhaps we just don't run indexing on it.
Starting points for debugging could be in https://searchfox.org/comm-central/rev/cb71ec93ae822bce37fb00e321ef201cce24ff1e/mailnews/db/gloda/modules/index_msg.js#579 or indexer.js - but there's a lot of abstractions in gloda so it's often fairly hard to understand what goes on :/
Given the age of this bug I don't think we need to track it for 68 though we might uplift if we find the problem.
Khushil, putting this in your backlog.
Comment 15•6 years ago
•
|
||
Hey All,
Something interesting is going on here. This is not a bug actually. By default, all the local folders have indexingPriority set to -1. Because of this, TB does not index those folders in Global Search: https://searchfox.org/comm-central/rev/cb71ec93ae822bce37fb00e321ef201cce24ff1e/mailnews/db/gloda/modules/index_msg.js#1761
One can change this: Right click on the folder and go to properties, there will be a checkbox "Include messages in this folder in Global Search results". Tick that and you will see now messages coming up in the Global Search. The original author has given it as functionality which is very interesting.
This checkbox will be shown if there are some messages in the local folder.
Now, we can do one thing, set indexingPriority for all the local folders. Magnus and Wayne, what do you suggest?
Comment 16•6 years ago
|
||
I think the question is then, why is it set to -1, and where?
Unless there are reasons not to, we should just avoid that.
Comment 17•6 years ago
|
||
By default, all the local folders have indexingPriority set to -1
If it the default on your system then this is a different issue and definetly should be filed as a new bug.
But I don't see this on my system, so it's not the problem described in this bug
Comment 18•6 years ago
|
||
For SMTP like account folders:
Priority is set here: https://searchfox.org/comm-central/source/mailnews/db/gloda/modules/datastore.js#1929
For normal folders, indexingPriority will be a null string. In this case, new GlodaFolder() at time of creation will take default value which is 20. For Trash and SPAM like folders, stmt.getInt32(4) will give the value of -1 so indexingPriority will be set up as -1.
For Local Folders:
Priority is set here: https://searchfox.org/comm-central/source/mailnews/db/gloda/modules/datastore.js#2015. "stringPrio" is null for the new local folder which will be set up through JSM module and we are not assigning anything there. So, it will go to else statement: https://searchfox.org/comm-central/source/mailnews/db/gloda/modules/datastore.js#1961. But we are not passing the second argument in getDefaultIndexingPriority so it is setting up -1 for Trash and Junk and there is a comment not to add these folders into Global Search(Trash and Junk). And for other new local folders, it is setting up the default priority 20 which is the correct behavior. If folders have some special flags then the priority will be according to that.
Comment 19•6 years ago
|
||
My local folders, which demonstrate the problem that global search can't find results in them, have the checkbox "Include messages in this folder in Global Search results" ticked. So the absence of this checkbox tick can't be the full explanation of this bug.
Comment 20•6 years ago
|
||
Same problem is happening to me when moving messages from IMAP account folders to local folders. I've deleted global-messages-db.sqlite too but it is still happening and that file is not being created again.
I am with Thunderbid 60.9.0.
Messages in Local Folders are found in Global Search but some of them are empty when they are clicked. I've installed GlodaQuilla addon and these messages have a gloda id in local folder.
Actually, the only workaround that it is working for me is moving all messages from Local Folder to Inbox folder and then moving them back to local folder.
Nobody can fix that ??? This bug is present from 4 years ago :-(
Comment 21•6 years ago
|
||
I have the same problem since I switched from Pop3 to IMAP. I also have the checkbox "Include messages in this folder in Global Search results" ticked, so this is not the problem.
Please fix this, this is really a serious issue.
Thanks,
Klaus
Comment 22•5 years ago
|
||
I just had what I think is the problem described here. I moved some e-mails related to shopping to a local shopping folder. It was only several days ago. I think I was using 78.8.0 on Windows. Today (using 78.8.1) I searched for one of those e-mails using keyword target but only older e-mails from target appeared. The local folder has Include messages in global search results. When I searched via right-click > Search Messages it found the message.
I exited thunderbird and deleted global-messages-db.sqlite from my profile directory. When I started Thunderbird again I used Tools > Activity Manager to watch the database be rebuilt. When it was done I searched again from the search box and then it worked.
I'm using Yahoo Mail over IMAP.
| Reporter | ||
Comment 23•3 years ago
|
||
Any news on this? Sirs, data integrity is the basis, is it possible that a serious bug like this goes dismissed for two years in a row??
Same story for Mork files, there are DECADES old bugs regarding them, EVERY time you move message threads between folders you get them corrupted and you have to manually delete them to force repair... this is the reason I switched to Evolution and Vivaldi two years now after being a loyal Mozilla user since Firefox 0.6 and Thunderbird 0.5.
C'mon Mozilla people... less bullshit and more substance please, admitted that you can ever do something productive given the CEO you got 8 years ago, very successful at destroying the foundation piece by piece.
Comment 24•3 years ago
|
||
(In reply to Anselmo Canfora from comment #23)
Any news on this? Sirs, data integrity is the basis, is it possible that a serious bug like this goes dismissed for two years in a row??
... C'mon Mozilla people... less bullshit and more substance please, admitted that you can ever do something productive given the CEO you got 8 years ago, very successful at destroying the foundation piece by piece.
Sir, this is free software. You are getting support in proportion to the licence fees you paid, which is (I imagine) zero.
I understand your frustration, but using angry and abusive language in this forum is not appropriate. If you really want this problem fixed, you know how: open up the code, fix it yourself, and contribute the fix back; or, hire someone to do the same. If you are unwilling or unable to do that, then either use the product and live with the problem, or don't use the product. In no case is abuse the right response.
| Comment hidden (off-topic) |
Comment 26•1 year ago
|
||
Does this still reproduce?
Comment 27•1 year ago
|
||
This has happened to me occasionally over the years. When I'm certain Thunderbird is not finding something I know is there then I will delete the database as I described above, wait for it to rebuild and then search again. There are also some things I search for that I guess just can't be searched for like numbers and stuff. Anyway I'm sorry to say I don't remember much, I've just learned to live with it.
Comment 28•1 year ago
|
||
I think it's still happening. Try moving emails from IMAP accounts to a local folder and the system won't find them anymore in searches. Same as Ray I've been rebuilding the database every few months, so I'm not 100% sure that it's still happening but it should be easy to reproduce following the steps above.
Comment 29•1 year ago
|
||
Same for me. That is still happening.
Sometimes the symptom is that the email is shown in the list of mails, but when I click on it, it cannot be opened.
Comment 30•1 year ago
|
||
Not reproducible for me with Thunderbird 115.15.0 on openSUSE Tumbleweed.
Comment 31•1 year ago
|
||
It's still happening. Thunderbird 128.5.2esr (64-bit) on Windows 11
Description
•