av9ash/GitBugs huggingface dataset:
Bug: Deeply nested folders not discovered when ignoring subscriptions, i.e., advanced server setting "Show only subscribed folders" is not selected.
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2024-06-13 09:11:50+00:00
Resolved: 2025-01-10 10:42:16+00:00

### Problem
Thunderbird does not list all folders, especially inside a shared namespace.

### Environment
 * Thunderbird 115 on Windows 10/11, disabled "show only subscribed folders"
 * dovecot with shared namespace, sharing group mailboxes

We are using Thunderbird with IMAP account which have a large count of (sub)folders. Most of those folders are from inboxes from other "users" which share their whole mailbox. The server is running dovecot with a shared namespace called "shared" where the group accounts mailboxes are shared with the members of said group. One of those group mailboxes has accumulated 1200 folders alone, users sometimes have multiple group folders shared. During account creation, we disable "show only subscribed folders" on the server settings. The server uses the same (linux) user, so the problem should not be related to access to the files/folders.

### Reproduction
 - Set up new Thunderbird
 - Add IMAP account with shared mailboxes
 - Compare the folder listing to either Roundcube running on the mailserver or another Thunderbird having access to the same shared inbox
 - Thunderbird is, most likely, missing some folders

The missing folders are not always the same ones and vary from start to start.

### Potential workarounds
Sometimes when restarting Thunderbird the folder then reappears. During restarts sometimes Thunderbird expands the whole folder tree, which may be another bug. If a restart of Thunderbird does not help, sometimes the folder reappears when "repairing" the parent folder.

### Additional Information
 * Maybe due to the nested folders, some users are getting the "summary file cannot be opened" error dialog while trying to repair the parent folders
 * I am running thunderbird on linux and it seems that i am reliably able to find folders. however i am not a heavy user of deep/nested folders so i am less likely to experience the problem

### Help to debug/Thanks
If there are any additional informations or logfiles that would help to track down the bug, i will try my best to provide them. Also, thank you for your work on thunderbird. i am a proud supporter of Thunderbird and thus i would like to stop my colleagues switch to roundcube due to this bug.
Bug: Can not use P2P S/MIME certificates in recent version
Status: UNCONFIRMED
Priority: --
Created: 2024-06-13 09:30:29+00:00
Resolved: 2024-06-13 10:37:57+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Steps to reproduce:

Create a self signed S/MIME certificate on windows with new-selfsignedcertificate.
Import into thunderbird my certificates store.
Compose a message and enable signing with this cert.


Actual results:

Thunderbird complains it failed to find the specified cert.


Expected results:

Thunderbird should be able to sign and send the email as older version.


Note: The generated cert is non-CA. I also tried CA mode but it still does not work for tb.
Bug: some errors are dumped simply as console.error: ({})
Status: NEW
Priority: --
Created: 2024-06-13 09:41:13+00:00
Resolved: 2024-06-13 11:17:20+00:00

Some of the errors we see in the native console, and logs, are output as `console.error: ({})` which is not super useful.
In the error console they are shown with proper details.

This happens e.g. for comm/mail/components/addrbook/test/browser/browser_cardDAV_init.js for cases such as
https://searchfox.org/comm-central/rev/7ae782ce03a137bfd8674fc1cdcf10edfc1e6fb4/mailnews/addrbook/modules/CardDAVUtils.sys.mjs#197

Rejecting with just a normal error dumps the something useful instead (`reject(new Error("Connection failure!!"));`)
Bug: Number of messages still missing in group summary (dummy) headers
Status: VERIFIED
Priority: P1
Resolution: FIXED
Created: 2024-06-13 11:56:02+00:00
Resolved: 2024-07-10 10:55:10+00:00

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

When I sort my INBOX by date and also enable "Grouped by sort" ...


Actual results:

... TB versions before the UI redesign showed the number of messages in the time period "(#unread/#total)" in the separator line. Unfortunately, this has been removed in the new UI and I'm still missing it.


Expected results:

Please bring back this feature.
Bug: Right-clicking on an unselected message causes it to be selected, in a synthetic view
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2024-06-14 00:38:35+00:00
Resolved: 2024-06-26 14:33:26+00:00

Because synthetic views aren't real, [saving the selection does nothing](https://searchfox.org/comm-central/rev/40f0b5fe6b3a2f745e42b1a9d4d3f73d37d4e548/mail/base/content/about3Pane.js#4905), then when the context menu closes and the selection restored nothing happens and the temporary selection (for the context menu) becomes permanent.

Fortunately because synthetic views live in their own tab we can hack the selection saving mechanism to fix this.
Bug: Undelete message does not work in unified folders (cross-folder views)
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2024-06-14 07:10:47+00:00
Resolved: 2025-03-03 12:00:14+00:00

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0

Steps to reproduce:

1) Create a new "Search Folder"  (by some search filters) on IMAP box
2) Select newly created "Search Folder" and select a message from the list
3) Delete selected message (by pressing Del or from context menu) - message is marked as deleted
4) Try to undelete it (by pressing Del or from context menu) - message stays deleted

Message can be undeleted by selecting it in real IMAP folder and pressing Del (or from Context menu)


Actual results:

Message stays deleted. 


Expected results:

Message should be not deleted.
Bug: newsgroup account creation fails (trashed existing one) if some newsgroups are already configured
Status: UNCONFIRMED
Priority: --
Created: 2024-06-14 08:33:53+00:00
Resolved: 2024-06-18 23:53:55+00:00

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

Steps to reproduce:

I wanted to add a newsgroup account


Actual results:

It trashed the last newsgroup account replacing the nntp server. I have already two newsgroup accounts that have separate lists of newsgroups.


Expected results:

Create a new newgroup account. This is what I selected add  newsgroup account.
Bug: Corrupt chat buddy list breaks account manager
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2024-06-14 08:56:02+00:00
Resolved: 2024-06-24 18:27:04+00:00

STR:
- Have a corrupted chat buddy list
- Open the account manager

Expected result: all accounts are displayed, and actions like removing accounts works

Actual result: Chat accounts are completely broken, and can't be removed.

Also impacts about:support.
Bug: Search fail with "contains" or "ends with" on subdomains
Status: RESOLVED
Priority: --
Resolution: INVALID
Created: 2024-06-14 10:32:28+00:00
Resolved: 2024-06-14 11:34:17+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0

Steps to reproduce:

Searching for (spam) mail form Aliexpress deals that contains or end with deals.aliexpress.com.



Actual results:

Search return nothing, but is ok with aliexpress.com.
So basically cannot differentiate deals offers from orders replies...🤷‍♂️


Expected results:

I expected that, at least, a substring search find the correct mail address.
Bug: wrong time
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2024-06-14 14:02:02+00:00
Resolved: 2024-08-26 22:04:43+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0

Steps to reproduce:

did nothing


Actual results:

when email received is plus 1 hour, thunderbird version 128.0b1 (32-bit)
Bug: Default outgoing SMTP is not honored in Unified Folder modes
Status: UNCONFIRMED
Priority: --
Created: 2024-06-14 14:15:44+00:00
Resolved: 2024-10-02 17:28:52+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

Thunderbird 115.11.1 (64-bit), Windows 10

I have set up several Outgoing Server (SMPT) and several IMAP Accounts.




Actual results:

If I use All Folders Mode, it takes the right SMTP server depending on my Outgoing Server (SMTP) settings of that mail folder. If I want to create a new message with Ctrl-N.

If I use Unified Folder mode that doesn't work, it always takes the second outgoing server. I have set up the first outgoing server as a default. Didn't change the behavior.


Expected results:

In the Unified Folder mode, Ctrl-N should take the default Outgoing SMTP server.
Bug: Unable to load external images within saved eml
Status: NEW
Priority: --
Created: 2024-06-14 14:57:23+00:00
Resolved: 2024-10-14 02:17:37+00:00

After receiving a user question in Dutch on https://support.mozilla.org/nl/questions/1449484 I have tried this myself on Thunderbird beta 125 and Release 115.11.1.
Procedure:
Save an email which contains external images like in a newsletter (either with external images loaded or not) as an .eml file.
Reopen the saved .eml file in Thunderbird and try to load the external images from the yellow bar.
Expected behavior is to load the external images, but the yellow bar keeps coming back and images aren't loaded.
I'm able to reproduced.
Bug: wrong from in reply
Status: UNCONFIRMED
Priority: --
Created: 2024-06-14 17:59:32+00:00
Resolved: 2024-06-18 17:32:47+00:00

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

I attempted to reply to my own message (in the sent folder)


Actual results:

The reply is set from the field to the email of one of the recipients!

This is really concerning as it looks like I am trying to impersonate someone.
It happened several times, and I now have a message on which I can reproduce it.
I have attached screenshots and EML files for the message I was replying to and the reply with the wrong From.


Expected results:

It should reply as myself.
Bug: Some display names from ISPDB are mistakenly parsed as a date
Status: RESOLVED
Priority: P2
Resolution: FIXED
Created: 2024-06-14 19:31:47+00:00
Resolved: 2024-09-11 19:19:00+00:00

When experimenting with outgoing EWS configurations for Thunderbird's upcoming Exchange implementation, I noticed that the display name for an outgoing Microsoft 365 server (which is discovered via ISPDB, following an MX record lookup) would turn up as "Fri Jan 01 0365 00:00:00 GMT-0001 (Greenwich Mean Time)", which I found weird.

When digging a bit further, I stumbled upon our [JXON](https://searchfox.org/comm-central/source/mailnews/base/src/JXON.sys.mjs) implementation, which role is to turn an `XMLDocument` into a more JS-like object structure, i.e. one where a child element can be accessed with `parent.child` rather than `parent.getElementsByTagName("child")[0]`. This implementation comes from bug 759422, which copies it from https://web.archive.org/web/20121105150802/https://developer.mozilla.org/en-US/docs/JXON with a few modifications.

When parsing text ([here](https://searchfox.org/comm-central/rev/7cefa1199be9cf0a9ce788f4cc73e38002eb8411/mailnews/base/src/JXON.sys.mjs#16-27)), because JXON doesn't know what kind of data is in the text of an XML node, it tries to be helpful and parse this text as different types via trial an error, before deciding it can't do anything more with it and returning it as plain text. One of these checks is whether `Date.parse(text)` returns a finite number. If so, it returns a new `Date` object from the text.

It turns out that for some reason, `Date.parse("Microsoft 365")` does return a finite number. And the string representation of a `Date` object created from the string "Microsoft 365" is "Fri Jan 01 0365 00:00:00 GMT-0001 (Greenwich Mean Time)".

When looking at the comm-central repository, it appears we nowadays only use JXON (or its main consumer, `FetchHTTP`) in two contexts, both in the account setup code:

* when parsing an autoconfig file, or
* when parsing an Exchange autodiscover response

The [autoconfig file format](https://www.bucksch.org/1/projects/thunderbird/autoconfiguration/config-file-format.html) does not specify any element containing a date, and the [method](https://searchfox.org/comm-central/rev/978bf6b1cdd7330e7cfb8626949c02a777532e9f/mail/components/accountcreation/modules/ExchangeAutoDiscover.sys.mjs#371) used to process an Exchange autodiscover response does not seem to access any element that is expected to contain a date.

Therefore, and considering the discussion in bug 759422 (which leads me to think we do this only because the place we copied it from does), I propose removing this check/conversion to `Date` from the JXON implementation.

Ideally I think we should remove these conversion attempts altogether and let the consumer (which is the code that is supposed to know how to interpret each element's content) in charge of converting a value to the correct type, but I can settle with considering this as a future step.
Bug: windows API: extension pages are not allowed to close their own windows
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2024-06-15 13:37:30+00:00
Resolved: 2024-11-25 17:17:10+00:00

When using the [`windows.create()`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/create) function to open an extension page in a new window, the page is not allowed to close itself without setting the `allowScriptsToClose` option, which [according to MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/create#parameters) should not be needed for extension pages:
> if the URL(s) given in `url` point to extension pages (that is, they are pages included with this extension and loaded with the "moz-extension:" protocol) then scripts are by default allowed to close those tabs.

For example, this code does not currently work, but should.
`background.js`:
```js
browser.windows.create({
	url: browser.runtime.getURL("popup.html"),
	type: "popup"
});
```
`popup.js`:
```js
setTimeout(() => {
	close();
}, 10000);
```
This is a longstanding known bug, which affects my [FileLink provider for Send](https://addons.thunderbird.net/thunderbird/addon/filelink-provider-for-send/) add-on. The workaround for extension developers is obviously trivial (include the `allowScriptsToClose` option), but it is still confusing that it does not match the documented behavior. This may also cause issues when porting Firefox add-ons to Thunderbird, as well as Chrome, which does not support this `allowScriptsToClose` option.

I just tested in the latest TB 129 Daily, but I have previously tested in TB 91 ESR, 102 ESR, and 115 ESR. Also see Bug 1675940.
Bug: Port bugs 1898181, 1898183, 1900200, 1900202: Move stuff from old-configure to moz.configure
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-06-16 10:59:40+00:00
Resolved: 2024-07-01 10:40:31+00:00

**Filed by:** mkmelin [at] iki.fi
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=462577404&repo=comm-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VC_GLGYoQdaaBmrxtArhJA/runs/0/artifacts/public/logs/live_backing.log

---
```

```
Bug: Modifying account server needs restart before chance to modify user name
Status: RESOLVED
Priority: --
Resolution: DUPLICATE
Created: 2024-06-16 12:40:18+00:00
Resolved: 2024-06-16 18:53:18+00:00

Steps to reproduce:

Got a new ISP and thereby email server and user name for emails
- picked the account to modify
- modified server name
- moved to user name to modify that too



Actual results:

I get a popup requesting to restart modifying server name even though user name obviosly has to be modified too to succeed in the verifying login.

Result of this is restarting, and doing a failed login, and returning so I can modify user name finally.

So 2 restarts each account, doing 5 accounts changes.


Expected results:

The focus() event sensing I leave the server field should wait until getting focus to another field than user name field.

Then at the end entering other fields further down, doing a restart request and login check to verify and whatever.

Doing this repeatedly for every account is cumbersome.

Would be nice if this works in a smooth way for everybody.
Just overlooked I think.
Thanks.
Bug: MSIX packaging does not set up MAPI Provider
Status: REOPENED
Priority: P2
Created: 2024-06-16 14:01:44+00:00
Resolved: 2024-11-04 13:04:12+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0

Steps to reproduce:

Open context menu of let's say a simple PDF-file with right  mouseclick, go to Sent to => email recipient => error message : not possible because there is no standard mail program.

thunderbird (from ms store because easier updates) is set up as standard mail program, there is also the new outlook app installed from ms store.


Actual results:

Open context menu of let's say a simple PDF-file with right  mouseclick, go to Sent to => email recipient => error message : not possible because there is no standard mail program.


Expected results:

Open context menu of let's say a simple PDF-file with right  mouseclick, go to Sent to => email recipient => thunderbird opens up and a new empty mail has an attachement.

i wrote this to myself after a long time of not knowing why MAPI on windows 10 doesn't work: i am stuck again at error "send to => mail recipient" thx ms https://answers.microsoft.com/en-us/windows/forum/all/send-to-mail-recipient-context-menu-not-working/7b85bf59-7485-4d87-9efa-b29477719108 answer: The Send To → Mail Recipient option needs a classic desktop email client with MAPI support, like Office Outlook or Mozilla Thunderbird. It will not work with Store apps like ... thunderbird from ms store.

attached you see an error from another bug: if you use thunderbird from ms store and klick on "searchable through windows-search" then this error appears.

i really like the store-version but i think i have to go back to the non-store version.
Bug: smtp dialog aborted - but 30s after dialog closed a popup message says it timed out
Status: UNCONFIRMED
Priority: --
Created: 2024-06-16 17:47:26+00:00
Resolved: 2024-11-30 18:49:56+00:00

Steps to reproduce:

Opened to edit SMTP credentials for a new email server, on an account.
I chose wrong protocol so call to check credentials times out.
But while waiting too long, I press cancel dialog and it disappear.


Actual results:

But after I am back on account, 30s or so, a popup comes saying it timed out.
This is not tidy this happends.
- I closed that dialog long ago, kind of


Expected results:

As dialog was closed with Cancel, any outstanding threads and calls should be terminated/killed.

Just clean nice handling if you get expected results.

I put as enhancement below, but think it is a defect really.
Part of the polishing phase of a product to remove such anomalies.

Maybe some crashes that some reported, is due to starting the edit dialog again before the previous was nicely shut down.

Thunderbird is such an impressing client, used it for more than 10 years.
- the best handling multiple accounts, hands down
- make it even better!!!!

Cheers all you great devs creating it.
Bug: Subject column is empty on startup
Status: RESOLVED
Priority: --
Resolution: INVALID
Created: 2024-06-16 18:10:42+00:00
Resolved: 2024-07-09 11:44:01+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

Open Thunderbird to check new e-mail.
Exact version: 115.11.1, Windows 11 (all updates, however this issue emerged a few weeks ago before recent Windows updates.)


Actual results:

Wrong column content and empty columns.
Subjects are gone or rather squeezed to the right, there is an empty column containing only grey stars in the middle of that column. 

Happens several times per week! Sometimes restarting Thunderbird helps and since today absolutely nothing helps... In fact it is getting worse when I try to readjust the column widths.

The date is missing and the column "Date" shows different content. So I'll have to open every e-mail to show when that was sent and by whom. Please let me know of a fix as soon as possible.

This applies to every folder of my three mailboxes - including local and IMAP subfolders. (View of Outlook iOS app is okay but doesn't have local folders...)


Expected results:

My e-mail folders should show all of my e-mail subjects when I first open Thunderbird window after boot.
Bug: thunderbird.desktop File Doesn't Work - no icon in the dock
Status: RESOLVED
Priority: --
Resolution: INCOMPLETE
Created: 2024-06-16 19:33:49+00:00
Resolved: 2024-10-16 19:32:33+00:00

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Steps to reproduce:

I run thunderbird 


Actual results:

The application opens but the doc shows a generic icon which can't be pinned


Expected results:

Dock should show a Thunderbird Beta icon.

Additional Info. This is running on Ubuntu 24.04. I am not using the snap version nor is any snap version installed. I have followed the instructions in https://support.mozilla.org/en-US/kb/installing-thunderbird-linux for creating and editing the thunderbird.desktop file. I would also want to indicate a bug in that document.  It wgets the standard thunderbird.desktop file into ~/.local/bin/thunderbird, but then uses sed scripts to edit it in .local/share/applications/thunderbird.desktop. I put the edited desktop file in both places just to be sure. Still no icon in the dock.
Bug: Thunderbird skips new Proton emails when running filters if opened on another platform
Status: NEW
Priority: --
Created: 2024-06-16 20:45:53+00:00
Resolved: 2024-06-24 16:54:37+00:00

Using version 128.0b1 (64-bit)

I recently transitioned to Proton email for the security it affords. Proton provides IMAP only at this time, planning to have POP3 soon. They provide something called Proton Bridge which runs on the Windows PC, has two-factor authentication, and provides an IMAP server at 127.0.0.0 on the local machine.

For the most part this works well except rules to run when mail is received. They have an android app to view mail and mail can be viewed on the web. New email will list on the android app and web with no problem but any emails opened with the android app or web will be skipped in Thunderbird on my PC when running rules. If I open a message then mark unread, Thunderbird still skips the email.

Thunderbird should recognize all emails newly appearing in the inbox folder regardless of status set by other applications.

Gmail uses IMAP and does not exhibit this problem. I sent emails to a Gmail account, opened them on the web, then opened Thunderbird and read the Gmail mailbox. All emails were recognized whether opened elsewhere and rules ran on those messages.
Bug: Thunderbird Flatpak has pixelated / non anti-aliased fonts in some emails
Status: UNCONFIRMED
Priority: --
Created: 2024-06-16 22:50:46+00:00
Resolved: 2024-07-30 03:49:17+00:00

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0

Steps to reproduce:

1. Install Thunderbird Flatpak
2. Connect an account
3. Open a message


Actual results:

The text within the message look pixelated and not antialiased.

It's worth noting that this seems to go away if one navigates to the font settings and disables messages using other fonts, which is interesting.


Expected results:

The fonts should look smooth with antialiasing, much like the rest of the Thunderbird UI