Skip to content

Saving multiple documents from inbox results in saving the same document with changed names multiple times #11156

Description

@neisor

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

19.2

Where did you get the app from?

Google Play

Android version

16

Device model

Xiaomi 17 Ultra

Steps to reproduce

  1. Send yourself an e-mail with multiple attachments of the same type (for example, 5 PDF files)
  2. Open the obtained e-mail in your inbox
  3. Save all attachments at once using the "Save all" button, do not save them individually one by one
  4. It should open your file manager and ask you where you want to save the files
  5. Save the documents in the same folder
  6. You end up with it only saving 1 document from the original 5 documents, with only it changing it's name to the rest of the documents which were in your e-mail message. So there will be 5 PDF documents saved, but they will all have the same content, even though the original 5 PDF documents were each having different content.

Expected behavior

  1. I would expected that all of the documents saved at once from the Thunderbird Android app will be saved correctly, with their correct names of the files and with their proper content.
  2. I would also expect the android Thunderbird app to only ask me for a folder where I want to save all the attachments at once - not asking me where I want to save each individual PDF document as it is currently done (clicking 5 times the "Save" button in my file manager is not how it works in other e-mail client apps). This point, however, is not that important. More important is point number 1.

Actual behavior

The app, after I click on Save all button to save all of the attachments from the e-mail message, creates 5 documents with the correct names, but the content is all the same between. It's as if it randomly chooses 1 of the 5 documents, saves it 5 times and names these same documents based on the original names of the files from the e-mail message.

For example, if I have 5 PDF files:

  • A.pdf, 100Kb
  • B.pdf, 250Kb
  • C.pdf, 450Kb
  • D.pdf, 500Kb
  • E.pdf, 2MB

Then, if I click on "Save all" button, I end up with having the following in my file manager:

  • A.pdf, 100Kb
  • B.pdf, 100Kb
  • C.pdf, 100Kb
  • D.pdf, 100Kb
  • E.pdf, 100Kb
    Notifce the same size of each saved PDF document in my example. The content is the same as the original A.pdf document across all of the saved files, which should not be the case.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething is causing incorrect behavior or errorsunconfirmedNewly reported issues awaiting triage or confirmation

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions