none
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 test1@corp.com,test2@corp.com

    New-TransportRule "Approval2" -HeaderContainsMessageHeader "X-Approval" -HeaderContainsWords "test2-Approval" -ModerateMessageByUser test3@corp.com,test4@corp.com

    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