如何使用工作流程在Azure存储中创建MSG(Outlook)Blob

发布于 2025-01-21 11:09:46 字数 69 浏览 1 评论 0 原文

我正在尝试使用Azure Logic应用从共享邮箱创建.msg文件。但是逻辑应用程序返回JSON,无法从中创建.msg文件。

I am trying to create .msg file from shared mailbox using Azure Logic app. But logic app returns json , not able to create .msg file from it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

卖梦商人 2025-01-28 11:09:46

首先,MSG格式是要求吗?如果您只想在Outlook中打开一些内容,请创建一个EML(MIME)文件 - Outlook也很乐意打开它,即使EML也无法存储所有自定义或Outlook特定属性。 EML文件格式是基于文本的,因此在代码中很容易创建。

如果您仍然需要MSG格式,则您的选项为

  1. 扩展MAPI(C ++或Delphi,必须安装Outlook才能在场的MAPI系统) - 请参见 stgopenstorage / stgcreatestorageex / openimsgonistg 在MSDN上功能。

  2. Create MSG file explicitly in your code - its format is

  3. 第三方库(例如 aspose ) - 您的里程可能会有所不同。

  4. 扩展的Mapi包装器(例如赎回者)(我是它的作者) - 您可以创建一个 rdoSession 对话并调用 rdosession.createmessagefrommsgfile ,填充对象属性,并调用 rdomail.save


Firstly, is MSG format a requirement? If you want just something you can open in Outlook, create an EML (MIME) file - Outlook will be happy to open it even EML won't be able to store all custom or Outlook specific properties. EML file format is text based, so it is easy to create in your code.

If you still need MSG format, your options are

  1. Extended MAPI (C++ or Delphi, Outlook must be installed for the MAPI system to be present) - see StgOpenStorage / StgCreateStorageEx / OpenIMsgOnIStg functions on MSDN.

  2. Create MSG file explicitly in your code - its format is documented, but it is as binary as it gets.

  3. Third party libraries (such as Aspose) - your mileage may vary.

  4. Extended MAPI wrapper like Redemption (I am its author) - you can create an instance of the RDOSession object and call RDOSession.CreateMessageFromMsgFile, populate the RDOMail object properties, and call RDOMail.Save.

凝望流年 2025-01-28 11:09:46

从我们的尽头复制后,这是对我们有用的解决方法之一。在提到了Blob名称及其扩展名(.msg)之后,我们能够使其正常工作。

以下是我的逻辑应用屏幕截图

“

结果:

//i.sstatic.net/eh8pz.png

” inter taimy Description在此处“>

将其下载到本地

“在此处输入映像”

After reproducing from our end, Here is one of the workarounds that worked for us. After mentioning the blob name along with its extension (.msg), we could able to get it to work.

Below is my Logic App Screenshot

enter image description here

RESULTS:

enter image description here

In storage account

enter image description here

After downloading it to local

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文