sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 8f20211a86a315fb94ff19f463784ad1e139ee47
parent ba216f7a19b137ccf953abdcf32e714d0a58fd6b
Author: Anthony Martinez <pi+sup@pihost.us>
Date:   Wed, 26 May 2010 14:48:12 -0700

Respect source.archived? in poll.

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

This appears to fix it.

Diffstat:
M lib/sup/poll.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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 }