A MailExtension for Thunderbird (115+) that uploads large attachments to your cloud and generates a link you can send by mail instead of the file.
-
Thunderbird 115.0 or newer
-
An account on a server running Nextcloud, OpenCloud or ownCloud:
- Nextcloud version 32 or newer (older versions might work, but are not supported by Nextcloud)
- OpenCloud version 3.5 or newer (older versions might work, but have not been tested).
- ownCloud Classic version 10.0.10 or newer.
- ownCloud Infinite Scale (oCIS) version 5 or newer (older versions might
work, but are not supported by
ownCloud)
Caution: You will need some help from your administrator as oCIS does not support *cloud by default.
If you can't or don't want to run your own server, many companies offer to run it for you as a hosted service:
- Go to Preferences -> Compose -> Attachments
- Click the link "Find more providers..." at the bottom of the page.
- Find *cloud in the list and click the "Add to Thunderbird" button.
- In Thunderbird click "Preferences", then "Compose" and then "Attachments".
- Click the button "Add *cloud".
- Only three settings are strictly necessary:
- Server-URL
- Username
- App Token (or password)
- Open your Nextcloud or ownCloud Classic account in your browser
- Go to Settings -> Security -> App Token
- At the bottom of the page generate a new token.
- Copy&paste it into the "App Token" field of the *cloud preferences page in Thunderbird.
- Also copy the username into the *cloud preferences page in Thunderbird. It might differ from your login username.
- Open your OpenCloud account in your browser.
- Go to Preferences -> App Tokens
- Click the "+ New" button
- Put a name into the "Note" field (for example "*cloud") and choose an expiration date for the App Token
- Copy the App Token from the next dialog and paste it into the "App Token" field of the *cloud preferences page in Thunderbird.
-
Open your oCIS account in the browser
-
Click on the "Application Switcher" in top left corner, left of the ownCloud logo
-
Choose "App Tokens"
If this option is missing from the Applications menu, ask your cloud administrator to install the "App Tokens" app from the oCIS App Store.
-
Click the "Create" button
-
Copy the App Token in the next dialog and paste it into the "App Token" field of the *cloud preferences page in Thunderbird.
With Nextcloud *cloud will try to obtain an App Token for you:
- Put your user password into the "App Token" field of the *cloud preferences page in Thunderbird.
- Click "Save". *cloud will try to get a token from your Nextcloud and use it instead of your password. You will notice the change, because afterwards the password field is filled with dots completely (app tokens are quite long).
After you have added at least one account there are three ways to start the upload:
- Add an attachment that is larger than the upload threshold. Thunderbird will then show a yellow notification bar at the bottom of the message window with a "Link" button. To get this button for smaller attachments you can change the threshold: Go to Preferences -> Compose -> Attachments and change the value "Offer to share...".
- In the message window in the attachments menu (downward arrow in the "Attach" button), there is an entry "Filelink". It lets you choose a file and uploads it immediately.
- After you added an attachment you can choose "Convert to..." from that attachments context menu (right click on the attachment).
Solution: You'll find the configuration in Thunderbird's Preferences, see Configure above.
Uploads fail and the *cloud status says "Sharing failed", but I can still find the files in my cloud. What can I do?
There are three possible causes:
By default, Nextcloud allows a user to create at most 20 share links within any 10-minute interval. If you send emails with many attachments in a short time, this limit may be reached. Ask your cloud administrator to raise the limit.
Solution: A section in the cloud admin documentation explains how to change the limit.
The download password has to comply with all the rules for passwords on your cloud, otherwise the upload will fail. Nextcloud, OpenCloud and ownCloud all have default password rules, and your admin might have configured additional ones.
Solution: Choose a more complicated password or activate the "Use generated passwords" option.
Sharing problems may also be caused by a misconfiguration of the cloud server.
Solution: Point your cloud admin to the section on Apache and mod_rewrite in the cloud admin documentation.
Sorry, but I can't.
Add-ons like *cloud have no chance to do that, because the template text surrounding the URL is part of Thunderbird. The Add-on only supplies the URL, Thunderbird wraps its template around it and inserts the whole thing into your message.
Short answer: No, I don't want to do that.
Background: If you use download passwords, don't put them into an email, but give them to the recipient via a separate, secure channel e.g. a messenger or a telephone call.
Why? As a security measure the generated download links contain a long, almost random part. This means an attacker (let's call her Eve) can't guess the link for a file or scan all possible links to find a file. The only reasonable way for Eve to gain access to your file is to intercept the email. The links are therefore fairly secure by themselves and quite comfortable for the recipient, because she only has to click the link.
A download password in the same email therefore doesn't make the transfer more secure, but only more complicated for the recipient. The same goes for a separate email with the password: If Eve can intercept the first email with the link, she is probably also able to intercept the second email.
I shared files with the same name from different folders, but only one file is uploaded and all links point to this file. What's wrong?
If you share a file that has
- the same name and
- identical size and
- identical modification time (to the second)
as a file that has been shared before, *cloud considers this to be the same file and does not upload it again. Instead, *cloud creates a share link to the first file.
If you've got files that are the same in these three ways but have different content, this can lead to the wrong file being shared. This could happen, for example, if you use a program that generates several files in different folders quickly.
Solution: At the moment you can only change the file names or set
different modification times (use the touch command on Unix systems).
The URL I use to access my cloud account does not work when I type it into the *cloud configuration. What can I do?
There are two possible causes:
Your cloud administrator might have configured a simple URL that redirects your browser to the actual URL of the cloud. *cloud can't follow this redirect automatically.
Solution:
- Log into your cloud account in the browser.
- Copy the URL after login
- Paste it into the *cloud configuration in Thunderbird.
If the admin of your cloud used something called a "self signed certificate", Thunderbird (not *cloud) refuses to connect to the server.
Solution 1 (preferred): Tell your admin about the problem. She might install another type of certificate, which Thunderbird accepts.
Solution 2 (if Solution 1 is not possible): Force Thunderbird to accept the certificate:
- Open Thunderbird's preferences
- Go to "Privacy & Security"
- Scroll down to "Certificates"
- Click on "Manage Certificates"
- Choose "Servers"
- Click on "Add Exception"
- Enter your cloud's address in the "Location" field
- Click "Get Certificate"
- Click "Confirm Security Exception"
If things still don't work, I'd appreciate a problem report by email. Thanks.
- Johannes Endres, initial implementation, maintainer
- Josep Manel Mendoza, Catalan and Spanish localizations
- Gorom, French localization
- Jun Futagawa, implementation of generated random passwords
- Lionel Elie Mamane, solution of the LDAP/getapppassword problem
- Óvári, Hungarian localization
- Pietro Federico Sacchi, Italian localization
- Asier Iturralde Sarasola, Basque localization
- Anatolii Balbutckii, Russian localization
- Aleš Petržík, Czech localization
- mixneko, traditional Chinese localization
- Based on Filelink Provider for Dropbox by Geoff Lankow
- Inspired by Nextcloud for Filelink by Olivier Paroz and Guillaume Viguier-Just.
- Thanks to @JasonBayton for his Nextcloud demo servers of many (old) versions, that helped in the initial testing a lot.
- Contains punycode.js, Copyright Mathias Bynens, MIT license
- Contains photon-components-web