From: Horacio Sanson <hsanson@gmail.com>
To: Sup developer discussion <sup-devel@rubyforge.org>
Subject: [sup-devel] How to get labels from sup for a specific message id?
Date: Sat, 11 May 2013 09:30:08 +0900 [thread overview]
Message-ID: <CAHWBo_Z-Wmqdq6z+b5Qcnic8sQSLMsh=3h9_C-n0LT8urbLW3A@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 610 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 899 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
reply other threads:[~2013-05-11 0:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAHWBo_Z-Wmqdq6z+b5Qcnic8sQSLMsh=3h9_C-n0LT8urbLW3A@mail.gmail.com' \
--to=hsanson@gmail.com \
--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