tracker issue : CF-3926812

select a category, or use search below
(searches all categories and all time range)
Title:

cfpop converting .msg attachments as duplicate .eml files

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Roberto Anania / Roberto Anania (Roberto Anania)

Created: 01/23/2015

Components: Net Protocols, POP

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Very few users will encounter

Locale/System: English / Win 2008 Web Server

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Problem Description: When receiving an email via cfpop, if the email has a .msg file as an attachment, the file is converted to an .eml file, and the file is then duplicated.

Steps to Reproduce: Send an email with .msg file as an attachment, and then download via cfpop.

Actual Result: see above.

Expected Result: cfpop should download attachments in the format that they were sent

Any Workarounds: if you zip the msg file before sending and send as a .zip file attachment

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3926812

External Customer Info:
External Company:  
External Customer Name: Roberto
External Customer Email:  
External Test Config: My Hardware and Environment details: Windows 2008

Attachments:

Comments:

I have tried reproducing this bug with Exchange server, but is not reproducible. These are the two scenarios, which i have tried : 1. Send a mail using cfmail tag with .msg as the attachment and retrieve it using cfpop. Check the default tmp directory for the attachment. It gets downloaded properly. 2. Send a mail from outlook with an attachment of .msg and retrieve it using cfpop. Check the default tmp directory for the attachment. It gets downloaded properly. Can you please attach the raw data of the mail.
Comment by HariKrishna K.
8811 | January 29, 2015 05:12:31 AM GMT
Hi Roberto and Hari, I'm also unable to reproduce this. I tried w/ a non-Exchange server. Send email: <cfmail from="#cfmailFrom#" to="#cfmailTo#" subject="subject"> <cfmailparam file="foo.msg" content="foobar" /> </cfmail> Retrieve email and attachments: <cfpop action="getall" server="#cfpopServer#" username="#cfpopUsername#" password="#cfpopPassword#" name="q" attachmentpath="#expandPath('./attachments')#" /> The attachmentpath directory then contained only a single foo.msg file having text "foobar". Thanks!, -Aaron
Comment by External U.
8812 | January 29, 2015 05:36:28 AM GMT
Try the following. In Outlook, open an existing email and save it as a .msg file. Attach it to a new message and send it off. Then pick up the message using cfpop. I don't know if this is related, but I am retrieving the email from Office365 exchange online using a secure connection. (cfpop secure="yes")
Comment by External U.
8813 | January 29, 2015 09:46:24 AM GMT
Hi Roberto, I tried those same steps (saved an email from Outlook as .msg, then emailed it as an attachment from Outlook, then retrieved via cfpop), against the following: 1) non-Exchange mail server (using secure="yes") 2) Office 365 (using secure="yes") 3) Exchange 2010 However, I still get a single .eml file instead of duplication. Hopefully Adobe will be able to reproduce this. The issue is possibly due to the characters used in the file name, or perhaps the length of the file name. I tried using various file names including TheQuickBrownFoxJumpedOverTheLazyFenceTheQuickBrownFoxJumpedOverTheLazyFence.msg and had no issue. Hari (Adobe) is asking for the raw data of the email (w/ headers) to be attached to this ticket. If you do not wish to attach the email to this ticket for security reasons, I believe it could be sent to Adobe's support email at cfsupATadobeDOTcom (and reference this ticket#). Thanks!, -Aaron P.S. There is another Exchange issue w/ long attachment names, filed as #CF-3868520. But I'm not sure if it's related to this issue here.
Comment by External U.
8814 | January 31, 2015 04:22:59 AM GMT
If you attach 2 .msg files, do you still only get 2 .eml files?
Comment by External U.
8815 | January 31, 2015 10:53:41 AM GMT
Hi Roberto, I just attached 2 .msg files to an email in Outlook and got 2 .eml files via cfpop (no duplication - I verified both .eml files matched-up w/ their .msg counterpart) against a non-Exchange mail server (using secure="yes"), Office 365 (using secure="yes") and Exchange 2010. Thanks, -Aaron
Comment by External U.
8816 | January 31, 2015 12:56:18 PM GMT
Hi Roberto, Could you please see if <cfexchangemail> also duplicates the .eml files? Example: <cfexchangeconnection action="open" protocol="https" server="#exchangeServer#" serverversion="2010" username="#exchangeUsername#" password="#exchangePassword#" connection="myConnection"> <cfexchangemail action="get" connection="myConnection" name="emails" getheaders="true"> <cfdump var="#emails#"> <cfloop query="emails"> <cfexchangemail action="getAttachments" connection="myConnection" name="attachments" attachmentPath="#expandPath('./attachments')#" uid="#emails.uid#" generateUniqueFilenames="true"> <cfdump var="#attachments#"> </cfloop> Thanks!, -Aaron
Comment by External U.
8817 | January 31, 2015 02:43:47 PM GMT
Hello Aaron, I ran some extensive tests and this is what I have found... If I use cfexchangemail (getAttachments) to fetch the attachments that are attached in .msg format, the action returns empty string even though the "get" action returns "HasAttachment" as yes for the email. I also tested an email using a docx file as an attachment and it worked fine, so the issue is not with how I am calling the function. Regarding cfpop, the duplications only occur when the .msg file has a file embedded in it. Therefore, in order to replicate: -In Outlook, open an existing email (that has an attachment - word, excel, pdf, it does not matter) and save it as a .msg file. -Attach it to a new message and send it off. -Then pick up the message using cfpop. Thanks, Robert
Comment by External U.
8818 | February 09, 2015 01:35:08 PM GMT
Hi Robert, I see this ticket was recently marked Closed/Fixed. However, I wasn't ever able to reproduce the issue w/ these steps: 1) Send email with MyPDF.pdf attachment to Outlook 365 <cfdocument format="pdf" name="myPDF">My PDF</cfdocument> <cfmail from="#cfmailFrom#" to="#cfmailTo#" subject="email with PDF"> <cfmailparam file="MyPDF.pdf" content="#myPDF#"> </cfmail> 2) Using Outlook, save the email as MessageWithAttachment.msg 3) Send email with MessageWithAttachment.msg attachment to Outlook365 <cfmail from="#cfmailFrom#" to="#cfmailTo#" subject="email with msg"> <cfmailparam file="#expandPath('./MessageWithAttachment.msg')#"> </cfmail> 4) Fetch email with MessageWithAttachment.msg using cfpop from Outlook365 <cfpop action="getAll" server="outlook.office365.com" username="#cfpopUsername#" password="#cfpopPassword#" attachmentpath="#expandPath('./attachments')#" secure="yes" uid="XXX"> Using the above, the attachments folder still only contained a single MessageWithAttachment.msg. Does MessageWithAttachment.msg get duplicated when you try the above? Thanks!, -Aaron
Comment by External U.
8819 | September 22, 2015 11:38:12 PM GMT