This mail extension allow user to use seafile for large attachments. This is a beta version. I will publish this extension on Thunderbird when it will be stable. You can use and test this extension, all basics features are implemented and I don't have intention to break things.
To test this extension, first clone this git repository on your computer.
In the new window, in the "Temporary Extensions" section, click "Load Temporary
Add-on..." and select this project's manifest.json
file.
This install this extension for the session duration only.
Click "Inspect" button to open developpers tools.
Messages logged with console.log()
will appear in the console tab.
You can inspect content of browser storage in storage tab. This extension uses browser storage to store accounts configuration. Look at the "Extension Storage" section.
Once the extension is loaded, open Preferences > Composition.
At the bottom in the attachments section, click on Add Seafile
to add a
filelink provider.
Configure the provider with your seafile server and your credentials.
In order to test with small files, set Offer to share for files larger than
at 0.
Compose a new email
Attach a file
A yellow message at screen's bottom allow you to use Filelink to store the
attachement: just click Link
This extension use webpack. You need to install npm before. Then:
npm init -y
npm install webpack webpack-cli --save-dev
npm install seafile-js --save
npx webpack
This repository use gitflow.
After npm dependencies has been installed, you can generate the zip file that will be send to the Thunderbird team with the following commands:
bash publish.sh
You need to execute the publish.sh file in the root folder of this project. A zip file will be generated in the parent folder.
Install first js-beautify and jshint with npm. Then you can check the code.
npm install js-beautify jshint --save-dev
# run js-beautify
js-beautify.js -r src/*.js
js-beautify.js -r *.js
js-beautify.js -r *.html
# run jshint
jshint src/*.js