将Outlook邮件拖放到浏览器中 [英] Drag-and-drop Outlook message into browser

查看:154
本文介绍了将Outlook邮件拖放到浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够将Outlook消息拖放到浏览器中并触发Javascript事件,例如,该事件会创建

I want to be able to drag and drop an Outlook message into the browser and fire a Javascript event that, for example, creates a link to the message using the message's GUID.

但是我停留在第一步-尝试将Outlook消息拖到文件夹列表之外的任何位置都会显示不允许的光标.

But I'm stuck at the first step—attempting to drag an Outlook message anywhere outside the folder list shows the not-allowed cursor.

我打算放弃,除了我发现一些帖子中提出了启用操作的方法,例如例如 如何将电子邮件从Outlook拖放到.NET应用程序中?

I was about to give up, except I found some posts suggesting ways to enable the operation, e.g. How to drag and drop an email, from Outlook, into a .NET application?

有什么办法可以做到这一点? (包括编写浏览器扩展,尽管不理想.)

Is there some way to make this possible? (Including writing a browser extension, though not ideal.)

推荐答案

我找到了一个免费的解决方案: https://tonyfederer.github.io/OutlookFileDrag/

I found a free solution: https://tonyfederer.github.io/OutlookFileDrag/

从网站上:

当您尝试从Outlook拖放时,Outlook会将格式正确标识为虚拟文件(CFSTR_FILEDESCRIPTORW),因为这些文件不直接存在于磁盘上.而是将它们包含在PST文件,OST文件或Exchange服务器中.

When you try to drag and drop from Outlook, Outlook correctly identifies the format as virtual files (CFSTR_FILEDESCRIPTORW) since the files do not exist directly on disk. Instead, they are contained in a PST file, OST file, or on an Exchange server.

但是,许多应用程序不支持,例如网络浏览器和大多数.NET/Java应用程序.

However, many applications do not support, such as web browers and most .NET/ Java applications.

要变通解决此问题,Outlook File Drag挂钩Outlook拖放过程,并添加了对物理文件(CF_HDROP)的支持.当应用程序要求提供物理文件时,这些文件将保存到一个临时文件夹中.

To work around this issue, Outlook File Drag hooks the Outlook drag and drop process and adds support for physical files (CF_HDROP). When the application asks for the physical files, the files are saved to a temp folder.

我查看了 https://outlook2web.com/但是这个免费的版本可以正常工作并且是开源的.

but this free one works just fine and it's open source.

附录:较新版本的Outlook似乎已开箱即用.

Addendum: It appears newer versions of Outlook support this out of the box.

这篇关于将Outlook邮件拖放到浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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