Since Classic Outlook was developed in the glory days of OLE2.0, it's got OLE Automation baked in. VB and JScript code can access emails and appointments and perform relevant operations on those objects.