Reformatted excerpts from Horacio Sanson's message of 2011-05-16: > When UIDVALIDITY differs I will simply re-scan the whole mailbox and > feed it to Heliotrope. I trust Heliotrope won't add duplicates.
The REST api will ignore duplicates based on the Message-Id header. > For example in the Heliotrope::Index the add_message method allows to > insert a message and assign it labels, flags and extra parameters at > the same time. How can I do this with the REST API? The only example I > see only adds a message body. > > RestClient.post "http://localhost:8042/message", :message => body I've just pushed a commit to fix this. You can now send labels, state and extra params to the POST. See heliotrope-add for an example. > Also for what purpose are the ext array used for? Can I use it to add > an account/mailbox property to each message so I can latter retrieve > all messages associated to a mailbox/account pair? Anything you put in there will come back as part of a message info block (e.g. when you GET /thread/123.json), but it's not indexed at all, so you won't be able to get the list of matching messages. Probably the easiest way to accomplish that is to make a unique label for each mailbox/account pair, but that's not ideal. We can think of ways to make this work. -- William <wmorgan-...@masanjin.net> _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel