问题描述
因此,使用gmail消息源是否可以在GMail自己的界面中生成指向消息/线程的链接?
在 http://productforums.google.com/forum/#上! topic/gmail/goChl1gG0NQ 他们使用以下
https://mail.google.com/mail/#all/<HexEncodeMessageID>
这与在邮件源中找到的Message = ID标头有关吗?
Message-ID: <[email protected]>
讨论通过IMAP查找Gmail网址ID 似乎仅提供基于IMAP的解决方案.
更新
此书签不再起作用.参见本杰明·齐珀特(Benjamin Ziepert)的更新.
原始答案
我决定制作一个书签,以帮助实现此目的的自动化.
javascript:window.location="https://gmail.com/#search/rfc822msgid:"+encodeURIComponent(window.document.body.innerHTML.match(/Message-ID: <(.*)>/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: <[email protected]>
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: <(.*)>/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邮件源,生成直接链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!