tracker issue : CF-3847740

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

[ANeff] ER for: cfimap action=getall to return attachments as array

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 11/05/2014

Components: Net Protocols, IMAP

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 0

<cfimap action="getall"..> returns attachments as a tab-delimited string. This ER is for it to return attachments as an array.

Repro:

<cfmail from="a@b.com" to="a@b.com" subject="subject">
  <cfmailparam file="a.txt" content="a" />
  <cfmailparam file="b.txt" content="b" />
  <cfmailparam file="c.txt" content="c" />
</cfmail>

<cfimap action="getall" server="mail.b.com" username="a@b.com" password="password" name="q" />
<cfoutput>#q.attachments[q.RecordCount]#</cfoutput>

Outputs tab-delimited string: "a.txt    b.txt  c.txt"

Attachments would be best returned as an array, not a string.

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

Watson Bug ID:	3847740

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

Related thread: http://prerelease.adobe.com/r/?fc6672d73f5c4b9ba0e39b84be9e99da
Comment by External U.
10255 | November 05, 2014 08:07:12 AM GMT
Hi Aaron, Yes attachments should be an array. Changing the attachments from tab delimited string to array is not backward compatible. So we can get around this issue by having a new column in the result table like attachmentlist which lists the attachments as array. Please share your thoughts. Thanks, Pavan.
Comment by S V.
10256 | October 13, 2015 06:56:29 AM GMT
Hi Pavan, Thanks for the discussion. I see the attachmentfiles column has the same issue and would also need a new column. I think the new columns should be named attachmentarray and attachmentfilearray (since these would be arrays, not lists). I also see the issue also affects cfpop. Another suggestion is this: <cfimap attachmentsAsArray="true|false"..> and <cfpop attachmentsAsArray="true|false"..> If false (default), the result query's attachments and attachmentfiles columns will contain tab-delimited lists. If true, the result query's attachments and attachmentfiles columns will contain arrays. Thanks!, -Aaron P.S. The best suggestion I have is for Adobe to review tickets sooner. I filed and discussed this ticket during beta. There wasn't a backward-compat issue until 1 month after I created this ticket =P
Comment by External U.
10257 | October 13, 2015 11:53:09 AM GMT
Hi Pavan, What do you think of this: <cfimap attachmentsAsArray="true|false"..> and <cfpop attachmentsAsArray="true|false"..> If false (default), the result query's attachments and attachmentfiles columns will contain tab-delimited lists. If true, the result query's attachments and attachmentfiles columns will contain arrays. Thanks!, -Aaron
Comment by External U.
10258 | December 04, 2015 05:03:28 AM GMT
*bump*
Comment by External U.
10259 | April 27, 2016 10:21:53 PM GMT