From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.81.207 with SMTP id y15cs66586bkk; Wed, 26 May 2010 14:59:35 -0700 (PDT) Received: by 10.231.150.4 with SMTP id w4mr2021701ibv.41.1274911174366; Wed, 26 May 2010 14:59:34 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 33si822196ibx.95.2010.05.26.14.59.33; Wed, 26 May 2010 14:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 9C9F9185831A; Wed, 26 May 2010 17:59:33 -0400 (EDT) X-Greylist: delayed 613 seconds by postgrey-1.31 at rubyforge.org; Wed, 26 May 2010 17:59:24 EDT Received: from mail.cnsp.com (mail.cnsp.com [208.3.80.17]) by rubyforge.org (Postfix) with ESMTP id 9A7481858267 for ; Wed, 26 May 2010 17:59:24 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.cnsp.com (Postfix) with ESMTP id 16510D45B5A8; Wed, 26 May 2010 15:49:10 -0600 (MDT) X-Virus-Scanned: Debian amavisd-new at cnsp.biz Received: from mail.cnsp.com ([127.0.0.1]) by localhost (mail.cnsp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7keSnvwDyX54; Wed, 26 May 2010 15:49:02 -0600 (MDT) Received: from home.mrtheplague.net (174-31-142-91.tukw.qwest.net [174.31.142.91]) by mail.cnsp.com (Postfix) with SMTP id A1499D44DB34; Wed, 26 May 2010 15:49:02 -0600 (MDT) Received: by home.mrtheplague.net (Postfix, from userid 1000) id 8E89184E4B22; Wed, 26 May 2010 15:48:51 -0600 (MDT) From: pi+sup@pihost.us To: sup-devel@rubyforge.org Date: Wed, 26 May 2010 14:48:12 -0700 Message-Id: <1274910492-13206-1-git-send-email-pi+sup@pihost.us> X-Mailer: git-send-email 1.6.6 Subject: [sup-devel] [PATCH] Respect source.archived? in poll. 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org From: Anthony Martinez [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. --- 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