Article ID: 233983 - Last Review: March 4, 2004 - Revision: 1.1

PRB: Sender and Body Lost When Using EDK Rule Component to Forward Message

This article was previously published under Q233983
Expand all | Collapse all

SYMPTOMS

When using the Exchange Development Kit (EDK) Rule Component to forward a message to another mailbox or Public Folder, the original message appears in the body of the message, and the "From" line becomes the mailbox that most recently forwarded the message.

CAUSE

The Rule Component does not expose the necessary flags to set this option.

RESOLUTION

To add this to all forward rules, add a line of code to the CAction::pack method in the ActionObj.cpp file, and then recompile Rule.dll. The line of code to add is as follows:
lpAction->ulActionFlavor = 3;
				
The original code looks looks like this:
case ACTION_FORWARD:
case ACTION_DELEGATE:
{
lpAction->acttype = (m_actionType==ACTION_FORWARD)?OP_FORWARD:OP_DELEGATE;
long	cElements=m_uActionArgs.lpAdressList->rgsabound[0].cElements;
				
Your new code should resemble the following:
case ACTION_FORWARD:
case ACTION_DELEGATE:
{
lpAction->acttype =(m_actionType==ACTION_FORWARD)?OP_FORWARD:OP_DELEGATE;
lpAction->ulActionFlavor = 3;
long	cElements=m_uActionArgs.lpAdressList->rgsabound[0].cElements;
				
You may wish to further modify the rule object to take this as an argument.

APPLIES TO
  • Microsoft Exchange Server 2003 Software Development Kit
Keywords: 
kbmsg kbprb KB233983
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations