tmccoid-tech / extract-em

Extract 'Em!: email attachment extraction extension for Mozilla Thunderbird
https://addons.thunderbird.net/en-US/thunderbird/addon/extract-em
Mozilla Public License 2.0
2 stars 0 forks source link

Intermittent failure of extraction (large-sized set?) #6

Closed tmccoid-tech closed 3 months ago

tmccoid-tech commented 3 months ago

Reported by M. Pitot:

Windows 11 : 23H2 Thunderbird : 115.9 Extrac'Em! : 1.1.2

I have been using it to extract thousands of attachments (around 7000) from thousands of mails (around 35000) !

It has worked nicely in most cases but it is getting stuck at the 'Discover Attachments' stage in some cases. As I have so many mails, I haven't managed to find out the precise cause of the problem. But it seems to be linked with '.eml' attachments. I have one case where a single mail has 23 .eml attachments, most of them with a duplicate name (Farewell.eml). This mail is marked by Thunderbird as having attachments but is not seen by Extract'Em! as having any.

tmccoid-tech commented 3 months ago

There is a known issue when the collective size of included attachments is large (somewhere in the 750 MB vicinity); I have a fix in the works which I hope to release next week.

If your emails are organized into different folders, you might try using the Let Me Choose option and selecting subsets of folders so the resulting .zip file will be smaller and less likely to cause that problem.

Another possible solution -- assuming your suspicion of .eml file involvement is correct -- is to do the following:

1) Open the extension options and select Default grouping: by Extension, and Image preview: None 2) Select the Let Me Choose option and discover the attachments 3) Select the Attachment List tab 4) Find the .eml file grouping, and de-select the checkbox in the grouping header (which will also de-select all individual .eml attachments) 5) Click the extract button at the top of the Attachment List tab

One thing you could do to help, if you are willing, is the following:

1) From the Thunderbird Menu, select Tools | Developer Tools | Debug Add-ons 2) Click the Inspect button associated with the Extract Em! extension 3) In the window that opens, select the Console tab 4) Run the extraction; if any errors occur, an error message should be output to the console -- please report this

I will update you when I have a new version available; you will be able to download it directly from this site so that you won't have to wait for the version to be approved by the Thunderbird extension admins, which could take a few days.

tmccoid-tech commented 3 months ago

Closing; the issue stemmed around improper handling of certain exceptions (deleted attachments, detachments, etc. Fixed as of version 1.1.3