6

is there some way how to create rule for Outlook(2013) which will run after move mail to specific folder?

Motivation: I need to have rules which moves mail from specific address to specific folder and marks it as read. Rule for this is simple, but have one BIG disadvantage: This rule must be client only - it runs only if Outlook windows app is running. And therefore on mobile device you will have all mess in inbox. So I need one server rule for moving mails to folder - DONE. And one rule for making them read - and this rule must be triggered after move of mail to folder.

Thanks a lot

  • To clarify, you're looking for a way to run a server-side rule (move messages) followed by a client-side rule (mark as read)? And you want this to happen automatically? Without Outlook running? – I say Reinstate Monica Jun 19 '15 at 0:10
  • For server-side, yes - already done. For client-side, no - rule cant run without Outlook running(I dont know how to create such rule). Main problem is triggering rule after move of mail to specific folder. – Cicik Jun 19 '15 at 6:09
3

No direct way using rules only. You can have server-side "move" rule, but Outlook rules don't trigger on events other than incoming/outgoing mail.

What you really can do is to create a VBA script than will trigger on new items in that particular "done" folder and mark these items as read. But this will execute on client only. Something like this (for Inbox\DONE subfolder):

Public WithEvents FolderItems As Outlook.Items

Private Sub Application_Startup()
   Set FolderItems = Session.GetDefaultFolder(olFolderInbox).Folders("DONE").Items
End Sub

Private Sub FolderItems_ItemAdd(ByVal Item As Object)
    On Error Resume Next
    If Item.UnRead Then
        Item.UnRead = False
        Item.Save
    End If
End Sub

The most complex way is to create a server-side tool that will monitor this "done" folder and periodically mark items as read, this can be done in a form of Windows Service or just a standalone script that you can run using Windows Scheduler, for instance. You can also use third-party tools for that.

  • Thanks, VBA script is fine for me. Can you please give me little direction to this script? – Cicik Jun 19 '15 at 14:16
  • I made it as C# addin, but basic is from you. Thanks – Cicik Jun 19 '15 at 22:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.