av9ash/GitBugs huggingface dataset:
Bug: mailnews.send.jsmodule alters body of signed-only text message before sending
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2023-02-02 11:07:21+00:00
Resolved: 2023-02-04 18:25:46+00:00

Steps to reproduce:

I'm sending a new text message to myself with an S/MIME signature that is not encrypted, with the mailnews.send.jsmodule property undefined (defaulting to true).


Actual results:

The signature of the mail stored in the Sent folder is recognized as valid. The signature of the mail received in the Inbox is shown as invalid. Storing both messages as .eml files and comparing reveals that the signed part of the multipart message has been changed in two ways:

 1) The Content-Transfer-Encoding was altered from "7bit" to "quoted-printable"
 2) The line that was wrapped automatically and which contains a trailing space character " " in the Sent folder is missing this trailing space in the Inbox.

Defining the mailnews.send.jsmodule property, setting it to "false" solves the problem, and both, Inbox and Sent message validate the signature OK.


Expected results:

With all settings, specifically with the default setting of mailnews.send.jsmodule, Thunderbird should never alter the signed body of a text message while sending; it breaks the signature.
Bug: No min-heights nor overflow handling in `Filter Rules` dialog: UI elements incl. OK and Cancel buttons disappear when reducing dialog height
Status: UNCONFIRMED
Priority: --
Created: 2023-02-02 15:04:38+00:00
Resolved: 2023-03-22 20:15:51+00:00

Steps to reproduce:

Right-click on sender email adress (located to right of ´From´)  
->  click ´Create Filter From...´  
-> Downsize window by dragging bottom edge upwards* 
-> ´OK´ and ´Cancel´ buttons disappear.


Actual results:

´OK´ and ´Cancel´ buttons disappeared when my trackpad got stuck and I accidentally downsized filter config window from bottom edge. 
Did not first realize what happened, and other users may not resize back.

This can be reproduced (´steps to reproduce´).


Expected results:

Vital ´OK´ and ´Cancel´ buttons should still appear when resizing window from bottom.


Using version 102.7.1 (64-bit) on Mac desktop.
Bug: Email attachments display empty/blank, apparently due to unexpected URI format
Status: RESOLVED
Priority: P2
Resolution: FIXED
Created: 2023-02-02 21:43:16+00:00
Resolved: 2023-06-14 00:32:58+00:00

With TB 111 self-built daily from comm-central, any attempt to open an attached email produces only a blank window instead of showing the email. This occurs for imap when the message is in offline store or in disk cache. It also occurs when the message is in Local Folders. It appears to be due to an unexpected URI string causing the message key to not be found.

For imap the following  prints to the terminal console when the .eml attachment is clicked:
```
gds: uriStr = |imap://gene@wally.dbnet.lan:993/fetch%3EUID%3E.INBOX%3E555?part=1.1.3&type=application/x-message-display&filename=postacert.eml|
[Parent 890880, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /home/gene/mozilla2/comm/mailnews/imap/src/nsImapService.cpp:804
[Parent 890880, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /home/gene/mozilla2/comm/mailnews/imap/src/nsImapService.cpp:3055
JavaScript error: chrome://messenger/content/aboutMessage.js, line 130: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIMsgMessageService.messageURIToMsgHdr]
```
The first line comes from my addition to nsImapUtils.cpp:
```
diff --git a/mailnews/imap/src/nsImapUtils.cpp b/mailnews/imap/src/nsImapUtils.cpp
--- a/mailnews/imap/src/nsImapUtils.cpp
+++ b/mailnews/imap/src/nsImapUtils.cpp
@@ -34,18 +34,19 @@ nsresult nsImapURI2FullName(const char* 
   return NS_OK;
 }
 
 /* parses ImapMessageURI */
 nsresult nsParseImapMessageURI(const nsACString& uri, nsCString& folderURI,
                                uint32_t* key, char** part) {
   if (!key) return NS_ERROR_NULL_POINTER;
 
   const nsPromiseFlatCString& uriStr = PromiseFlatCString(uri);
+  printf("gds: uriStr = |%s|\n", uriStr.get());
   int32_t folderEnd = -1;
```
When I run with the same patch on 110 daily, there are no errors and it prints this URI:
```
imap-message://gene@wally.dbnet.lan/INBOX#555?part=1.1.3&type=message/rfc822&filename=postacert.eml
```
compared to the unexpected URI from 111:
```
imap://gene@wally.dbnet.lan:993/fetch%3EUID%3E.INBOX%3E555?part=1.1.3&type=application/x-message-display&filename=postacert.eml
```
The important difference is the "key separator" for 110 is "#" but for 111 it is "%3E". 
There is a similar problem with the URI when the message and .eml attachment are opened from Local Folders.
Bug: Authentification to office365 account failed with message: User is authenticated but not connected.
Status: RESOLVED
Priority: --
Resolution: DUPLICATE
Created: 2023-02-02 22:05:45+00:00
Resolved: 2023-03-31 10:14:49+00:00

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

Steps to reproduce:

I have configured account for outlook.office365.com account with OAuth2


Actual results:

1. I have used new Thunderbird installation with new profile.
2. no addons enabled
3. Fedora 37 with latest updates
4. Account was successfully created, ask for auth, permission 
5. fetching e-mail from office365 account ens with these errors
The current operation on 'Inbox' did not succeed. The mail server for account ...@.. responded: User is authenticated but not connected.
The current command did not succeed. The mail server for account ...@.. responded: User is authenticated but not connected.
Server outlook.office365.com has disconnected. The server may have gone down or there may be a network problem.

6. The same problem is also with 110.0b3 release.

7. Gnome Evolution e-mail client on the same system doesn't has this problem. TB-Sync addon (different profile)  is connecting correctly.


Expected results:

Correctly connect to office365.com and show emails
Bug: Feature to reorder accounts is not discoverable
Status: NEW
Priority: --
Created: 2023-02-02 23:52:07+00:00
Resolved: 2023-02-05 23:15:31+00:00

Bug 244347 implemented ways of reordering accounts in the mail tab via Account manager (`≡ > Account Settings`):
- You can drag and drop the parent node of each account
- You can select the parent node and use Alt+arrow up/down to move the selected account in the list

Unfortunately, this really relevant feature isn't discoverable at all. We should make it discoverable, somehow.
Bug: Fix the F6 focus cycle for new 3-pane tabs
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2023-02-03 01:22:53+00:00
Resolved: 2023-02-09 22:13:12+00:00

In this bug I'm going to overhaul the code that handles F6 on the main window. It may not fix all the problems of bug 1790238, but it should be easier to look at them once I'm done here.
Bug: Saved scopes or other login info breaks Microsoft OAuth2
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2023-02-03 07:22:20+00:00
Resolved: 2023-10-29 13:18:35+00:00

We discovered that OAuth scopes are saved as prefs on the account level, which means even if we change scopes in the code, they will be retained and potentially break or continue breaking login.

A workaround is to search for "oauth2.scope" in preferences and delete them.

We should eliminate the use of these saved scopes as they have no value while we're using a fixed list of OAuth providers and scopes.

**If you can login on a new profile in Beta or 102.7.1+, but cannot on a profile that was created in 102.6.1 or earlier, you may be affected by this bug.**
Bug: mail lost while moving with drag & drop to account folder node
Status: UNCONFIRMED
Priority: --
Created: 2023-02-03 08:50:39+00:00
Resolved: 2023-02-04 03:56:01+00:00

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

Steps to reproduce:

I drag & drop a mail from some folder into a mail-account (not the folders below this account).


Actual results:

the mail is lost. Even search could not retrieve it. The context menu shows "Move to <name of the account>'.


Expected results:

The UI should refuse to drop the mail into the account. Mails should be dropped into folders.
Bug: Child folders sometimes inherit the parent's icon
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2023-02-03 09:57:05+00:00
Resolved: 2023-02-07 06:54:39+00:00

Some child folders in the folder pane are inheriting the parent's icon. Not only can this override other special folder icons, only folders that are the special folder type should have the icon (so for example sub folders in trash would show up as normal folders).
Bug: Linux: wrong address by answering bcc mail
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2023-02-03 11:42:19+00:00
Resolved: 2023-02-05 05:11:32+00:00

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

Steps to reproduce:

1. Receiving a mail, which was sent as bcc.
2. Push the answer button.


Actual results:

1. new message window appears
2. "From" Field is filled with the address, which sent the mail
3. "To" field is empty
I tested with the following Linux Systems: Ubuntu 22.04, Manjaro, Endevour
On Windows 10 there is no bug(!), only Linux, maybe Waylang?!


Expected results:

1.  new message window appears
2. "From" field is filled with my mail address
3. "To" field is filled with the address, which send the mail
Bug: Opening a PDF attachment from a new email Compositor main window opens the PDF attachment in a tab in the first main window and not in the current compositor window
Status: UNCONFIRMED
Priority: --
Created: 2023-02-03 14:12:52+00:00
Resolved: 2023-02-04 03:59:31+00:00

Steps to reproduce:


Hello,

when I write a new email in Thunderbird it opens a new second main window for the composition of the new email. This is expected.

Then when I add PDF attachments to the new email and I double click the PDF attachments to check if I actually included the correct files the PDF attachments are opened in a new tab not in the current main window of Compositor, but in a new tab the first main window, where all my email accounts and emails are listed.

This is cumbersome, since it always necessitates changing the focus an another main window.

This is on Linux Mint 21, Thunderbird version 102.4.2 64 bits


Actual results:


PDF attachments double clicked from Compositor are opened in a new tab in the wrong main window and not in a new tab of the main window of the current new email compositor.


Expected results:


PDF attachments should be opened in a new tab in the main window of the current new email Compositor.
Bug: Thunderbird keeps asking for password of deleted GMail account
Status: RESOLVED
Priority: --
Resolution: INVALID
Created: 2023-02-03 17:06:56+00:00
Resolved: 2023-02-03 17:31:41+00:00

Steps to reproduce:

1. Add any mail account
2. Add a GMail account
2. Remove that GMail account (have at least one account left)
4. Remove stored password of removed GMail account
3. Restart Thunderbird
4. Request new mail


Actual results:

Thunderbird starts OAuth for the removed GMail account 


Expected results:

Thunderbird should only request passwords for accounts that actually still exist in thunderbird, not for the deleted account.
Bug: Closed folder doesn't show the number of unread messages in sub folders
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2023-02-03 19:46:09+00:00
Resolved: 2023-05-17 17:13:12+00:00

A closed folder with subfolders with unread messages doesn't show a badge with the amount of this unread messages. Like this it's not obvious that there are unread messages inside this folder.
Bug: TB111 freezes few seconds after starting. OK with TB112
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2023-02-03 20:42:38+00:00
Resolved: 2023-03-23 12:03:51+00:00

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

Steps to reproduce:

Upgraded from 110.0a1 to 111.0a1 (end of December, can't remember exactly), issue started happening, upgraded regularly, latest version is 111.0a1 from 03-Feb. I upgraded from 110 because 110 started crashing out of nowhere non stop (I supposedly sent those reports as it offered to send crash report) but 111 now do not crash just freeze completely

When I start Thunderbird it starts, start fetching mails and in few seconds freeze completely, I can move window around but can't click on anything... If I let it try to unfreeze this do not happen in 3 hours (that is longest I waited)


Actual results:

When TB starts it start fetching emails and in few seconds it freezes. If I manage to get it to go to offline mode (and click on "later" to not dl emails) it will work ok in offline mode and I can browse through accounts and read emails. I can usually click on get messages for one account and then turn it again to offline mode and it will work, I can do it for all accounts (I have 27 accounts + local folders) one by one, but if I tell it to fetch for all accounts it will freeze again after few tens of seconds. I have no clue how to debug windows program :( to see where the crash is at, if you can point me to some documentation how to see where it is freezing at I'll do my best to extract data. If I turn offline mode off it will for for minutes and then freeze when it start fetching mail


Expected results:

Normal operation
Bug: message selection in modest size folder and larger is sluggish
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2023-02-04 02:55:26+00:00
Resolved: 2023-04-24 19:43:14+00:00

Clicking from one message to another in a folder with moderate size (bugmail, around 70k msgs) is sluggish. It takes almost a second before the highlighted message changes to the selected one in the list. That's just too slow. I expect the selected message highlight to be instantaneous, after which the actual message load can take it own time.
For small folders, I don't see much of a delay.
Bug: missing styling for imap mark as deleted model (makes delete appear not to work at all)
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2023-02-04 03:04:31+00:00
Resolved: 2023-02-10 05:36:17+00:00

With the imap mark as deleted model (when I delete a message, just mark it as deleted) deleting doesn't do anything anymore.
Bug: creating saved search adds the virtual folder twice
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2023-02-04 03:10:29+00:00
Resolved: 2023-04-24 19:49:35+00:00

File | New | Saved Search.
Enter a criteria and name the folder "test". After Ok, you now have two "test" folders showing - one marked as virual folder and one as normal folder. After restart both are marked as virtual, though of course there should only be one.
Bug: Intermittent comm/mail/components/extensions/test/browser/browser_ext_mailTabs.js | can't access property "folderPaneSplitter", tab.chromeBrowser.contentWindow is null
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2023-02-04 04:55:12+00:00
Resolved: 2023-02-21 23:08:22+00:00

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

---
```

```
Bug: Intermittent  comm/mail/test/browser/content-policy/browser_generalContentPolicy.js | Should allow remote sig in new mail - false
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2023-02-04 04:56:32+00:00
Resolved: 2023-03-13 06:19:38+00:00

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

---
```

```
Bug: Intermittent comm/mail/components/extensions/test/browser/browser_ext_menus_replace_menu.js | application crashed [@ mozilla::DisplayPortUtils::GetRootDisplayportBase(mozilla::PresShell*)]
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2023-02-04 05:01:15+00:00
Resolved: 2023-02-20 22:06:42+00:00

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

---
```

```
Bug: Crash in [@ nsXHTMLContentSerializer::AfterElementStart] via MimeInlineTextHTMLParsed_parse_eof
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2023-02-04 09:22:43+00:00
Resolved: 2023-11-25 18:12:20+00:00

Two crashes which have the same cause, via MimeInlineTextHTMLParsed_parse_eof?
* @ nsXHTMLContentSerializer::AfterElementStart
* @  do_getDocumentTypeSupportedForEncoding  bp-71687eee-faf5-4db4-ab90-fe3970230201

Crash report: https://crash-stats.mozilla.org/report/index/7e81a8eb-9835-40f0-bf03-3597c0230127

Reason: ```EXCEPTION_PRIV_INSTRUCTION```

Top 10 frames of crashing thread:
```
0  xul.dll  nsXHTMLContentSerializer::AfterElementStart  dom/serializers/nsXHTMLContentSerializer.cpp:346
1  xul.dll  nsHTMLContentSerializer::AppendElementStart  dom/serializers/nsHTMLContentSerializer.cpp:249
2  xul.dll  nsDocumentEncoder::NodeSerializer::SerializeNodeStart const  dom/serializers/nsDocumentEncoder.cpp:868
3  xul.dll  nsDocumentEncoder::NodeSerializer::SerializeToStringRecursive const  dom/serializers/nsDocumentEncoder.cpp:948
4  xul.dll  nsDocumentEncoder::NodeSerializer::SerializeToStringRecursive const  dom/serializers/nsDocumentEncoder.cpp:958
5  xul.dll  nsDocumentEncoder::NodeSerializer::SerializeToStringRecursive const  dom/serializers/nsDocumentEncoder.cpp:958
6  xul.dll  nsDocumentEncoder::SerializeDependingOnScope  dom/serializers/nsDocumentEncoder.cpp:571
7  xul.dll  nsDocumentEncoder::EncodeToStringWithMaxLength  dom/serializers/nsDocumentEncoder.cpp:1397
8  xul.dll  nsDocumentEncoder::EncodeToString  dom/serializers/nsDocumentEncoder.cpp:1347
9  xul.dll  MimeInlineTextHTMLParsed_parse_eof  mailnews/mime/src/mimeTextHTMLParsed.cpp:114
```
Bug: imap mark-as-deleted: doesn't advance to next on delete, if focus in message reader
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2023-02-05 06:05:02+00:00
Resolved: 2023-05-22 17:24:26+00:00

See also bug 1815027.

With imap "just mark as deleted" deletion no longer advances to next message.
Bug: TB hangs for a couple of seconds during some operations
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2023-02-05 09:42:15+00:00
Resolved: 2023-10-07 18:03:43+00:00

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

Steps to reproduce:

1) Checking for new messages on several accounts.
2) Clicking on new messages arrived.



Actual results:

1) Checking for new messages on several accounts:
The UI becomes unresponsive for a couple of seconds.
2) Clicking on new messages arrived: The UI becomes unresponsive for a couple of seconds.
3) In all other cases it works fine.
Bug: Intermittent comm/mail/components/extensions/test/browser/browser_ext_windows.js | Should find the correct value for state - Expected: minimized, Actual: normal -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2023-02-06 06:20:25+00:00
Resolved: 2023-02-06 07:58:02+00:00

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

---
```

```
Bug: Intermittent comm/mail/base/test/browser/browser_treeViewListbox.js |  the list has the right rows
Status: RESOLVED
Priority: P5
Resolution: WORKSFORME
Created: 2023-02-06 06:21:53+00:00
Resolved: 2024-08-30 00:07:17+00:00

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

---
```

```
Bug: Intermittent comm/mail/test/browser/multiple-identities/browser_displayNames.js | timeout waiting for a message.
Status: RESOLVED
Priority: P5
Resolution: WORKSFORME
Created: 2023-02-06 06:23:02+00:00
Resolved: 2024-08-30 00:06:58+00:00

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

---
```

```
Bug: Intermittent comm/mail/test/browser/attachment/browser_attachmentMenus.js | attachmentSaveAllSingle" should be disabled - false != false
Status: RESOLVED
Priority: P5
Resolution: WORKSFORME
Created: 2023-02-06 06:25:36+00:00
Resolved: 2024-08-30 00:07:17+00:00

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

---
```

```
Bug: After sending message, dialog box 'copying message to sent folder" is too small for French translation, and `Cancel` button cut off
Status: RESOLVED
Priority: --
Resolution: DUPLICATE
Created: 2023-02-06 10:57:20+00:00
Resolved: 2023-02-06 23:20:27+00:00

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

Steps to reproduce:

Install TB in *FRENCH* version. 
compose a message (to anyone, doesn't matter)
send it
watch the popup windows saying : 
"sending message" (in french).
Then watch the popup window switching to the message :
"copying message to sent folder". 
In french, it goes like 
"Copie du message vers le dossier Messages en[cropped text]"

Here is the bug : as the message is cropped, because the popup window doesn't stretch, the "Abort" button is also cropped.


Actual results:

Text in the popup window is cropped. 
Button "abort" is cropped.


Expected results:

the popup window after sending a message should strech to the text, as the associated "abort" button stretch to align on right to the text... So both shouldn't be cropped.
Bug: on deinstall of temporary installed addons, close addon debugger
Status: RESOLVED
Priority: --
Resolution: WONTFIX
Created: 2023-02-06 11:05:30+00:00
Resolved: 2023-02-07 16:50:32+00:00

deinstalling a temporary installed addon closes tabs opened by the addon.

But the addon debugger window stays open.

In many cases, this crashes TB after a restart when opening addon debugger (unless the "homeless" former tab is manually closed). 

In any case, when the addon is gone, its debugger tab should go as well, if possible.