Microsoft KB Archive/238079

= INFO: EDK Sends Read Receipt for Reading a Read Receipt =

Article ID: 238079

Article Last Modified on 3/4/2004

-

APPLIES TO


 * Microsoft Exchange Development Kit 5.5
 * Microsoft Exchange Server 2003 Software Development Kit

-



This article was previously published under Q238079



SUMMARY
The EDK sample gateway causes the creation of a read receipt while opening a read receipt message.



MORE INFORMATION
SDK samples located in the SDKDIR\samples\dbmsg\exchange\gwsample directory contain sample code for a gateway that is provided with the platform. With this sample code a gateway for the Microsoft Exchange Server can be built and configured for mail transfers.

In GWSample.c the return receipt is requested explicitly as in the function definition DWORD ProcessMtsIn(LPVOID lpParameter), see the following code fragments.

For a non-read receipt: else if((_tcsstr(lpszMessageClass, TEXT("REPORT.IPM")) != NULL)               && _tcsstr(lpszMessageClass, TEXT(".IPNNRN")) != NULL))   {

hr = HrMAPISetPropBoolean(               (LPMAPIPROP)lpEnvelope,                PR_NON_RECEIPT_NOTIFICATION_REQUESTED,                TRUE);

if(FAILED(hr)) {               hr = HR_LOG(E_FAIL); goto cleanup; } For a read receipt: else if((_tcsstr(lpszMessageClass, TEXT("REPORT.IPM")) != NULL) &&               (_tcsstr(lpszMessageClass, TEXT(".IPNRN")) != NULL)) {

hr = HrMAPISetPropBoolean(               (LPMAPIPROP)lpEnvelope,                PR_READ_RECEIPT_REQUESTED,                TRUE);

if(FAILED(hr)) {               hr = HR_LOG(E_FAIL); goto cleanup; } Again, Ipm_in.dll in Convcls.cpp in the definition of function HRESULT CIPMConvert::HrSetEnvelopeProps receipt is asked explicitly for a read receipt as well as a non-read receipt as shown in the following code fragment. if ( m_MsgType == mtNRN )  // have a non-read notification {           rgEnvProps[iNotifyReqVal].ulPropTag = PR_NON_RECEIPT_NOTIFICATION_REQUESTED; }       else    // have a read notification {           rgEnvProps[iNotifyReqVal].ulPropTag = PR_READ_RECEIPT_REQUESTED; }

rgEnvProps[iNotifyReqVal].Value.b = TRUE;

Work Around
You need to modify the code to remove the explicit request of receipts for (non)read receipt and build a new Ipm_in.dll and GWSample.exe.

Additional query words: kbDSupport kbEDK kbXchge kbMsg kbEDK500 kbEDK550 kbGrpMsg

Keywords: kbinfo kbnofix kbmsg KB238079

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.