如何将电子邮件从Outlook拖到Adobe AIR应用程序中

时间:2023-02-06 22:57:30

This is a quiestion concerning both, Adobe AIR and MS Outlook.

这是关于Adobe AIR和MS Outlook的静态问题。

I'd like to drag an eMail from Outlook into an AIR application. I want the following data to be transferred into the AIR application:

我想将Outlook中的电子邮件拖到AIR应用程序中。我希望将以下数据传输到AIR应用程序:

  • unique ID of the mail in Outlook to create a link into Outlook
  • Outlook中用于创建Outlook链接的邮件的唯一ID

  • rich text of the mail
  • 丰富的邮件文本

  • some information about the mail like sender, recepient, date etc.
  • 有关邮件的一些信息,如发件人,收件人,日期等。

Some windows applications do this, like My Life Organized or Linker. Is this possible in any way for AIR? I'm pretty sure I need not only the AIR application but also some windows app or Outlook plugin to achieve this. Any ideas?

一些Windows应用程序执行此操作,如My Life Organized或Linker。这对AIR来说有可能吗?我很确定我不仅需要AIR应用程序,还需要一些Windows应用程序或Outlook插件来实现这一目标。有任何想法吗?

2 个解决方案

#1


No, thers no way to drag and drop an attachment file from an outlook email

不,他们无法从Outlook电子邮件中拖放附件文件

@Stefan: AIR dosn't allow dragging an eMail from Outlook into an AIR application. Instead you recieve a String, containing some mail infos like subject, size, recipient... No content, no attachments. That's a pity... Please feel free to correct me, but I have searched for a solution for a while and no solution found.... Greetings steelheart

@Stefan:AIR不允许将电子邮件从Outlook拖到AIR应用程序中。相反,你收到一个字符串,包含一些邮件信息,如主题,大小,收件人......没有内容,没有附件。真可惜......请随时纠正我,但我已经找了一段时间的解决方案,没有找到解决方案....问候钢心

#2


  • Basically you listen to NativeDragEvent.NATIVE_DRAG_ENTER, NATIVE_DRAG_DROP and NATIVE_DRAG_EXIT on the UI element that will receive the drop.
  • 基本上,您将在将接收丢弃的UI元素上侦听NativeDragEvent.NATIVE_DRAG_ENTER,NATIVE_DRAG_DROP和NATIVE_DRAG_EXIT。

  • All three of these events are raised with a NativeDragEvent, through which you can access data in various formats via event.clipboard.getData(), passing in a format specified by ClipboardFormats (eg. ClipboardFormats.FILE_LIST_FORMAT)
  • 所有这三个事件都是使用NativeDragEvent引发的,通过它可以通过event.clipboard.getData()以各种格式访问数据,传递ClipboardFormats指定的格式(例如ClipboardFormats.FILE_LIST_FORMAT)

  • In NATIVE_DRAG_ENTER, you can accept/reject the drag operation via the static methods on NativeDragManager
  • 在NATIVE_DRAG_ENTER中,您可以通过NativeDragManager上的静态方法接受/拒绝拖动操作

The classes you need are all in the flash.desktop package. Just experiment with various ClipboardFormats until you see the data you need.

您需要的类都在flash.desktop包中。只需尝试各种ClipboardFormats,直到看到所需的数据。

#1


No, thers no way to drag and drop an attachment file from an outlook email

不,他们无法从Outlook电子邮件中拖放附件文件

@Stefan: AIR dosn't allow dragging an eMail from Outlook into an AIR application. Instead you recieve a String, containing some mail infos like subject, size, recipient... No content, no attachments. That's a pity... Please feel free to correct me, but I have searched for a solution for a while and no solution found.... Greetings steelheart

@Stefan:AIR不允许将电子邮件从Outlook拖到AIR应用程序中。相反,你收到一个字符串,包含一些邮件信息,如主题,大小,收件人......没有内容,没有附件。真可惜......请随时纠正我,但我已经找了一段时间的解决方案,没有找到解决方案....问候钢心

#2


  • Basically you listen to NativeDragEvent.NATIVE_DRAG_ENTER, NATIVE_DRAG_DROP and NATIVE_DRAG_EXIT on the UI element that will receive the drop.
  • 基本上,您将在将接收丢弃的UI元素上侦听NativeDragEvent.NATIVE_DRAG_ENTER,NATIVE_DRAG_DROP和NATIVE_DRAG_EXIT。

  • All three of these events are raised with a NativeDragEvent, through which you can access data in various formats via event.clipboard.getData(), passing in a format specified by ClipboardFormats (eg. ClipboardFormats.FILE_LIST_FORMAT)
  • 所有这三个事件都是使用NativeDragEvent引发的,通过它可以通过event.clipboard.getData()以各种格式访问数据,传递ClipboardFormats指定的格式(例如ClipboardFormats.FILE_LIST_FORMAT)

  • In NATIVE_DRAG_ENTER, you can accept/reject the drag operation via the static methods on NativeDragManager
  • 在NATIVE_DRAG_ENTER中,您可以通过NativeDragManager上的静态方法接受/拒绝拖动操作

The classes you need are all in the flash.desktop package. Just experiment with various ClipboardFormats until you see the data you need.

您需要的类都在flash.desktop包中。只需尝试各种ClipboardFormats,直到看到所需的数据。