Skip to content

Add mailto link to "Show ID" dialog, for sending device ID via email #2771

Closed

Description

@generalmanager

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

  1. changed the title [-]UI: [/-] [+]UI: add mailto link to "Show ID" dialog[/+] on Feb 10, 2016
  2. ProactiveServices commented on Feb 10, 2016

    @ProactiveServices
    Contributor

    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 :-)

  3. generalmanager commented on Feb 10, 2016

    @generalmanager
    Author

    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.

    it might not be running on the default port (8384)

    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.

    They're new users but I expect if they have it installed, they'll know how to open it. I hope :-)

    I've done too much work in IT support to believe there is anything they can't fuck up ;)

  4. calmh commented on Feb 11, 2016

    @calmh
    Member

    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.

  5. added
    enhancement
    on Feb 11, 2016
  6. added this to the milestone on Feb 11, 2016
  7. changed the title [-]UI: add mailto link to "Show ID" dialog[/-] [+]Add mailto link to "Show ID" dialog, for sending device ID via email[/+] on Feb 11, 2016
  8. canton7 commented on Feb 11, 2016

    @canton7
    Contributor

    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...

  9. generalmanager commented on Feb 11, 2016

    @generalmanager
    Author

    @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?

  10. canton7 commented on Feb 11, 2016

    @canton7
    Contributor

    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.

    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.

    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?

    Sure - I never suggested doing it silently. That would be impossible anyway: the user has to choose the location of the folder, whatever happens.

  11. generalmanager commented on Feb 11, 2016

    @generalmanager
    Author

    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.

    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.

  12. canton7 commented on Feb 11, 2016

    @canton7
    Contributor

    Ah, I missed this bit of your proposal:

    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

  13. generalmanager commented on Feb 11, 2016

    @generalmanager
    Author

    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.

  14. calmh commented on Feb 13, 2016

    @calmh
    Member

    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.

    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.

  15. calmh commented on Feb 13, 2016

    @calmh
    Member

    Also, it's one more thing to translate into every language, which is simpler if it's short and to the point.

  16. 3 remaining items

  17. generalmanager commented on Feb 15, 2016

    @generalmanager
    Author

    Sounds great 👍

  18. lkwg82 commented on Mar 10, 2016

    @lkwg82
    Contributor

    So where is the PR? A mailto link is not that difficult. 😄

  19. removed this from the milestone on Feb 11, 2018
  20. added a commit that references this issue on Oct 1, 2021
    63814a4
  21. added a commit that references this issue on Feb 9, 2022
    c055236
  22. added 2 commits that reference this issue on Apr 18, 2022
    ad7b574
    aac7547
  23. added a commit that references this issue on Sep 12, 2022
    4770b31
  24. added a commit that references this issue on Nov 8, 2022
    db49472
  25. added this to the v1.22.2 milestone on Nov 9, 2022
  26. added a commit that references this issue on Nov 22, 2022
    4ee1015
  27. added
    frozen-due-to-age
    on Nov 8, 2023
  28. locked and limited conversation to collaborators on Nov 8, 2023
  29. added a commit that references this issue on Jan 30, 2024
    5e384c9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions