* [sup-devel] [PATCH] Respect source.archived? in poll.
@ 2010-05-26 21:48 pi+sup
2010-06-03 3:58 ` Rich Lane
0 siblings, 1 reply; 2+ messages in thread
From: pi+sup @ 2010-05-26 21:48 UTC (permalink / raw)
To: sup-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sup-devel] [PATCH] Respect source.archived? in poll.
2010-05-26 21:48 [sup-devel] [PATCH] Respect source.archived? in poll pi+sup
@ 2010-06-03 3:58 ` Rich Lane
0 siblings, 0 replies; 2+ messages in thread
From: Rich Lane @ 2010-06-03 3:58 UTC (permalink / raw)
To: pi+sup; +Cc: sup-devel
Applied to master.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-03 3:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-26 21:48 [sup-devel] [PATCH] Respect source.archived? in poll pi+sup
2010-06-03 3:58 ` Rich Lane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox