From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs213869ebc; Tue, 9 Feb 2010 15:58:52 -0800 (PST) Received: by 10.224.58.83 with SMTP id f19mr3470665qah.330.1265759931067; Tue, 09 Feb 2010 15:58:51 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 8si1080191qwj.41.2010.02.09.15.58.50; Tue, 09 Feb 2010 15:58:51 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 80C303C8064; Tue, 9 Feb 2010 18:58:50 -0500 (EST) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by rubyforge.org (Postfix) with ESMTP id C627E3C803F for ; Tue, 9 Feb 2010 18:58:38 -0500 (EST) Received: by ywh8 with SMTP id 8so5416760ywh.3 for ; Tue, 09 Feb 2010 15:58:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:subject:from:to :date:message-id:user-agent:content-transfer-encoding; bh=QsmcRBXBjMY0Yqi3u69Zx0jZFvo6H7jn5184g0Lm6Yk=; b=bMB8nj8PauHGR2JBT9bGr/sB/p8o215KT51D10QA3fFr1mBJZmqGdkpvjPkHRxe0Jd tdfrQ6/CVghnEVyHsF7jhYlVBP//pmBS23kuARh+ZqVuWdvLGwGTiimErRpTdpCrZrkw 5SMCIPvfroiTa80QYTRtdHMnD21vUStEksTMQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=g0Hvdol/nL2eBKm+/WFtQWyFlTl/9NyjN0HwwDpc+nQ3op4m1Mahk9D0l/SqnoFfRG 3nluuAgeuKk6yOiHpZ7MGgWicQZO5m7hb/pe2gQKkAZYDoFnMuqpuMPUcIMIcXRYVIBD uZYVG1bdvaf5fciu8aigYe7aYnzejsdxbwtN8= Received: by 10.90.14.13 with SMTP id 13mr842060agn.112.1265759492974; Tue, 09 Feb 2010 15:51:32 -0800 (PST) Received: from localhost ([190.246.205.194]) by mx.google.com with ESMTPS id 13sm386121gxk.5.2010.02.09.15.51.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Feb 2010 15:51:32 -0800 (PST) From: Mariano Mara To: sup-talk Date: Tue, 09 Feb 2010 20:51:29 -0300 Message-Id: <1265758810-sup-2203@kafka> User-Agent: Sup/0.10.2 Subject: [sup-talk] Before poll hook 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 Hi everyone, so sorry for this n00b question but my ruby-fu is really bad: I want to run offlineimap as a hook before each poll. I checked the code in the wiki and some code I found in a thread and built my own -very simple- version of it: $ tail -n 15 ~/.sup/hooks/before-poll.rb # http://sup.rubyforge.org/wiki/wiki.pl?Hooks def offlineimap() cmd = "offlineimap -o -l ~/.offlineimap.log" `#{cmd} 2>&1` end say "Checking if we can run offlineimap..." if (@last_fetch || Time.at(0)) < Time.now - 120 say "Running offlineimap..." log offlineimap() say "Finished offlineimap." end @last_fetch = Time.now I saved it where it should be and -just in case- gave it execution rights for my user. However I can't say it's running. I don't see any messages in sup's status bar and everytime I hit Shift+p nothing happens. Needless to say, I have to manually run offlineimap to get the messages. What am I missing? TIA, Mariano _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk