Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: pi+sup@pihost.us
To: sup-devel@rubyforge.org
Subject: [sup-devel] [PATCH] Respect source.archived? in poll.
Date: Wed, 26 May 2010 14:48:12 -0700	[thread overview]
Message-ID: <1274910492-13206-1-git-send-email-pi+sup@pihost.us> (raw)

From: Anthony Martinez <pi+sup@pihost.us>

[14:31:51] <mtp> i have some sources marked as pre-archived, but it isn't obeying that
[14:38:02] <mtp> looks like 51789907cfcf80b5edb4d597c91a7c888ce5e003 broke it in the first hunk of lib/sup/poll.rb

This appears to fix it.
---
 lib/sup/poll.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb
index 20931f5..607d06a 100644
--- a/lib/sup/poll.rb
+++ b/lib/sup/poll.rb
@@ -158,6 +158,7 @@ EOS
           m = Message.build_from_source source, args[:info]
           old_m = Index.build_message m.id
           m.labels += args[:labels]
+          m.labels.delete :inbox  if source.archived?
           m.labels.delete :unread if source.read?
           m.labels.delete :unread if m.source_marked_read? # preserve read status if possible
           m.labels.each { |l| LabelManager << l }
-- 
1.6.6

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


             reply	other threads:[~2010-05-26 21:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-26 21:48 pi+sup [this message]
2010-06-03  3:58 ` Rich Lane

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=1274910492-13206-1-git-send-email-pi+sup@pihost.us \
    --to=pi+sup@pihost.us \
    --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