使用Gmail邮件源,生成直接链接 [英] Using Gmail message source, generate direct link

查看:74
本文介绍了使用Gmail邮件源,生成直接链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,使用gmail消息源是否可以在GMail自己的界面中生成指向消息/线程的链接?

http://productforums.google.com/forum/#上! topic/gmail/goChl1gG0NQ 他们使用以下

https://mail.google.com/mail/#all/<HexEncodeMessageID>

这与在邮件源中找到的Message = ID标头有关吗?

Message-ID: <SomeID@SomeID.mail>

讨论通过IMAP查找Gmail网址ID 似乎仅提供基于IMAP的解决方案.

解决方案

更新

此书签不再起作用.参见本杰明·齐珀特(Benjamin Ziepert)的更新.

原始答案

我决定制作一个书签,以帮助实现此目的的自动化.

javascript:window.location="https://gmail.com/#search/rfc822msgid:"+encodeURIComponent(window.document.body.innerHTML.match(/Message-ID: &lt;(.*)&gt;/i)[1])+"/"+encodeURIComponent(window.location.search.toString().slice(1).split('&').filter(function(x){return x.slice(0,3) == "th="})[0].slice(3));

将此链接保存在书签栏上. 要直接链接到邮件,请在该邮件的下拉菜单中选择显示原始邮件",然后在打开的新页面上单击书签.

如果有人提出了一种干净的方法来完成此操作的建议,而不必单击显示原始文档",那么我无所不用其极.

So using the gmail message source is it possible to generate, a link to the message/thread in GMail's own interface?

on http://productforums.google.com/forum/#!topic/gmail/goChl1gG0NQ they use the following

https://mail.google.com/mail/#all/<HexEncodeMessageID>

Is this related to the Message=ID header found in the mail's source?

Message-ID: <SomeID@SomeID.mail>

The discussion Find Gmail url-IDs via IMAP seems to only give IMAP based solutions.

解决方案

Update

This bookmarklet no longer works. See Benjamin Ziepert's update.

Original Answer

I decided to make a bookmarklet to help automate this.

javascript:window.location="https://gmail.com/#search/rfc822msgid:"+encodeURIComponent(window.document.body.innerHTML.match(/Message-ID: &lt;(.*)&gt;/i)[1])+"/"+encodeURIComponent(window.location.search.toString().slice(1).split('&').filter(function(x){return x.slice(0,3) == "th="})[0].slice(3));

Save this link on your bookmarks bar. To get a direct link to a message, choose "Show original" on the dropdown for that message, and then click the bookmarklet on the new page that opens.

If anyone has suggestions for a clean way to do this without having to click show original, I'm all ears.

这篇关于使用Gmail邮件源,生成直接链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆