コード例 #1
0
        public void TestMethod1()
        {
            var sourceAccountParams = new ClientParameters
            {
                Host = "",
                Port = 993,
                Password = "",
                Username = "",
                SSL = true
            };

            var destinationAccountParams =  new ClientParameters
            {
                Host = "",
                Port = 993,
                Password = "",
                Username = "",
                SSL = true
            };

            var sourceMailBox = new MailBox(sourceAccountParams);
            var destinationMailBox = new MailBox(destinationAccountParams);

            var sut = new MigrationService(new LogWriter(),sourceMailBox, destinationMailBox );

            sut.MigrateAccount();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: maxkimambo/MailBoxMigrator
        static void Main(string[] args)
        {
            System.Console.WriteLine("Starting migration");

            var sourceAccountParams = new ClientParameters
            {
                Host = "kimambo.com",
                Port = 993,
                Password = "******",
                Username = "******",
                SSL = true
            };

            var destinationAccountParams = new ClientParameters
            {
                Host = "n1plcpnl0045.prod.ams1.secureserver.net",
                Port = 993,
                Password = "******",
                Username = "******",
                SSL = true
            };

            var sourceMailBox = new MailBox(sourceAccountParams);
            var destinationMailBox = new MailBox(destinationAccountParams);

            var migration = new MigrationService(new LogWriter(), sourceMailBox, destinationMailBox);
            migration.MigrateAccount();

            System.Console.ReadLine();
        }
コード例 #3
0
        public void Init()
        {
            var sourceClientParameters = new ClientParameters
            {
                Host = "",
                Password = "",
                Port = 993,
                Username = ""
            };

            mailbox = new MailBox(sourceClientParameters);

            var destinationClientParameters = new ClientParameters
            {
                Host = "",
                Password = "",
                Port = 993,
                Username = ""
            };

            destinationMailBox = new MailBox(destinationClientParameters);
        }