Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: William Morgan <wmorgan-sup@masanjin.net>
To: sup-devel <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] Query for largest msg_id?
Date: Wed, 18 May 2011 04:59:05 +0000	[thread overview]
Message-ID: <1305693289-sup-4896@masanjin.net> (raw)
In-Reply-To: <BANLkTin5eRZw44Je+==V=K4pyVw2T7S3+A@mail.gmail.com>

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-sup@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


  parent reply	other threads:[~2011-05-18  5:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 15:17 Horacio Sanson
2011-05-15 15:01 ` William Morgan
2011-05-16 15:02   ` Horacio Sanson
2011-05-17 14:59     ` Horacio Sanson
2011-05-17 15:15       ` Horacio Sanson
2011-05-18  5:05       ` William Morgan
2011-05-20 15:38         ` Horacio Sanson
2011-05-22 22:00           ` William Morgan
2011-05-23 21:22           ` Hamish
2011-05-24  3:16             ` Horacio Sanson
2011-05-18  4:59     ` William Morgan [this message]
2011-05-18 20:09       ` Sascha Silbe
2011-05-19  3:14         ` Alvaro Herrera
2011-05-22 22:05         ` William Morgan
2011-05-23  7:52           ` Gaudenz Steinlin
2011-05-23 16:14             ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305693289-sup-4896@masanjin.net \
    --to=wmorgan-sup@masanjin.net \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox