From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.177.71 with SMTP id co7csp70907vdc; Fri, 10 May 2013 17:30:21 -0700 (PDT) X-Received: by 10.60.83.103 with SMTP id p7mr8092115oey.130.1368232221325; Fri, 10 May 2013 17:30:21 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id ut5si4930351obc.193.2013.05.10.17.30.20 for ; Fri, 10 May 2013 17:30:21 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (bad format) header.i=@gmail.com Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C131A2E11D; Sat, 11 May 2013 00:30:20 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by rubyforge.org (Postfix) with ESMTP id DD8AD2E068 for ; Sat, 11 May 2013 00:30:08 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id ta17so1332996obb.26 for ; Fri, 10 May 2013 17:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=69kI7FL/qFJrJAELcVZaWgxevWgcd6NoeC84VV57sXQ=; b=plmt3Z5qphq0R1Dg12heaBHCK6vmT+L+TUDkR0xqqImknCIU9fFSmch+FI1qdYKg3P O5B6yep47kQupSdfnDRWLe94GhojIO+gZil0S21cCn7+IEi5Civ/v/RLHVZr5yaeI2+e PPLBthFgWccPLRib+r6G8hn8ShnY//CvKzE4xsRM/iaaZovhbk5wD7JwAspgUbZqolvE KsdQ07CFpes5ekyAGfP+b8L9yughl+hsX4yr18sylFPZyi6oky0+bx6gSggB+PCqQgye +e9lIlsABkjwZGRpmFHcSLFPEyi2AW98t2IudEToajKc47TxbKiBIbaq9+VmAXJpf7KB Cyeg== MIME-Version: 1.0 X-Received: by 10.182.86.6 with SMTP id l6mr8086900obz.6.1368232208570; Fri, 10 May 2013 17:30:08 -0700 (PDT) Received: by 10.182.123.2 with HTTP; Fri, 10 May 2013 17:30:08 -0700 (PDT) Date: Sat, 11 May 2013 09:30:08 +0900 Message-ID: From: Horacio Sanson To: Sup developer discussion Subject: [sup-devel] How to get labels from sup for a specific message 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: , Content-Type: multipart/mixed; boundary="===============8030839014792906375==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============8030839014792906375== Content-Type: multipart/alternative; boundary=089e0149c468c36c1204dc666284 --089e0149c468c36c1204dc666284 Content-Type: text/plain; charset=ISO-8859-1 For my gmail source [1] I need to find out the labels for each message in sup. This is to update the remote Gmail with the labels the user set using sup. I am not very familiar with sup source code and my attempts to extract the message labels based on the message id have failed. My last try was: index = Redwood::Index.instance msg = index.build_message(uid) but this results in an error about Range not being converted to Integer. The uid is the id I use to register the message to sup during the poll method call. Any tips are appreciated Horacio [1] https://github.com/hsanson/sup/tree/gmail_source --089e0149c468c36c1204dc666284 Content-Type: text/html; charset=ISO-8859-1

For my gmail source [1] I need to find out the labels for each message in sup. This is to update the remote Gmail with the labels the user set using sup.

I am not very familiar with sup source code and my attempts to extract the message labels based on the message id have failed.

My last try was:

index = Redwood::Index.instance
msg = index.build_message(uid)

but this results in an error about Range not being converted to Integer. The uid is the id I use to register the message to sup during the poll method call.

Any tips are appreciated
Horacio

[1] https://github.com/hsanson/sup/tree/gmail_source
--089e0149c468c36c1204dc666284-- --===============8030839014792906375== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============8030839014792906375==--