[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] Query for largest msg_id?



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.

>   - 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.

> 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.

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