Giter Club home page Giter Club logo

listupload's Introduction

#ListUpload

##Transfer a shared e-mail to google groups

If your organization used to use a single e-mail account that was accessed by multiple people, but are moving that to a Google Groups account, Google provides a Groups Migration api expressly for this purpose.

This app is also an up-to-date sample use of the Java Groups Migration API

Google provides a Groups Migration API for multiple programming languages.

With python they provide rather useful (if a bit hard to find) sample code

With Java there's bit more difficulty. Google provides a Javadoc for their GroupsMigration API, but it's rather sparse. Google also provides sample code, (off of which this project is loosely based) but the sample code provided is out of date. (E.g. One problem is it's written using an API key login. To actually migrate e-mails into the group you need an Oauth2 client access token). There's a good afternoon's worth of trial-and-error to get it to a working state.

The class GroupsMigrationBackend.java is functionally an updated, already usable demo of Groups Migration API, in case you aim to develop using Groups Migration API.

Prerequisites

To use this utility, you will need:

  • JDK
  • Maven
  • A google apps account with a domain
  • The e-mail address of the group you wish to move e-mails to.
  • The IMAP details of an e-mail account you wish to transfer e-mails from.
  • A google console project set up in the google api console and it's Oauth secrets file.
  • To give permission in your Google Apps Administrator console for that project to access the Groups Migration API for your Google Apps

Build

  1. Ensure you have a JDK and Maven installed, and that Maven is on your path, and you have the environment variable JAVA_HOME set to your JDK path.
  2. Download this repository onto your computer
  3. replace appropriate sample constants in source with the authentication details relevant to your organization
  4. mvn compile
  5. mvn -q exec: java

listupload's People

Contributors

nathanross avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.