Sending mail to bcc with attachment fails, corrupts mail
Categories
(MailNews Core :: Composition, defect)
Tracking
(thunderbird_esr78 unaffected)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | unaffected |
People
(Reporter: dmccammishjr, Assigned: rnons)
References
(Regression)
Details
(Keywords: perf)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0
Steps to reproduce:
Attempt to forward mail to Bcc with attachment. Message shows "Assembling mail" forever. Attempt to cancel asks for wait. If cancel, forwarded mail is not editable.
Retry to To (ie, not Bcc) works. Size of attachment not material. (tried with small and very large - no difference). 86.0b2 Windows 10
Actual results:
See above Don't recall ever seeing "Message assembly - done" message before.
Expected results:
Expect message to be sent.
Also tried creating new message to Bcc with small attachment. Same "Assembling message - done" came up and message did send after a wait. Forwarded that mail to bcc with similar results. Forwarding same mail without bcc went immediately - no "Assembling ..." message appeared.
Comment 2•3 years ago
|
||
How are you attempting to forward the email?
Using the Forward button in the message header, Forward, or Forward As from the right-click context menu item on the message in the Thread pane?
If Forward As, do you select Inline or Attachment?
All of those (except Forward As > Attachment which I didn't test) worked for me using the 86.0b3 release candidate on Fedora 33 Workstation.
If you are scanning emails with an AV program you might want to disable that and try again.
Comment 3•3 years ago
|
||
(In reply to doug2 from comment #0)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0
Steps to reproduce:
Attempt to forward mail to Bcc with attachment. Message shows "Assembling mail" forever. Attempt to cancel asks for wait. If cancel, forwarded mail is not editable.
Retry to To (ie, not Bcc) works. Size of attachment not material. (tried with small and very large - no difference). 86.0b2 Windows 10Actual results:
See above Don't recall ever seeing "Message assembly - done" message before.
Expected results:
Expect message to be sent.
I tested with 86.0b3 RC, same as Walt, and it gave me the Assembling Mail" for a few seconds but then went through. Are you comfortable updating to 86.x beta and testing again?
In latest test, I used the Forward in the original message header. Just to be clear, there were no entries in To: or CC: - only Bcc: The attachment shows the Assembling message, which stayed several minutes until I canceled the send. In previous cases, I have "cancelled" and then selected "wait" and waited longer. After cancelling, no further edit was possible - like there was a tight spin in the background. Then I "X" ed the message and got an "Are you sure"
In this case, I was forwarding a message that had an attachment. In another case, I created a message with a Bcc: and attached a small photo (jpg).
I am comfortable downloading and installing any version that will run with my profile (i.e., I can't go backward very far).
Comment 6•3 years ago
|
||
Ok. So with TB open, do a CTRL-Shift-J to open Error Console.
- Go back to TB and forward a message to Bcc: with attachment but don't click Send yet.
- Go back to Error Console and click the garbage can up at top left to clear the screen.
- Go back to TB and click Send.
If there are any errors, go back to Error Console and see what's there. Might hold a clue to where things are getting stuck. If there are any errors, perhaps post them here so we can see but be sure to strip out any identifying info.
Performed procedure above. No errors or warnings on error console. (Totally blank) Forwarded mail Bcc: with attachment of about 933 KB. Took probably 45-50 seconds in "assembling message" but then sent. Need to go back and time with smaller attachment.
I have no add-on email scanner unless MS Defender is scanning.
Comment 8•3 years ago
|
||
(In reply to doug2 from comment #7)
Performed procedure above. No errors or warnings on error console. (Totally blank) Forwarded mail Bcc: with attachment of about 933 KB. Took probably 45-50 seconds in "assembling message" but then sent. Need to go back and time with smaller attachment.
I have no add-on email scanner unless MS Defender is scanning.
Interesting. So the entire time it was stuck in the assembling message state, no errors? Hmm. Let's try this one.
- With TB running do a Ctrl-Shift-I to open Developer Toolbox
- An "Incoming Connection box will appear to talk locally to TB, click OK to allow it
- On the open Developer Tools screen, press F1 to open the Settings
- Click the check-box to the left for Performance. Performance tab should now appear up at the top.
- Click the Performance tab and you'll see a button for Start Recording Performance. Don't click it yet. This will help take a performance snapshot of what happens during the time things....stall.
- Go back to TB and, again, set up a situation that you know will cause the "assembling message" stall. Basically the last step(s) before you click Send and it goes into a stall. Get to that point.
- Once you're ready to re-create the stall, go back to thescreen with Start Recording Performance. Click start and QUICKLY go back and click on Send to start the stall.
- Once the stall is over, QUICKLY go back to the Start Recording Performance screen (which should still be recording) and click Stop Recording.
- Now, up at the top left, you'll see a blue "Recording #1. There's a Save next to it. Click Save and save the recorded profile to your desktop. It will save as a JSON file.
- Go to https://profiler.firefox.com
- Click the box that says "load a profile from file" and choose the profile.json file and click Open.
- You'll now see a graph looking thing in front of you. Up at the top right, you'll see an Upload button. Click it, check all the boxes and click the blue upload button. It will create a permalink in the form of https://share.firefox.dev/ with some alpha numeric after the forward slash.
- Post that Permalink here so it can be looked at. That will tell us more.
Assignee | ||
Comment 9•3 years ago
|
||
Thanks for reporting, the new bcc handling code was introduced in bug 1686636, I realize it is super inefficient now. Will make a fix soon.
Updated•3 years ago
|
Assignee | ||
Comment 10•3 years ago
|
||
Only parse the MIME head part in _createDeliveryFile.
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 11•3 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/d9e3d3d48ee5
Make sending bcc mail more efficent in MessageSend.jsm. r=mkmelin
Description
•