class Handler_Class(object):

    def OnNewMailEx(self, receivedItemsIDs):
        for ID in receivedItemsIDs.split(','):
            mail = outlook.Session.GetItemFromID(ID)
Microsoft Outlook Create Rule Run Application/Script Python