locked
how to force the exchange server 2010 using the VBA code instead of the rules RRS feed

  • Question

  • Dears,

    we are  using an exchange server 2010.

    we have a user  member to  the  active directory under windows server 2008 R2 Entreprise and create for him a mail box under the exchange.

    i already configure for this user the mail box under his workstation, windows 7, using the microsoft outlook 2010 and i create some rules for him and all is working well.

    this user can open his mail from outside company also using OWA and still the rules are applicable under OWA which is greate.

    also i configure to receive his mails under his mobile phone using the microsoft exchange server and still all working well and the rules also still working well.

    for some reason i remove all the rules and replace them with a VBA code under microsoft outlook 2010 on his workstation , and all working well, i mean the code still filter the mails receive like before when i was using the rules .

    The big question is :

    how i could force the exchange to applicable this code when this user try to read his mails using OWA or from his mobile phone?

    Regards.

    Tuesday, May 28, 2013 8:59 AM

All replies

  • >how i could force the exchange to applicable this code when this user try to read his >mails using OWA or from his mobile phone?

    The thing to understand is that your VBA code is client side code so will only ever work running on the Client when Outlook is open.

    Server Side Rules will work regardless of the client because the Logic is run on the server.

    >for some reason i remove all the rules and replace them with a VBA code under >microsoft outlook 2010 on his workstation

    Why did you switch from using Server Side rules to running VBA on the client ?

    If what you are doing won't work within the functionality of Server Side Rules then you will need to build an application that you will have to host on a Server somewhere and use something like EWS Streaming notifications see http://msdn.microsoft.com/en-us/library/exchange/hh312849%28v=exchg.140%29.aspx

    Cheers
    Glen

    Wednesday, May 29, 2013 5:29 AM
  • Thanks Glen,

    in the begening i  was used the rules and all was working well.

    but when we decide for some users to send mails from other account  using the send from , i did not find any rule to separate the mails sending from accountA or accountB.

    Regards,

    Wednesday, May 29, 2013 7:55 AM
  • Its hard to comment without see the logic in your VBA code but you should be able to use the ContainsSenderStrings predicate  http://msdn.microsoft.com/en-us/library/exchange/ff709443(v=exchg.140).aspx to do it in a Rule

    Cheers
    Glen

    Thursday, May 30, 2013 6:20 AM