new icn messageflickr-free-ic3d pan white
imap mail upload to gmail, ruby class | by pedro mg
Back to photostream

imap mail upload to gmail, ruby class

When Evolution and Iceape were having trouble copying thousands of messages to Gmail via Imap, i made this Ruby class that works fine. The machine is now uploading. Logged 1 only error, due to a 25MB attachment, in the first 831 msg's.

 

usage:

$ ./2gmail.rb mbox_file gmail_folder startingmsg

 

if the "gmail_folder" gmail label does not exist, it is created.

2,106 views
1 fave
4 comments
Uploaded on December 2, 2007