From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.142.211.12 with SMTP id j12cs126094wfg; Wed, 1 Jun 2011 05:03:23 -0700 (PDT) Received: by 10.52.174.49 with SMTP id bp17mr2141973vdc.243.1306929802807; Wed, 01 Jun 2011 05:03:22 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id w8si706538vcc.82.2011.06.01.05.03.22; Wed, 01 Jun 2011 05:03:22 -0700 (PDT) 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 41FE51858372; Wed, 1 Jun 2011 08:03:22 -0400 (EDT) Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by rubyforge.org (Postfix) with ESMTP id 3BA41185836C for ; Wed, 1 Jun 2011 07:53:29 -0400 (EDT) Received: from smtp03.web.de ( [172.20.0.65]) by fmmailgate02.web.de (Postfix) with ESMTP id C15AE1A0EC8D4 for ; Wed, 1 Jun 2011 13:53:00 +0200 (CEST) Received: from [79.231.126.1] (helo=localhost) by smtp03.web.de with esmtp (WEB.DE 4.110 #2) id 1QRjyu-0006M4-00 for sup-talk@rubyforge.org; Wed, 01 Jun 2011 13:53:00 +0200 From: Ruthard Baudach To: sup-talk In-reply-to: References: Date: Wed, 01 Jun 2011 13:52:40 +0200 Message-Id: <1306928873-sup-3234@PrxServer3> User-Agent: Sup/git X-Sender: rthrd@web.de X-Provags-ID: V01U2FsdGVkX1+5ZVGtqihj5ed93adhXe7Phz4SA3snh4TiTYni gHGm+ZeHCOV8u3zlVtVGcKm1qJ1843hmOPt7LEPWpIdBWtXuek iNnNA/7CM= Subject: Re: [sup-talk] before-poll.rb does not appear to be run. Where is PollManager defined? 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 > === Andrew Farrell schrieb am 2011-06-01 05:54: === < > I'm trying to add a before-poll.rb hook, but this appears not to be run. > At least, it is not running offlineIMAP and if I insert a divide-by-zero, > nothing explodes. To create a hook, you have to put the hook-name.rb file in the .sup/hooks folder, and it should be executed when the hook is called. No need to go source diving. You've got a log-line in your before-poll.rb, so you should see it's activity in the log buffer. Just hit ; in inbox-mode, navigate to the line saying log-mode and hit to view the log buffer. If your message shows up, the before-poll hook is executed, and does not work. Happy debugging (I used to know no Ruby as well when I started using sup, and it's still a foreign language to me) > - I'm inferring that "require 'sup' " is the equivalent of python's "from > sup import *" Yes, it is. Ruthard _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk