write approval mail data to sqlserver use RoutingAgent class RRS feed

  • Question

  • In exchange server  create some TransportRule. Like this:

    New-TransportRule "Approval1" -HeaderContainsMessageHeader "X-Approval" -HeaderContainsWords "test1-Approval" -ModerateMessageByUser,

    New-TransportRule "Approval2" -HeaderContainsMessageHeader "X-Approval" -HeaderContainsWords "test2-Approval" -ModerateMessageByUser,

    When user send email , and test2 user approval this email , I want write some data (from,to,subject,body,sendtime,approvalUser,approvalResult) to sql server ,

    In custom RoutingAgent  class OnSubmittedMessage method,

    if MapiMessageClass =IPM.Note.Microsoft.Approval.Reply.Approve  this mail is approval mail, and MapiMessageClass= IPM.Note.Microsoft.Approval.Request.Recall or IPM.Note.Microsoft.Approval.Request.reject .

    but I don’t The original message, The relationship between them was found.

    Thanks all.

    Anything is Possible!

    Friday, March 13, 2015 7:05 AM

All replies