public void MoveToFolder(ChannelMessageHeader message, ChannelFolder folder)
        {
            var client    = new ExchangeClient(Hostname, CredentialsProvider);
            var messageId = client.GetMessageId(message.MessageNumber).ItemId;

            client.MoveMessageToFolder(messageId, folder.FolderId);
        }
        public void MarkDeleted(ChannelMessageHeader message)
        {
            var trash = GetFolders().First(f => f.FolderType == ChannelFolderType.Trash);

            var client    = new ExchangeClient(Hostname, CredentialsProvider);
            var messageId = client.GetMessageId(message.MessageNumber).ItemId;

            client.MoveMessageToFolder(messageId, trash.FolderId);
        }
        public void MoveToFolder(ChannelMessageHeader message, ChannelFolder folder)
        {
            var client = new ExchangeClient(Hostname, CredentialsProvider);
            var messageId = client.GetMessageId(message.MessageNumber).ItemId;

            client.MoveMessageToFolder(messageId, folder.FolderId);
        }
        public void MarkDeleted(ChannelMessageHeader message)
        {
            var trash = GetFolders().First(f => f.FolderType == ChannelFolderType.Trash);

            var client = new ExchangeClient(Hostname, CredentialsProvider);
            var messageId = client.GetMessageId(message.MessageNumber).ItemId;

            client.MoveMessageToFolder(messageId, trash.FolderId);
        }