Gmail Migration
Problem reported by Scott Forsythe - April 15, 2015 at 8:02 AM
Submitted
Hello,
 
When importing message from Gmail using Setting -> Advanced Settings -> Mailbox Migration the messages are migrated as read. Unread messages are changed to read.
 
I reproduced using Smartermail Free and Enterprise 13.3.5535.
 
Thanks,
Scott F.

7 Replies

Reply to Thread
0
When I run the tool from the knowledge base, everything moves over with the exception of emails. Is there a newer version I should be using?
OMAIR
0
Hello,
 
PRAISE! I tested several Gmail migrations with 13.4.5603 this morning:
1. Unread messages migrated as unread. Read messages migrated as read. This worked from the Mailbox Migration tool and Webservices.
2. We were able to migrate Google messages, contacts, and calendars using the Mailbox Migration tool and Webservices.
3. After a Webservices migration the migration "closes out". We were able to run the Mailbox Migration tool again for the mailbox without having to restart SmarterMail.
 
These were big improvements and will save us hours of time. It makes it a lot easier to migrate a large number of Google accounts to SmarterMail which I would think would be good for SmarterTools also.
 
Thanks,
Scott F. 
2
Matt Petty Replied
Employee Post
On a side note 
http://portal.smartertools.com/community/a86223/calendars-imported-from-gmail-cannot-be-editted.aspx

Calendar items coming from Google have had a bug recently fixed that will show up in the next minor update.
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
Hello,
 
We completed a few Google migrations last week and found that there are still a few problems with the Mailbox Migration tool.
 
1. The only way I got the a contact migration to work was after selecting "authorize google" with a calendar import. Also the Mailbox Migration tool gets "locked up" for the mailbox after doing a contact only migration. I have to restart SmarterMail in order to use the Mailbox Migration tool again for the mailbox.
2. An Email only migration also "locks up" the Mailbox Migration tool for the mailbox. SmarterMail needs to be restarted in order to use the tool again for the mailbox.
3. A few mailboxes would not migrate messages with the Mailbox Migration tool. Re-running the tool sometimes worked but most of the time the fix was un-selecting the problem folder in Gmail by un-checking "Show in IMAP". I have a sample of the errors from our logs.
 
Webservices migrations had the same problems as the Mailbox Migration tool. We're using SmarterMail 13.4.5603.
 
The calendar migration works for us since our Gmail mailbox and SmarterMail mailbox name are the same.
 
Thanks,
Scott F.
1
Matt Petty Replied
Employee Post
Fixed #1, you should see that in the next 13 minor build and the next 14 beta build.

I was not able to replicate #2 in SM 14 but I see it in 13 might take some time to fix.

#3 Makes sense in how it works, SmarterMail doesn't look at that information, Google should not be sending them over. Could you give an example of one of these Mailboxes names?
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
Hi Matt,
 
Below is an example from the -mailboxImport.log. For this mailbox I ran the Mailbox Migration tool several times but it always failed on the Inbox. I couldn't de-select the Inbox in Google so this migration had to be done manually with an email client. 
 
10:15:33 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Processing started
10:15:33 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Starting download via IMAP
10:15:34 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Selected folder "Follow up"
10:15:34 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Downloading messages from folder "Follow up"...
10:15:34 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Finished downloading 0 messages from folder "Follow up"
10:15:34 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Selected folder "INBOX"
10:15:35 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Downloading messages from folder "INBOX"...
10:15:47 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Lost connection to remote host.  Attempting to reconnect.
10:15:49 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Reconnection to remote host succeeded.
10:15:50 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Lost connection to remote host.  Attempting to reconnect.
10:15:51 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Reconnection to remote host succeeded.
10:15:51 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] An error occurred while downloading messages from folder "INBOX".  Aborting migration.  Error: Object reference not set to an instance of an object.
Stack Trace:    at SmarterTools.SmarterMail.RelayServer.MessageRetrieval.GmailRetrievalSession.#8Gb(GmailAccountConfig #bHb, String #dHb, String #o6i, Int32 #q9)
   at SmarterTools.SmarterMail.RelayServer.MessageRetrieval.GmailRetrievalSession.#5Gb(GmailAccountConfig #bHb, String #n6i, String #m6i, String #dHb)
10:15:51 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Downloading messages from folder "INBOX" failed.  Aborting migration.
10:15:52 (Gmail) [user@mail.com] - [imap.gmail.com:user@mail.com] Processing completed
 
Thanks,
Scott F.
1
Hello,
 
It appears that something recently changed with the GMail - Contacts migration. I tested multiple times with 13.x and the beta (14.x) using the Mailbox Migration tool. Also, I "authorized google" before trying the import. 
 
Below is from the -mailboxImport.log. The error is always the same.
 
16:21:00 (Gmail) [User@email.com] - Fetching contacts
16:21:02 (Gmail) [User@email.com] - [imap.gmail.com:User@email.com] Exception: Execution of authentication request returned unexpected result: 404
   at Google.GData.Client.Utilities.getAuthException(TokenCollection tokens, HttpWebResponse response)
   at Google.GData.Client.Utilities.QueryClientLoginToken(GDataCredentials gc, String serviceName, String applicationName, Boolean fUseKeepAlive, IWebProxy proxyServer, Uri clientLoginHandler)
   at Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials gc)
   at Google.GData.Client.GDataGAuthRequest.EnsureCredentials()
   at Google.GData.Client.GDataRequest.EnsureWebRequest()
   at Google.GData.Client.GDataGAuthRequest.EnsureWebRequest()
   at Google.GData.Client.GDataRequest.Execute()
   at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
   at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength)
   at Google.GData.Client.Service.Query(FeedQuery feedQuery)
   at Google.GData.Client.Feed`1.get_AtomFeed()
   at Google.GData.Client.Feed`1.<get_Entries>d__0.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at RelayServer.MessageRetrieval.Gmail.ContactsRetreiver.Fetch()
   at SmarterTools.SmarterMail.RelayServer.MessageRetrieval.GmailRetrievalSession.#GGb(User #kdb, GmailAccountConfig #l6i)
 
Thanks,
Scott F.

Reply to Thread