Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: CopyMessages from Gmail to Exchange Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mathduvar
Newbie
Newbie
Avatar

Joined: 24 August 2016
Location: France
Online Status: Offline
Posts: 2
Posted: 24 August 2016 at 3:24pm | IP Logged Quote mathduvar

Hi,

I'm trying to make an application which copy from Google to Exchange by using imap.
All is working, it's creating folders but when i launch copymessages, i have no message in the destination mailbox.

What's wrong ?
Here an extract of the log :
[23:41:14.59] [INFO] Select folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:41:14.59] [SEND] MBN00000017 SELECT "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:41:14.60] [RECV] * 0 EXISTS\r\n [Total 12 bytes received.]
[23:41:14.60] [RECV] * 0 RECENT\r\n [Total 12 bytes received.]
[23:41:14.61] [RECV] * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)\r\n [Total 61 bytes received.]
[23:41:14.61] [RECV] * OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags\r\n [Total 91 bytes received.]
[23:41:14.61] [RECV] * OK [UIDVALIDITY 135] UIDVALIDITY value\r\n [Total 42 bytes received.]
[23:41:14.61] [RECV] * OK [UIDNEXT 1] The next unique identifier value\r\n [Total 51 bytes received.]
[23:41:14.61] [RECV] MBN00000017 OK [READ-WRITE] SELECT completed.\r\n [Total 47 bytes received.]
[23:41:41.99] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:41:41.99] [SEND] MBN00000018 UID COPY 1760 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:41:42.10] [RECV] MBN00000018 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:41:42.10] [INFO] Messages copied.
[23:41:45.44] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:41:45.44] [SEND] MBN00000019 UID COPY 1761 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:41:45.49] [RECV] MBN00000019 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:41:45.49] [INFO] Messages copied.
[23:41:46.54] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:41:46.54] [SEND] MBN00000020 UID COPY 1762 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:41:46.58] [RECV] MBN00000020 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:41:46.58] [INFO] Messages copied.
[23:42:10.35] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.35] [SEND] MBN00000021 UID COPY 1763 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.41] [RECV] MBN00000021 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.41] [INFO] Messages copied.
[23:42:10.41] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.41] [SEND] MBN00000022 UID COPY 1764 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.45] [RECV] MBN00000022 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.45] [INFO] Messages copied.
[23:42:10.45] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.45] [SEND] MBN00000023 UID COPY 1765 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.49] [RECV] MBN00000023 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.49] [INFO] Messages copied.
[23:42:10.49] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.49] [SEND] MBN00000024 UID COPY 1766 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.53] [RECV] MBN00000024 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.53] [INFO] Messages copied.
[23:42:10.53] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.53] [SEND] MBN00000025 UID COPY 1767 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.57] [RECV] MBN00000025 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.57] [INFO] Messages copied.
[23:42:10.57] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.57] [SEND] MBN00000026 UID COPY 1768 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.60] [RECV] MBN00000026 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.60] [INFO] Messages copied.
[23:42:10.60] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.60] [SEND] MBN00000027 UID COPY 1769 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.64] [RECV] MBN00000027 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.64] [INFO] Messages copied.
[23:42:10.64] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.64] [SEND] MBN00000028 UID COPY 1770 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.68] [RECV] MBN00000028 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.68] [INFO] Messages copied.
[23:42:10.68] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.68] [SEND] MBN00000029 UID COPY 1771 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.71] [RECV] MBN00000029 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.71] [INFO] Messages copied.
[23:42:10.71] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.71] [SEND] MBN00000030 UID COPY 1772 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.74] [RECV] MBN00000030 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.74] [INFO] Messages copied.
[23:42:10.75] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.75] [SEND] MBN00000031 UID COPY 1773 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.78] [RECV] MBN00000031 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.78] [INFO] Messages copied.
[23:42:10.78] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.78] [SEND] MBN00000032 UID COPY 1774 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.86] [RECV] MBN00000032 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.86] [INFO] Messages copied.
[23:42:10.86] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.86] [SEND] MBN00000033 UID COPY 1775 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.90] [RECV] MBN00000033 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.90] [INFO] Messages copied.
[23:42:10.90] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.90] [SEND] MBN00000034 UID COPY 1776 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.94] [RECV] MBN00000034 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.94] [INFO] Messages copied.
[23:42:10.94] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.94] [SEND] MBN00000035 UID COPY 1777 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:10.97] [RECV] MBN00000035 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:10.97] [INFO] Messages copied.
[23:42:10.97] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:10.97] [SEND] MBN00000036 UID COPY 1778 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.01] [RECV] MBN00000036 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.01] [INFO] Messages copied.
[23:42:11.01] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.01] [SEND] MBN00000037 UID COPY 1779 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.04] [RECV] MBN00000037 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.04] [INFO] Messages copied.
[23:42:11.04] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.04] [SEND] MBN00000038 UID COPY 1780 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.08] [RECV] MBN00000038 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.08] [INFO] Messages copied.
[23:42:11.08] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.08] [SEND] MBN00000039 UID COPY 1781 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.11] [RECV] MBN00000039 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.11] [INFO] Messages copied.
[23:42:11.11] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.11] [SEND] MBN00000040 UID COPY 1782 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.14] [RECV] MBN00000040 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.14] [INFO] Messages copied.
[23:42:11.14] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.14] [SEND] MBN00000041 UID COPY 1783 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.17] [RECV] MBN00000041 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.17] [INFO] Messages copied.
[23:42:11.17] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.17] [SEND] MBN00000042 UID COPY 1784 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.20] [RECV] MBN00000042 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.20] [INFO] Messages copied.
[23:42:11.20] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.20] [SEND] MBN00000043 UID COPY 1785 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.23] [RECV] MBN00000043 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.23] [INFO] Messages copied.
[23:42:11.23] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.23] [SEND] MBN00000044 UID COPY 1786 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.27] [RECV] MBN00000044 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.27] [INFO] Messages copied.
[23:42:11.27] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.27] [SEND] MBN00000045 UID COPY 1787 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.31] [RECV] MBN00000045 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.31] [INFO] Messages copied.
[23:42:11.31] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.31] [SEND] MBN00000046 UID COPY 1788 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.34] [RECV] MBN00000046 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.34] [INFO] Messages copied.
[23:42:11.34] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.34] [SEND] MBN00000047 UID COPY 1789 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.38] [RECV] MBN00000047 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.38] [INFO] Messages copied.
[23:42:11.38] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.38] [SEND] MBN00000048 UID COPY 1790 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.42] [RECV] MBN00000048 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.43] [INFO] Messages copied.
[23:42:11.43] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.43] [SEND] MBN00000049 UID COPY 1791 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.47] [RECV] MBN00000049 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.47] [INFO] Messages copied.
[23:42:11.47] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.47] [SEND] MBN00000050 UID COPY 1792 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.50] [RECV] MBN00000050 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.50] [INFO] Messages copied.
[23:42:11.50] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.50] [SEND] MBN00000051 UID COPY 1793 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.53] [RECV] MBN00000051 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.53] [INFO] Messages copied.
[23:42:11.53] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.53] [SEND] MBN00000052 UID COPY 1794 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.56] [RECV] MBN00000052 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.56] [INFO] Messages copied.
[23:42:11.56] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.56] [SEND] MBN00000053 UID COPY 1795 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.59] [RECV] MBN00000053 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.59] [INFO] Messages copied.
[23:42:11.59] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.60] [SEND] MBN00000054 UID COPY 1796 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.63] [RECV] MBN00000054 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.63] [INFO] Messages copied.
[23:42:11.63] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.63] [SEND] MBN00000055 UID COPY 1797 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.67] [RECV] MBN00000055 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.67] [INFO] Messages copied.
[23:42:11.68] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.68] [SEND] MBN00000056 UID COPY 1798 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.71] [RECV] MBN00000056 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.71] [INFO] Messages copied.
[23:42:11.71] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.71] [SEND] MBN00000057 UID COPY 1799 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.74] [RECV] MBN00000057 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.74] [INFO] Messages copied.
[23:42:11.74] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.74] [SEND] MBN00000058 UID COPY 1800 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.78] [RECV] MBN00000058 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.78] [INFO] Messages copied.
[23:42:11.78] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.78] [SEND] MBN00000059 UID COPY 1801 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.81] [RECV] MBN00000059 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.81] [INFO] Messages copied.
[23:42:11.81] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.81] [SEND] MBN00000060 UID COPY 1802 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.84] [RECV] MBN00000060 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.84] [INFO] Messages copied.
[23:42:11.84] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.84] [SEND] MBN00000061 UID COPY 1803 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.87] [RECV] MBN00000061 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.87] [INFO] Messages copied.
[23:42:11.87] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.87] [SEND] MBN00000062 UID COPY 1804 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.91] [RECV] MBN00000062 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.91] [INFO] Messages copied.
[23:42:11.92] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.92] [SEND] MBN00000063 UID COPY 1805 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.95] [RECV] MBN00000063 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.95] [INFO] Messages copied.
[23:42:11.95] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.95] [SEND] MBN00000064 UID COPY 1806 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:11.98] [RECV] MBN00000064 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:11.98] [INFO] Messages copied.
[23:42:11.98] [INFO] Will copy messages to folder "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL".
[23:42:11.99] [SEND] MBN00000065 UID COPY 1807 "INBOX/FOR GROUPE/DSI/SYLVAIN MILUL"\r\n
[23:42:12.01] [RECV] MBN00000065 OK [COPYUID 135 ] COPY completed.\r\n [Total 48 bytes received.]
[23:42:12.02] [INFO] Messages copied.

And the code :

    Dim imp As New Imap
               imp.Log.Enabled = True
               imp.Log.Filename = "C:\Temp\imap.log"
               imp.Log.HidePasswords = True
               imp.Log.Clear()

               '    imp.Close()
               imp.Connect("imap.gmail.com", 993)
               imp.Login(_Mailbox, xoauthKey, AuthenticationMethods.SaslOAuth2, AuthenticationOptions.None, Nothing)

               Dim imp2 As New Imap
               imp2.Log.Enabled = True
               imp2.Log.Filename = "C:\Temp\Source_imap.log"
               imp2.Log.HidePasswords = True

               imp2.Connect("imap.for-groupe.fr")

               Dim loginchain As String = requete.InternalDomain & "/" & requete.DomainUserName & "/" & ReturnSAmAccountName(_Mailbox)


               imp2.Login(loginchain, requete.DomainPassword, AuthenticationMethods.Regular)



               Dim folders As FolderCollection = imp.DownloadFolders()

               For Each fld As Folder In folders

                    If fld.RawName <> "INBOX" Then
                        imp.SelectFolder(fld.RawName)

                        If CheckifFolderExist(imp2, fld.RawName) = True Then
                            ' Dim MessageCollection As Mime.MailMessageCollection = imp.DownloadEntireMessages("1:*", False)


                            '     & nbsp;                      For Each msg As Mime.MailMessage In MessageCollection

                            ' imp.CopyMessages(msg.UidOnServer.ToString(), False, CStr(imp2.SelectFolder(fld.RawName)))

                            '     & nbsp;                      Next
                        Else
                            If CheckifFolderExist(imp2, fld.RawName) = False Then
                                imp2.Cre ateFolder(fld.RawName)
                                imp.Sele ctFolder(fld.RawName)
                                Dim selfol As String
                                Dim fol As FolderCollection = imp2.DownloadFolders()

                                For Each f As Folder In fol
                                 &n bsp;  If f.Name.ToLower = fld.Name.ToLower Then
                                 &n bsp;      selfol = f.Name
                                 &n bsp;  End If
                                Next



                                Dim MessageCollection As Mime.MailMessageCollection = imp.DownloadEntireMessages("1:*", False)
                                imp2.Sel ectFolder(selfol)

                                For Each msg As Mime.MailMessage In MessageCollection

                                 &n bsp;  imp2.MoveMessages(msg.UidOnServer.ToString(), True, selfol)
                                Next

                            End If

                        End If
                    End If

Thanks for your help.
Back to Top View mathduvar's Profile Search for other posts by mathduvar
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 August 2016 at 11:32pm | IP Logged Quote Alex

Hi,

CopyMessages (and any other operation) works in the same account only. You cannot use IMAP functions to copy messages between accounts. For that, you'll need to download emails completely and then reupload them on another server.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
mathduvar
Newbie
Newbie
Avatar

Joined: 24 August 2016
Location: France
Online Status: Offline
Posts: 2
Posted: 07 September 2016 at 12:51pm | IP Logged Quote mathduvar

thanks for your support it's work but now i have problem with date. All messages uploaded have not the original receive /send date but the upload date.

Is there a setting to have the good date ?

Thanks
Back to Top View mathduvar's Profile Search for other posts by mathduvar
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 07 September 2016 at 1:39pm | IP Logged Quote Alex

UploadMessage has overloads which allow you to set date.

E.g. http://afterlogic.com/mailbee-net/docs/#MailBee.ImapMail.Imap.UploadMessage_overload_3.html

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide