From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.240.136 with SMTP id la8cs292660icb; Mon, 14 Feb 2011 05:47:24 -0800 (PST) Received: by 10.224.6.71 with SMTP id 7mr3099840qay.351.1297691243641; Mon, 14 Feb 2011 05:47:23 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id n7si4909361qcu.30.2011.02.14.05.47.23; Mon, 14 Feb 2011 05:47:23 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-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-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C658C18581B2; Mon, 14 Feb 2011 08:47:22 -0500 (EST) Received: from plecavalier.com (plecavalier.com [64.40.149.83]) by rubyforge.org (Postfix) with ESMTP id 4273D18581F3 for ; Mon, 14 Feb 2011 08:33:38 -0500 (EST) Received: (qmail 30348 invoked from network); 14 Feb 2011 07:31:09 -0600 Received: from xplr-142-46-160-183.xplornet.com (HELO localhost) (142.46.160.183) by plecavalier.com with (DHE-RSA-AES128-SHA encrypted) SMTP; 14 Feb 2011 07:31:08 -0600 From: Philippe LeCavalier To: Rich Lane In-reply-to: <1297648971-sup-3124@zyrg.net> References: <1297646180-sup-4406@mail.offthecob.info> <1297648971-sup-3124@zyrg.net> Date: Mon, 14 Feb 2011 08:31:05 -0500 Message-Id: <1297690119-sup-2506@plc.intranet.plecavalier.com> User-Agent: Sup/0.12.1 Cc: sup-talk Subject: Re: [sup-talk] after-poll.rb variables X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup 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-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Excerpts from Rich Lane's message of Sun Feb 13 21:08:52 -0500 2011: > Excerpts from whodevil's message of 2011-02-13 20:24:50 -0500: > > I'm wondering if someone know if there is a way to get the total > > unread messages in the inbox from within the after-poll hook? > > Index.num_results_for(labels: [:inbox, :unread]) This thread made me wonder... Wouldn't it be handy if after-poll reported the labels before-add-poll.rb assigns? -- Thanks, Phil _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk