From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.240.136 with SMTP id la8cs50711icb; Thu, 3 Feb 2011 07:59:46 -0800 (PST) Received: by 10.229.212.5 with SMTP id gq5mr9379753qcb.64.1296748786282; Thu, 03 Feb 2011 07:59:46 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id my6si2059472qcb.142.2011.02.03.07.59.46; Thu, 03 Feb 2011 07:59:46 -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 C61F9177994A; Thu, 3 Feb 2011 10:59:45 -0500 (EST) Received: from plecavalier.com (plecavalier.com [64.40.149.83]) by rubyforge.org (Postfix) with ESMTP id 6192118582E2 for ; Thu, 3 Feb 2011 10:58:21 -0500 (EST) Received: (qmail 20089 invoked from network); 3 Feb 2011 09:58:19 -0600 Received: from ottawa-hs-64-26-175-141.s-ip.magma.ca (HELO localhost) (64.26.175.141) by thelittlecloset.ca with (DHE-RSA-AES128-SHA encrypted) SMTP; 3 Feb 2011 09:58:19 -0600 From: Philippe LeCavalier To: sup-talk Date: Thu, 03 Feb 2011 10:58:18 -0500 Message-Id: <1296746458-sup-2021@plc.intranet.plecavalier.com> User-Agent: Sup/0.12.1 Subject: [sup-talk] New User Hooks Details 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 I'm having a hard time using the hooks system. I'm trying to add the 'AutoAddLabelsToNewMessages'. I've followed the wiki and created '~/.sup/hooks/before-add-message.rb' with a few hooks but sup isn't calling them before polling. One bit of info that seems odd to me is when I issue 'sup -l' the hooks listed are nowhere to be found in the hooks folder yet they appear to be working. Is that normal? ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux] sup 0.12.1 sample hook: #Mark Lists addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r") if ! addressfile.grep(/#{message.list_address}/).empty? message.add_label :lists end contents of ~/.sup.hooks/label.lists plecavalier@plc:~/.sup/hooks$ cat label.lists cups@easysw.com samba@lists.samba.org rsync@lists.samba.org offlineimap-project@lists.alioth.debian.org bind-users@lists.isc.org The only thing I can think of is possibly setting the execute bit but I wanted to checking here prior. -- Thanks, Phil _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk