Repository navigation
Description
This is one of a number of proposals which are supposed to make it easier for beginners to get a working share setup.
For reference: https://forum.syncthing.net/t/different-view-on-security-perspective/6678/38
#120
A simple "mailto:" link in the "show ID" dialog between the ID and QR code to enable desktop users to email the device ID would be nice. Ideally tough, it would be a text-entry field next to a send button with a little JS to replace the [email protected] with the address(es) entered.
This isn't very secure by default, but neither are phone calls. And security concious users can use GPG/PGP.
Here is a working example for the link:
<a href="mailto:[email protected]?subject=My%20Syncthing%20ID%20for%20XXXXXXXX&body=Hello,%0D%0A%0D%0Athe%20person%20sending%20you%20this%20email%20wants%20to%20share%20some%20files%20with%20you%20via%20Syncthing%20from%20the%20device%20XXXXXXXX.%0D%0A%0D%0ASyncthing%20replaces%20proprietary%20sync%20and%20cloud%20services%20with%20something%20open,%20trustworthy%20and%20decentralized.%20Your%20data%20is%20your%20data%20alone%20and%20you%20deserve%20to%20choose%20where%20it%20is%20stored,%20if%20it%20is%20shared%20with%20some%20third%20party%20and%20how%20it's%20transmitted%20over%20the%20Internet.%0D%0A%0D%0AIf%20Syncthing%20is%20already%20installed,%20just%20open%20it%20at%20http://localhost:8384%20and%20create%20a%20new%20device%20with%20this%20ID:%0D%0AXXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX%0D%0AIf%20they%20have%20already%20shared%20a%20folder%20with%20you,%20Syncthing%20will%20ask%20you%20if%20you%20want%20to%20accept%20it%20after%20a%20short%20time.%0D%0A%0D%0AIf%20Syncthing%20isn't%20installed%20yet,%20you%20can%20get%20it%20here:%20https://syncthing.net#main%0D%0A%0D%0AHave%20fun%20with%20Syncthing%20and%20don't%20hesitate%20to%20ask%20in%20the%20forums%20if%20you%20have%20any%20questions%20or%20ideas%20for%20improvement:%20https://forum.syncthing.net%0D%0A%0D%0AKind%20regards,%0D%0Athe%20Syncthing%20team">Send device ID via mail</a>
It automatically fills the subject with:
My Syncthing ID for XXXXXXXX
And the body with:
Hello,
the person sending you this email wants to share some files with you via Syncthing from%the device XXXXXXXX.
Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.
If Syncthing is already installed, just open it at http://localhost:8384 and create a new device with this ID:
XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX
If they have already shared a folder with you, Syncthing will ask you if you want to accept it after a short time.If Syncthing isn't installed yet, you can get it here: https://syncthing.net#main
Have fun with Syncthing and don't hesitate to ask in the forums if you have any questions or ideas for improvement: https://forum.syncthing.net
Kind regards,
the Syncthing team
Activity
[-]UI: [/-][+]UI: add mailto link to "Show ID" dialog[/+]ProactiveServices commentedon Feb 10, 2016
Since some users (e.g. Windows via Synctrayzor) don't use their web browser to interact with Syncthing, and it might not be running on the default port (8384), do you think the "just open it at x" is best left out?
They're new users but I expect if they have it installed, they'll know how to open it. I hope :-)
generalmanager commentedon Feb 10, 2016
Yeah I thought about that too. But even for the windows users it doesn't break anything, the UI looks identical to Synctrayzor, apart from the Synctrayzor settings.
If it's not running on the default port, they probably changed it themselves, so they are likely to be familiar enough with ST to get to the UI. Or do some of the more popular wrappers change the default port?
I meant to change 8080 to the new port, but forgot to look it up after writing the issue, so that obviously never happened.
I've done too much work in IT support to believe there is anything they can't fuck up ;)
calmh commentedon Feb 11, 2016
This seems reasonable, although I'd cut down the text of the mail significantly. It basically would just need to include the information that this is the device ID and assume that the recipient knows what it's about.
[-]UI: add mailto link to "Show ID" dialog[/-][+]Add mailto link to "Show ID" dialog, for sending device ID via email[/+]canton7 commentedon Feb 11, 2016
I think you can create a mailto link without a recipient? Might be preferable here.
I'm still a fan of being able to create a clickable link (of the form
syncthing://share?deviceId=xxx&folderId=xxx), and have Syncthing register as the handler for that URL scheme (where possible). Then the instructions become simply "click this link", and everything else is taken care of.Although not sure how much pain and/or suffering that might cause on linux / headless systems...
generalmanager commentedon Feb 11, 2016
@calmh Why do you want minimal text? What benefits does this have? At this point the recipient might never have heard of syncthing and will get a call/message to explain later. In this case, a little explanation can go a long way.
@canton7 Jup, a link with an empty recipient would be the easiest method. In that case the user still has to interact with the newly opened UI to enter the recipient. If we could bootstrap this so that everything apart from hitting "send" is taken care of, people would probably even want to use the feature.
I also really like the custom URL scheme from a usability perspective. It also makes phishing-attacks very easy tough. Maybe we can still ask for a confirmation to add device xxx and share folder yyy with it instead of silently adding everything a user clicked?
canton7 commentedon Feb 11, 2016
They'll have to enter the email address to send the email to whatever happens, surely? 😉 Leaving the 'To' field blank just means that their email client will refuse to send the email until they add a recipient, rather than sending it to
example.com.Sure - I never suggested doing it silently. That would be impossible anyway: the user has to choose the location of the folder, whatever happens.
generalmanager commentedon Feb 11, 2016
Yes of course. But our brains don't like it if we have to stop what we are doing, to be presented a new UI and having interact with this UI then. I can't recall what the effect is called right now, but it leads to a lot more frustration than doing everything in the first step and just having to click "send" in the second one.
canton7 commentedon Feb 11, 2016
Ah, I missed this bit of your proposal:
generalmanager commentedon Feb 11, 2016
Yup, having an empty field filled is better tough, as the mail client will then refuse to send it when JS is disabled and someone clicks on the link.
If nobody wants to do the JS stuff, a mailto link without recipient would still be better than the current behavior.
calmh commentedon Feb 13, 2016
The fact that it is a syncthing device id is of course fine to mention. But any explanatory text about how to use it is equally likely to be wrong since we know nothing about the recipient setup. And just mailing a device id out of the blue to someone who has never heard of syncthing is likely to be either confusing or interpreted as a phishing attempt anyway.
calmh commentedon Feb 13, 2016
Also, it's one more thing to translate into every language, which is simpler if it's short and to the point.
3 remaining items
generalmanager commentedon Feb 15, 2016
Sounds great 👍
lkwg82 commentedon Mar 10, 2016
So where is the PR? A mailto link is not that difficult. 😄
gui: Add copy to clipboard and send email buttons to device IDs (fixes …
gui: Add copy to clipboard, share by email, and share by SMS buttons …
gui: Add copy to clipboard, share by email, and share by SMS buttons …
gui: Add copy to clipboard, share by email, and share by SMS buttons …
gui: Add copy to clipboard, share by email, and share by SMS buttons …
Merge branch 'main' into fix-8556
Merge branch 'main' into linuxbuild
gui: Add copy to clipboard, share by email, and share by SMS buttons …