On Wed, May 18, 2011 at 2:05 PM, William Morgan <wmorgan-sup@masanjin.net> wrote: > Reformatted excerpts from Horacio Sanson's message of 2011-05-17: >> I implemented a new version of the GMail -> Heliotrope sync script and >> attach it here in hopes someone will test it and provide some >> feedback/comments. > > Great! This is very exciting. > >> - I am seeing some negative thread_id's in the response. Need to check >> if this is normal or a bug in Heliotrope or my script. > > This is normal. It indicates a thread in which the root message can't be > found (so Heliotrope must construct a pseudo-message to hold the tree > together). Nothing to worry about, except as an indicator that you're > missing email refefred to by something else in the thread. > Is there a way to use GMail supplied thread ids?? there is an extension X-GM-THRID that provides such information. >> - GMail inbox is with a capital "I" (e.g. Inbox) while heliotrope >> uses a small "i". >> Shall I down case all labels? or make a special treatment for Inbox? > > I suggest special-casing inbox. > Perfect, the new script special cases inbox >> To use this script I had to modify heliotrope-server.rb to allow >> setting labels and states when posting new messages (see attached >> patch). > > I apologize for the confusion in this, but this is actually the wrong > endpoint to use. POST "/message" (no .json) is for adding new emails. > This endpoint was introduced temporarily for outgoing emails, i.e. when > you compose or reply via turnsole. But I'm going to rename it as well as > implement it. > Great I rewrote the GMail -> Heliotrope script to use the improved POST "/message" and works wonderfully. I am attaching the new version that is cleaner and seems to work without problems. > Anyways, I've added the relevant code to /message, so your script should > work against that. > -- > William <wmorgan-sup@masanjin.net> > _______________________________________________ > Sup-devel mailing list > Sup-devel@rubyforge.org > http://rubyforge.org/mailman/listinfo/sup-devel >
Attachment:
gmail.rb
Description: application/ruby
_______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel