tracker issue : CF-3788135

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

cfexchangemail: the "TOID" attribute in the mails retrieved from a mailbox, displays the primary email address even if the mail was sent to an alias.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Piyush Kumar Nayak)

Created: 07/11/2014

Components: CFExchange

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: CF10 u12, CF11 final / 290308

Priority/Frequency: Minor / Some users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem: cfexchangemail: the "TOID" attribute in the mails retrieved from a mailbox, displays the primary email address even if the mail was sent to an alias.

Method:
<cfset exchangeServerIP= "xx.xx.xx.xx">
<cfset user1="xxxx">
<cfset password="xxx">
<cfset version = "2010">
<cfset protocol = "HTTP">

<cfmail 
	from="regressionuser3@domain.com" to="reg-user1-alias@domain.com" 
	cc = "regressionuser4@domain.com"
	subject="mail to multi receipents, an alias 2003 cfblr" 
	server= "#exchangeServerIP#"	
	port = "25">
	= = = = = = = = = = = = = = = = = = = = = = = =
	testing mail from alias addresses
	= = = = = = = = = = = = = = = = = = = = = = = =
</cfmail>
<cfset sleep(6000)>

<cfexchangeConnection
action="open"
username ="#user1#"
password="#password#"
server="#exchangeServerIP#"
serverversion="#version#"
protocol="#protocol#"
connection="excon">

<cfexchangemail
	action = "get"
	name = "q_usrmails"
	connection = "excon"
	getheaders = true
	folder = "Inbox">
	<cfexchangefilter name="fromID" value="eg-user1-alias@domain.com">
	<cfexchangefilter name="subject" value="mail to an alias 2003 cfblr">
</cfexchangemail>

<cfloop query="q_usrmails">
	<cfoutput>#q_usrmails.toID#</cfoutput><br>
</cfloop>

<cfexchangeConnection action="close" connection="excon">

Result:
regressionuser1@domain.com

Expected:
reg-user1-alias@domain.com
(here 'reg-user1-alias@domain.com' is set as the primary email in exchange, and 'reg-user1-alias@domain.com' the alias)

Workaround:
n/a

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

Watson Bug ID:	3788135

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

Attachments:

Comments:

This is not fixed in CF11 Update 3 (11,0,03,292024(PreRelease)). The ToId still shows the primary email address even when message was sent to an alias. I see a new attribute "getheaders" was added, which then returns the alias in the internetHeaders.To variable. (thanks, and these should be documented) Is the current behavior (ToId returns primary and internetHeaders.To returns alias) the intended fix for this ticket? Just wanted to confirm what the actual fix was. Thanks!, -Aaron
Comment by External U.
11643 | November 09, 2014 12:09:16 AM GMT
Hi Aaron, In order to get the alias addresses, the struct fields in the new InternetHeader property can be used. This new column for headers (InternetHeader) is added as part of the result when a mail is retrieved using cfexchangeMail tag. This will be populated only if the "getHeaders" attribute is specified as true. We plan on documenting this. Thanks, Piyush.
Comment by Piyush K.
11644 | November 10, 2014 06:42:52 AM GMT
Hi Piyush, Thank you very much for the clarification! That works! :) So this is fixed in CF11 Update 3 (11,0,03,292024(PreRelease)). Thanks!, -Aaron
Comment by External U.
11645 | November 10, 2014 04:58:48 PM GMT