Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Ruthard Baudach <rthrd@web.de>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] before-poll.rb does not appear to be run. Where is PollManager defined?
Date: Wed, 01 Jun 2011 13:52:40 +0200	[thread overview]
Message-ID: <1306928873-sup-3234@PrxServer3> (raw)
In-Reply-To: <BANLkTikaFJ1B3DrsDyERJvmhU5QH-fwk1Q@mail.gmail.com>

> === 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
<Enter> 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


  reply	other threads:[~2011-06-01 12:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01  3:54 Andrew Farrell
2011-06-01 11:52 ` Ruthard Baudach [this message]
2011-06-01 19:18   ` Andrew Farrell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1306928873-sup-3234@PrxServer3 \
    --to=rthrd@web.de \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox