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 TrackerStatus/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
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: