CFIMAP和嵌入式附件下载 [英] CFIMAP and Embedded Attachment Download

查看:84
本文介绍了CFIMAP和嵌入式附件下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个继承的ColdFusion 9应用程序,该应用程序登录到Outlook电子邮件框中,然后处理电子邮件,下载附件,并将发送给它的电子邮件保存到数据库中以进行长期存储.该解决方案可以通过cfimap正常运行,直到收到一封包含嵌入邮件正文中的附件的电子邮件为止.

I have a ColdFusion 9 application I inherited that signs into an Outlook email box then processes email, downloads attachments, and saves emails sent to it into a database for long term storage. This solution is working fine via cfimap until it gets an email where there are attachments embedded into the message body.

带有附件的电子邮件的基本过程如下:

  1. 检查新电子邮件并将其保存到数据库
  2. 检查列出的附件并将其保存到存储文件管理器中
  3. 如果有附件,请检查以确保附件已下载.
  4. 如果有附件和附件已下载,请将电子邮件标记为删除.
  5. 电子邮件已从收件箱中删除.

我遇到的问题是电子邮件附件中嵌入了附件.

The problem I am encountering is in emails where the attachments are embedded into the body of the message.

例如,当我输出

主题:我的带有嵌入式图像和文档的电子邮件

SUBJECT: My Email with Embedded Images and Documents

附件:image001.gif image002.gif image003.gif image004.gif image005.gif image006.gif image007.gif 1200084.DOC.DOC

ATTACHMENTS: image001.gif image002.gif image003.gif image004.gif image005.gif image006.gif image007.gif 1200084.DOC.DOC

附件文件:

如您所见,它说有附件,但是当您检查附件文件时,什么都没有.登录Outlook后,我可以看到单词文档作为附件以及邮件正文中嵌入的图像列出.

As you can see it says there are ATTACHMENTS, but when you check the ATTACHMENTFILES, there is nothing. When I sign into outlook, I can see the word document listed as an attachment as well as the embedded images inside the message body.

因此,我的目标是编写一个清理脚本,该脚本将完成这些电子邮件上的附件的下载,以便我们可以将其保存到长期存储中,然后从Outlook中删除该电子邮件.是否有人有解决方案来下载嵌入到电子邮件正文中且未出现在ATTACHMENTFILES列表中的附件?

So my goal is to write a cleanup script that will finish downloading the attachments on these emails so that we can save them into long term storage and then delete the email from outlook. Does anyone have a solution to download attachments that are embedded into the body of an email message and do not appear in the ATTACHMENTFILES list?

推荐答案

如果要访问Exchange Server,则可能要尝试使用CFEXCHANGE标记.它似乎比CFIMAP标签更强大,更可靠.我已经与CFIMAP争夺同一个问题超过一年了.由于似乎没有办法在枚举文件之前访问由CFIMAP"getAll"命令创建的对象,因此无法进行任何清理.

If you're accessing an Exchange Server, you might want to try using the CFEXCHANGE tag. It seems to be more capable and reliable than the CFIMAP tag. I've been battling the same problem with CFIMAP for more than a year. Since there doesn't appear to be a way to access the object created by the CFIMAP "getAll" command before the files are enumerated, there is no way to do any clean up.

这篇关于CFIMAP和嵌入式附件下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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