private void store_FolderEvent(IMAPIFolderID newFolderID, IMAPIFolderID oldFolderID, EEventMask flags) { IMAPIFolder f = newFolderID.OpenFolder(); MessageBox.Show(f.DisplayName, "Folder event: " + flags.ToString()); }
private void store_MessageEvent(IMAPIMessageID newMessageID, IMAPIMessageID oldMessageID, EEventMask messageFlags) { IMAPIMessage msg = newMessageID.OpenMessage(); string m = msg.Subject + " at " + msg.LocalDeliveryTime.ToString(); MessageBox.Show(m + ", in " + newMessageID.ParentFolder.OpenFolder().DisplayName, "Message event: " + messageFlags.ToString()); }