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

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

问题描述

我希望能够将 Outlook 消息拖放到浏览器中并触发 Javascript 事件,例如创建 使用消息的 GUID 的消息链接.

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

推荐答案

针对旧浏览器和旧 Outlook 的免费插件解决方案:

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/https://www.wilutions.info/ddaddin-download.html

但是这个免费的效果很好,而且是开源的.

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

更新 Outlook 和 dataTransfer API 后,拖放功能似乎可以通过 "items"dataTransfer"的属性drop"的属性事件.然后您必须迭代这些项目并检查它们是否是文件,然后使用它们.但是 FireFox 似乎仍然通过这个 API 与 Outlook 不兼容.不确定其他应用程序.这是他们的错误:https://bugzilla.mozilla.org/show_bug.cgi?id=580928

After updates to Outlook and the dataTransfer API, drag and drop functionality seems to be available in the latest versions of Chrome and Edge via the "items" property of the "dataTransfer" property of the "drop" event. You then have to iterate the items and check if they are files or not and then use them. However FireFox still seems to be incompatible with Outlook via this API. Not sure about other applications. Here is their bug: https://bugzilla.mozilla.org/show_bug.cgi?id=580928

如果您有帐户,可以通过展开页面的详细信息部分来为 bugzilla 中的错误投票.

You can vote for a bug in bugzilla if you have an account by expanding the details section of the page.

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

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