Skip to content

Instantly share code, notes, and snippets.

@alangrainger
Last active April 12, 2025 17:28
Show Gist options
  • Save alangrainger/ef52d535f7b1cc4c0c1b23da4e91806d to your computer and use it in GitHub Desktop.
Save alangrainger/ef52d535f7b1cc4c0c1b23da4e91806d to your computer and use it in GitHub Desktop.
Copy a direct link to a Gmail email to your clipboard
@vincentremond
Copy link

Thank you so much for this !!

@PrecisEngineering
Copy link

This is very clever!
I have an issue where the link only works for myself. Do you know if there is a way to get a link to an email so that anyone on that thread can click and go to that email?
I've tried to find a solution and this is the closest I've come. It works great for self reference, however if I want to tell a team member "check out this email thread and continue the conversation there " I cannot seem to make it work.

Any advice is helpful!

@alangrainger
Copy link
Author

That seems very unlikely - you wouldn't want other people to be able to get into your email ;)

@PrecisEngineering
Copy link

PrecisEngineering commented Oct 6, 2023

That seems very unlikely - you wouldn't want other people to be able to get into your email ;)

Oh yea I see what you mean, I was hopeful that there's a solution like if Bob, Jack, and Susan are on an email with me, and I need to link to that email thread some time down the road so they can just click and go to it. Ideally, it would work for people already included in that email chain/thread
-edit:
So that if Bob clicks the link it brings them to the email thread, but if someone not included in the original email clicks it (maybe Charles), they won't have access.

@mnarian
Copy link

mnarian commented Oct 21, 2023

Awesome. Thank YOU :)

@sbhal
Copy link

sbhal commented Apr 3, 2024

Replace #inbox with #all to be able to open email later even if you archive it.

@alangrainger
Copy link
Author

Replace #inbox with #all to be able to open email later even if you archive it.

Updated, thanks for that @sbhal !

@TheGrandJaggard
Copy link

@alangrainger I have the same need that @PrecisEngineering mentioned:

It works great for self reference, however if I want to tell a team member "check out this email thread and continue the conversation there " I cannot seem to make it work.

Do you know if this would be possible?

@sstangle73
Copy link

sstangle73 commented Jan 2, 2025

This is helpful! Any way to extract the full email and replace the u/1, u/2, etc. with the actual email? Trying to save links to emails in my notes app, but the u number is different on different computers.

Edit, looks like this fork may do it: https://gist.github.com/daniel-barrows/93864da22cc017723a344b684f38fbb5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment