Skip to content

About

Thunderbird add-on to batch extract and download email attachments as individual files or ZIP archives. Free, open-source and privacy-focused.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Attachment Batch Extract for Thunderbird

Extract and download attachments from multiple Thunderbird emails in one operation. Save attachments as separate files or export them together in a ZIP archive, without manually opening each message.

Developed by Any Communication, an independent digital agency in France.

Install from Thunderbird Add-ons · Releases · Report a bug or suggest a feature · Any Communication

  • Version: 0.1.8
  • Minimum Thunderbird version declared: 115.0
  • License: MIT

Features

  • Extract attachments from multiple selected emails using the context menu.
  • Save individual files or export a ZIP archive.
  • Configure a relative destination subfolder within Thunderbird’s download folder.
  • Optionally prefix filenames with the email date.
  • Available in English, French, German, Spanish and Italian.

Installation and usage

Recommended: Thunderbird Add-ons

Install Attachment Batch Extract from the official Thunderbird Add-ons catalog. This is the recommended distribution channel for automatic updates.

Alternative: GitHub Releases

Download the XPI from GitHub Releases, or build it using the instructions below. In Thunderbird, open Add-ons and Themes and select Install Add-on From File.

Usage

Select messages, right-click and choose the desired attachment extraction action.

Privacy and permissions

Attachment Batch Extract processes selected email attachments locally in Thunderbird. The add-on code does not send attachments to an external server, include analytics or request access to external websites. Preferences are stored locally.

Permission Purpose
menus Add extraction commands to the message context menu.
messagesRead Read attachments from selected messages.
downloads Save files and ZIP archives.
storage Store local preferences.
notifications Display extraction results and status.

Large ZIP exports may require substantial memory. For very large batches, consider extracting smaller groups of messages.

En français

Attachment Batch Extract est une extension Thunderbird permettant de télécharger en lot les pièces jointes de plusieurs e-mails sélectionnés, sous forme de fichiers individuels ou d'une archive ZIP. Le traitement est local. L'extension permet également de choisir un sous-dossier de destination et de préfixer les noms de fichiers avec la date du message.

Installer gratuitement l’extension depuis Thunderbird Add-ons.

Source & build (AMO/ATN)

Thunderbird MailExtension. Add-on ID attachment-batch-extract@example, manifest v2, strict_min_version 115.0.

This project is the build toolchain for the add-on. The only third-party library shipped with the add-on is JSZip. Its official pre-built file is included in extension/lib/. It is pinned in package.json (jszip@3.10.1) and package-lock.json, fetched from the npm registry, and copied verbatim into extension/lib/jszip.min.js by the build script. Nothing is minified, transpiled or bundled by us.

Requirements

  • Node.js 18+ and npm (tested with Node 22).

Build (packages the extension source and verified JSZip)

npm ci          # installs the pinned JSZip 3.10.1 from package-lock.json
npm run build   # verifies JSZip, copies it, and writes dist/attachment_batch_extract-0.1.8.xpi

npm run build prints the SHA-256 of the copied jszip.min.js. It must be:

acc7e41455a80765b5fd9c7ee1b8078a6d160bbbca455aeae854de65c947d59e

If you do not yet have a package-lock.json, run npm install once (it generates the lock file), then commit it and use npm ci from then on.

Re-create the source archive to upload

npm run pack-source   # writes attachment_batch_extract-0.1.8-source.zip

This archives the source while excluding Git metadata, node_modules/, dist/ and generated XPI/ZIP artifacts, i.e. the add-on source + package.json + package-lock.json. That zip is what you attach as the "source code" on addons.thunderbird.net.

What to upload on addons.thunderbird.net

  1. Add-on file: dist/attachment_batch_extract-0.1.8.xpi
  2. Source archive: attachment_batch_extract-0.1.8-source.zip

Project layout

extension/                exact files shipped in the XPI (manifest.json at root)
  manifest.json
  background.js
  options.html
  options.js
  VENDOR                  third-party library notice (JSZip)
  _locales/{de,en,es,fr,it}/messages.json
  icons/
  lib/jszip.min.js        written by `npm run build` (from node_modules/jszip)
scripts/
  build.mjs               copy + verify JSZip, package the XPI
  pack-source.mjs         build the source archive (excludes node_modules/dist)
package.json              pins jszip@3.10.1 (+ archiver for packaging)
package-lock.json         exact dependency versions (generated by npm)

Notes for the reviewer

  • The add-on calls JSZip only from the background script (extension/background.js, function extractAsZip).
  • The Function constructor is eval warning originates inside JSZip's bundled setimmediate polyfill (file dist/jszip.js, new Function("" + callback)). It is part of the unmodified upstream library, not add-on code.

License

The original project code is licensed under MIT (see LICENSE). JSZip retains its upstream license and copyright notices; see extension/VENDOR.

About

Thunderbird add-on to batch extract and download email attachments as individual files or ZIP archives. Free, open-source and privacy-focused.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages