From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.142.241.17 with SMTP id o17cs36902wfh; Tue, 17 May 2011 22:16:15 -0700 (PDT) Received: by 10.52.177.36 with SMTP id cn4mr2194148vdc.26.1305695774321; Tue, 17 May 2011 22:16:14 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id k17si836278vcr.96.2011.05.17.22.16.12; Tue, 17 May 2011 22:16:13 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id BE21318583B0 for ; Wed, 18 May 2011 01:16:12 -0400 (EDT) Received: from masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 86D611D780FC for ; Wed, 18 May 2011 00:51:43 -0400 (EDT) Received: from w by masanjin.net with local (Exim 4.71) (envelope-from ) id 1QMYqf-0007kq-Om for sup-devel@rubyforge.org; Wed, 18 May 2011 04:59:06 +0000 From: William Morgan To: sup-devel In-reply-to: References: <1305471101-sup-6655@masanjin.net> Date: Wed, 18 May 2011 04:59:05 +0000 Message-Id: <1305693289-sup-4896@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-devel] Query for largest msg_id? X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel