Migration API question

97 views
Skip to first unread message

Mally Mclane

unread,
Apr 5, 2012, 6:02:08 AM4/5/12
to google-app...@googlegroups.com
Claudio

Is this forum also for Email Migration API?

We're currently doing end-to-end testing of our migration plans and
have come across a relatively major issue around the Email Migration
API:

* A lot our users have complex folder structures, e.g.

Students
-> Undergraduates
--> Exams
---> Successful

With the email migration API, we don't seem to be able to mimic the
above structure. We can only assign one flat label to it. I.e. we'd
end up with one large label of

Students\Undergraduates\Exams\Successful

rather than nested labels mimicking the structure.


Are we seeing the correct behaviour from the API?

Mally

Claudio Cherubino

unread,
Apr 5, 2012, 6:00:56 PM4/5/12
to google-app...@googlegroups.com
Hi Mally,

Yes, this is the right forum for the Email Migration API.
The missing support for nested labels is one of the limits of the API and is reported in the documentation:


"During migration, a folder's full path becomes the label name. Nested folders are migrated as flat labels. Labels are not nested."

Claudio


Mally

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.


Mally Mclane

unread,
Apr 6, 2012, 3:34:56 AM4/6/12
to google-app...@googlegroups.com
Hi Claudio

On Thu, Apr 5, 2012 at 11:00 PM, Claudio Cherubino
<ccher...@google.com> wrote:
> Hi Mally,
>
> Yes, this is the right forum for the Email Migration API.
> The missing support for nested labels is one of the limits of the API and is
> reported in the documentation:
>
> https://developers.google.com/google-apps/email-migration/#email_migration_api_limits_and_quotas
>
> "During migration, a folder's full path becomes the label name. Nested
> folders are migrated as flat labels. Labels are not nested."


Thanks - I must have missed that.

I appreciate this isn't the forum, but I'm really not sure how to
achieve a successful migration now - The migration tool doesn't do the
labels, crafting it ourselves using the API doesn't do the labels and
if we do it using imapsync or something, we can only do 500mb a
day...... Some of users have upwards of 20GB....

Mally

Claudio Cherubino

unread,
Apr 6, 2012, 12:11:34 PM4/6/12
to google-app...@googlegroups.com
Hi Mally,

Have you tried opening a support case for that at http://support.google.com/a/bin/request.py ?
I'm confident someone from the Google Apps deployment team can share the best practices.

Claudio


Mally

Mally Mclane

unread,
Apr 6, 2012, 12:17:06 PM4/6/12
to google-app...@googlegroups.com

Tried and exhausted Google Support and the migration specialist, but thanks for the pointers!

Josh

unread,
May 19, 2012, 10:33:28 PM5/19/12
to google-app...@googlegroups.com
It is possible now.  I figured it out after some trial and error.  I don't know if it was a month ago when you originally posted, but I'm replying just in case you still need help or in case someone else finds this thread like I did wondering how to do it.

You have to create the labels with the `gdata.apps.emailsettings.client.EmailSettingsClient` object before you upload the emails.  You also have to create each level one at a time.  Below is an example in Python.  After you do that then you just specify the full label ('mylabel/stuff/magic') when you upload your emails with the migration API.


    from gdata.apps.emailsettings.client import EmailSettingsClient

    if __name__ == "__main__":
        client = EmailSettingsClient(domain="mydomain.com")
        client.ClientLogin(email="ad...@mydomain.com",
                           password="mypassword",
                           # The source can be anything you want.
                           source="MyDomain-TestApp-v1")

        # Create nested labels for the testa...@mydomain.com
        #
        # mylabel
        #     stuff
        #         magic
        client.create_label("testaccount", "mylabel")
        client.create_label("testaccount", "mylabel/stuff")
        client.create_label("testaccount", "mylabel/stuff/magic")




On Friday, April 6, 2012 9:17:06 AM UTC-7, Mally Mclane wrote:

Tried and exhausted Google Support and the migration specialist, but thanks for the pointers!

On Apr 6, 2012 5:12 PM, "Claudio Cherubino"  wrote:
Hi Mally,

Have you tried opening a support case for that at http://support.google.com/a/bin/request.py ?
I'm confident someone from the Google Apps deployment team can share the best practices.

Claudio

On Fri, Apr 6, 2012 at 12:34 AM, Mally Mclane wrote:
Hi Claudio

On Thu, Apr 5, 2012 at 11:00 PM, Claudio Cherubino
wrote:
> Hi Mally,
>
> Yes, this is the right forum for the Email Migration API.
> The missing support for nested labels is one of the limits of the API and is
> reported in the documentation:
>
> https://developers.google.com/google-apps/email-migration/#email_migration_api_limits_and_quotas
>
> "During migration, a folder's full path becomes the label name. Nested
> folders are migrated as flat labels. Labels are not nested."


Thanks - I must have missed that.

I appreciate this isn't the forum, but I'm really not sure how to
achieve a successful migration now - The migration tool doesn't do the
labels, crafting it ourselves using the API doesn't do the labels and
if we do it using imapsync or something, we can only do 500mb a
day...... Some of users have upwards of 20GB....

Mally

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

Mally Mclane

unread,
May 20, 2012, 8:16:41 AM5/20/12
to google-app...@googlegroups.com
Josh,

On Sun, May 20, 2012 at 3:33 AM, Josh <groups...@blameyourgod.com> wrote:
> It is possible now.  I figured it out after some trial and error.  I don't
> know if it was a month ago when you originally posted, but I'm replying just
> in case you still need help or in case someone else finds this thread like I
> did wondering how to do it.

Thanks for coming back here - we also figured out the same, but I
forgot to post back :(

I wish it was documented....
>>>> google-app...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> google-apps-mgmt...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Apps Domain Information and Management APIs" group.
>>> To post to this group, send email to
>>> google-app...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-apps-mgmt...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Apps Domain Information and Management APIs" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-apps-mgmt-apis/-/Vfyt8MOnVM8J.
>
> To post to this group, send email to google-app...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-apps-mgmt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages