Closed Bug 578148 Opened 15 years ago Closed 5 years ago

Archives folder and Sent folder in Unified folders view don't show messages. msf file is hosed. 0x80004005 (NS_ERROR_FAILURE) [nsIMsgFolder.server]" lsearchSpec.js :: SearchSpec_applySearch ::

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: andi, Unassigned)

References

(Blocks 1 open bug)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 When selecting the "Archives" folder or the "Sent" folder in the "Unified folders" tree, no messages are shown in the message pane. When selecting the "Inbox" or "Trash" all messages within these folder are shown - as expected. Reproducible: Always Steps to Reproduce: 1. Switch folder pane to "Unified folders" 2. Select "Archives" and make sure you have archived mails... Actual Results: Message pane shows nothing; stays empty. Expected Results: All mails within the archives show up in the message pane. In Thunderbird 3.0 this worked fine. Since my update to 3.1 this seems to be broken. It also seems to be broken for the unified "sent" folder but not fot he unified "inbox".
been looking at the same issue myself today. please attach your virtualFolders.dat file to the bug, or email to me. file is located in your thunderbird profile
Component: General → Folder and Message Lists
QA Contact: general → folders-message-lists
Does anything get added to the error console when you click on Archives or Sent Unified folders? Tools | Error Console
Did you rename one of your accounts, perhaps? Or change your user name or server name?
When accessing a proper-working smart folder (e.g. Inbox), no errors occur. All smart folders "not working" (Archive, Sent, Draft) show up the following error in error console: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIMsgFolder.server]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///C:/Programme/Mozilla%20Thunderbird/modules/searchSpec.js :: SearchSpec_applySearch :: line 449" data: no] To the second question "renaming accounts": I am not sure. I added a new account some days ago; but I'm not sure whether this was before or after the update from Thunderbird 3.0 to 3.1. Maybe this is related to the bug, maybe not.
Yeah, I'm pretty sure that some of the uri's in your virtualfolders.dat file refer to a non-existent server. You can edit your virtualFolders.dat file by hand, while Thunderbird is not running, and remove the lines like this: uri=mailbox://nobody@smart%20mailboxes/Drafts searchFolderFlag=400 scope=mailbox://user@server/Drafts|mailbox://user2@server2/Drafts terms=ALL searchOnline=true and also remove the Drafts.msf file from the smart mailboxes folder on disk (<profile dir>/Mail/Smart Mailboxes and restart, and we'll recreate the Drafts smart folder. Similarly for whatever other smart folders are causing issues. I can come up with a fix for this, such that we remove the bad uri(s), but it would be good to know how this might have happened, and if any folders are missing from the scope that should be there (e.g., is there a drafts folder not included in the search scope for the smart drafts folder? bringing up the properties dialog for the smart drafts folder might tell you that)
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: nobody → bienvenu
I deleted the line from the virtualFolders.dat file as mentioned. I deleted the according msf-Files. No change, folders are still not working. Looking at the virtualFolders.dat shows me: Thunderbird did not recreate any lines. The lines I deleted are still missing now.
You say line, but you need to delete 5 lines. Did you delete a single line, or 5 lines?
I did the right, but skip it... I think, I found the bug. I can reproduce it now: The problem occurs after deleting an IMAP Mail account in Thunderbird. 1. Create a new IMAP account in Thunderbird (e.g. testimap@bla.com) 2. Close Thunderbird, have a look at virtualFolders.dat - everything fine 3. Open Thunderbird, delete testimap@bla.com account 4. Close Thunderbird, have a look at virtualFolders.dat - meep! After (4), the virtualFolders.dat still contains entries for the imap accounts in the sections for Archive, Draft and Sent. The entries for Inbox, Trash and Junk are gone - as expected. So the bug is: When deleting an IMAP account, the virtualFolders.dat file does not get updated correctly. Just to explain why I found the bug: I created an imap account by error, then deleted it and created the right pop account. And here we are... the wrong imap-entries still exist within virtualFolders.dat and - interesting - the entries also do not get updated. If there is an "imap:..." section, the create new pop account does neither add a new entry with "mailbox:..." nor does it update the "imap:..." to "mailbox:..."; an furthermore, when deleting the pop account, the imap-entries do not get deleted, they stay within the virtualFOlders.dat forever!
Depends on: 581330
bug 581130 / using 20100802 Lanikai/3.1.2pre appears to have fixed most of my problem 3 of 4 failing folders now work. But Trash does not display. I don't find a uri=mailbox://nobody@smart%20mailboxes/Trash line in virtualFolders.dat
Wayne, do you mean you don't have a smart folders "Trash" folder, or its contents don't display? Is there a Trash.msf in the smart mailboxes sub-folder of the Mail profile dir? If so, deleting that and restarting may fix the issue.
Trash smart folder is in the UI, but no messages are shown in it. Deleting Trash.msf does not help. It displays contacts after I added uri=mailbox://nobody@smart%20mailboxes/Trash searchFolderFlag=100 ... I can't explain why that set of lines was missing, or why it didn't get added to virtualFolders.dat
(In reply to comment #11) > > It displays CORRECTLY after I added > uri=mailbox://nobody@smart%20mailboxes/Trash > searchFolderFlag=100
I see a bug which I believe is the same as this in windows and linux. I have unified Archives showing no messages while the regular folders work correctly. This glitch is pretty new to me. I haven't seen anything like it until recently (last update or 2). If I go "Properties" of the Archives unified folder, the New Saved Search comes up. I can try to reset it correctly but clicking OK doesn't succeed. Looking at virtrualFolders.dat, Archives is not there. I also changed all my account names, mostly by stripping the "@email_provider.com". Opening "Properties" gives this in the error console: Error: uncaught exception: [Exception... "Component returned failure code: 0x80550005 [nsIMsgFolder.msgDatabase]" nsresult: "0x80550005 (<unknown>)" location: "JS frame :: file:///opt/thunderbird/modules/virtualFolderWrapper.js :: anonymous :: line 281" data: no] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
Also, error console for clicking on the Archives unified folder: Error: this._sort[aIndex] is undefined Source File: file:///opt/thunderbird/modules/dbViewWrapper.js Line: 1542
If you look in your user profile directory, at the smart mailboxes sub-directory, is there a .msf file for the Archives smart folder?
Ya. Looks cryptic to me.
You could try shutting down TB, moving that .msf file out of your profile, and restarting.
That fixed it. I had to reassign all the folders back into the Saved Search but it works now. Is there anything useful here to tell how it got messed up?
If you still have that .msf file, you could e-mail it to me - it shouldn't have anything private in it, other than the urls for your folders.
Depends on: 607981
Sent my entire "smart folder" to bienvenu from a case with Mozilla/5.0 (Windows NT 6.0; rv:2.0b8pre) Gecko/20101115 Thunderbird/3.3a1pre. I don't know when my problem started - I might not have been on 20101115 when it started. None of my smart folders showed messages. I renamed "smart folders" folder in windows and was able to get them back.
bug 575831 possible duplicate
Summary: Archives folder and Sent folder in Unified folders view don't show messages → Archives folder and Sent folder in Unified folders view don't show messages. msf file is hosed
(In reply to Wayne Mery (:wsmwk) from comment #21) > bug 575831 possible duplicate bug 674106 is another
Severity: normal → major
Assignee: mozilla → nobody
Status: ASSIGNED → NEW
let's make this the main bug
Blocks: 566342, 549089
Not sure if this is the same bug, but I had the similar symptoms. Turned out that my virtualFolders.dat file had a query saved under the Sent section, like this: terms=OR (to,contains,ezhome) "ezhome" is the service I use to do our landscaping... a long time ago I had queried for that word, but for some reason it became permanently stuck in the virtualFolders.dat file. So I changed that line to: terms=ALL And the symptom disappears - specifically, in Unified mode, now I see all the Sent messages from all my accounts under the Sent smart folder.
Is this still happening? Could it have been fixed by bug 581330 ?
See Also: → 393352

(In reply to :aceman from comment #27)

Is this still happening? Could it have been fixed by bug 581330 ?

According to comment 5 I would say yes, because bug 581330 comment 1 states "verify all the search scopes in saved folders, and removes the folder from the uri list if it seems invalid.". I would think the same applies to bug 393352. What do you think?

But what about bug 549089? And bug 566342 comment 19 "I have the same problem with the 31.5.0 version.", which comes long after the fix in v3.3?

Flags: needinfo?(acelists)

p.s. frankdog writes he no longer sees this problem. No feedback from Mike.

(In reply to Wayne Mery (:wsmwk) from comment #29)

p.s. frankdog writes he no longer sees this problem. No feedback from Mike.

Hey guys, I just saw the bug that one time 7/29/2016 when I originally wrote... haven't seen it since. I am still using Thunderbird. Maybe it was something rare like during a crash while searching that the terms get left in there (speculating).

Thanks for all your work!

(In reply to Wayne Mery (:wsmwk) from comment #29)

p.s. frankdog writes he no longer sees this problem. No feedback from Mike.

The original behavior I reported via this bug does not appear to be duplicated in Thunderbird 60.8.0 (64-bit), MacOS 10.14.6.

Flags: needinfo?(acelists)
Summary: Archives folder and Sent folder in Unified folders view don't show messages. msf file is hosed → Archives folder and Sent folder in Unified folders view don't show messages. msf file is hosed. 0x80004005 (NS_ERROR_FAILURE) [nsIMsgFolder.server]" lsearchSpec.js :: SearchSpec_applySearch ::

WFM per most recent comments

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.