On Fri, Feb 7, 2014 at 1:46 AM, Abhishek Hadap <
[email protected]> wrote:

> i am working on a migration application where emails's from user's inbox
> will be migrated to Admin's mailbox
>
> Steps are as follows
>
>  i)  A Google Script which extracts all email of a user to his Google
> drive but label wise, like for Label 1 all mails should be in same folder
> in Google Drive and so on, along with the       attachment.(As raw
> contents). This is Done and working.
>
> ii) Once label wise emails extracted to user's Google Drive change the
> ownership to the admin of that domain(Using Google Apps script) This is
> Done and working
>
> iii) Now Admin has all the folder in his drive, and admin wants these
> mails from his drive to mail inbox (Using GAE as web service) as per labels.
>
> I need guidance on how to implement Step iii) as we cannot directly
> migrate using Google script. We don't want to forward the email but we need
> the exact email.
>



When you say you "need the exact email" what exactly are you attempting to
preserve? The tags, the headers, the to address, or all of the above?

If I was doing this project, I'd probably try and use IMAP to update Gmail
and insert the emails into storage. There's even an experimental JavaMail
for Gmail IMAP provider JAR available for download from Oracle:
http://www.oracle.com/technetwork/java/javamail/index-138643.html

With that said, this is most likely going to be a lot of work. Simply
forwarding the emails is probably going to be the fastest and simplest
solution.



-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to