Create Outlook rule which runs AFTER move mail to specific folder

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

Cicik

Posted 2015-06-18T22:34:11.100

Reputation: 463

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 – 2015-06-19T00:10:54.117

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 – 2015-06-19T06:09:37.533

Answers

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.

thims

Posted 2015-06-18T22:34:11.100

Reputation: 8 081

Thanks, VBA script is fine for me. Can you please give me little direction to this script? – Cicik – 2015-06-19T14:16:40.590

I made it as C# addin, but basic is from you. Thanks – Cicik – 2015-06-19T22:46:10.300