ThunderbirdAttachmentExtractor icon indicating copy to clipboard operation
ThunderbirdAttachmentExtractor copied to clipboard

refactor completely to make compatible with TB140 to fix #35

Open meigelb opened this issue 4 months ago • 9 comments

Code has been completely refactored to work with Thunderbird 140 to fix #35. Backward compatibility has not been tested. The PR comprises the following changes:

  • modularize for reusability
  • move crucial parts to Experiment API
  • improve const correctness
  • keep almost all functionality of 1.8.2, only remove listing of non-extractable attachments
  • require confirmation by user before overwriting files during extraction
  • provide more details to user, such as number of extracted attachments
  • deduplicate listing of files to be deleted
  • fixes #27 to use filename when canceling template pattern for filenames
  • addresses issues with wording to partly fix #29

meigelb avatar Aug 21 '25 23:08 meigelb

Thanks for the refactoring. Works perfectly. :heart:

de-es avatar Aug 24 '25 11:08 de-es

Sounds perfect! Do you have any plans to bring this new version to addons.thunderbird.net?

diskoteer avatar Oct 02 '25 09:10 diskoteer

First of all, thank you for this refactoring job! :) Unfortunately it does not work (nothing happens) if the selected items include e-mails without attachments or e-mails containing an attachment with the .eml extension.

piterq avatar Oct 22 '25 13:10 piterq

@piterq Can not confirm this. If I select messages with and without attachments at the same time, I get a corresponding message like Only 2 of your 7 selected messages contain extractable attachments. and the extraction works as expected.

.eml attachments work for me as well in this scenario.

de-es avatar Oct 23 '25 08:10 de-es

@de-es It works correctly on IMAP accounts. In my case this was on POP3 account and I can reproduce it right now. I'm using meigelb refactored version on Thunderbird 140.4.0 esr.

piterq avatar Oct 23 '25 13:10 piterq

can someone explain whats to do? dont understand this :/

Cozynezz avatar Nov 05 '25 19:11 Cozynezz

Just append or replace .xpi to the following zip file. Then you have the updated extension with the changes from meigelb. [email protected]

de-es avatar Nov 06 '25 09:11 de-es

The repo owner @thestonehead has had no activity in this whole year. @meigelb or I can create a new addon listing.

z-aki avatar Nov 21 '25 10:11 z-aki

The repo owner @thestonehead has had no activity in this whole year. @meigelb or I can create a new addon listing.

Would love to see that, would make integration much smoother

battle566 avatar Nov 29 '25 22:11 battle566