This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
fetcher /
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
README | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
Rakefile | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
generators/ | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
init.rb | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
install.rb | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
lib/ | Mon Jul 07 19:14:43 -0700 2008 | [randy] |
| |
tasks/ | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
test/ | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
| |
uninstall.rb | Sun Jul 06 14:03:37 -0700 2008 | [randy] |
README
= Fetcher
Fetcher is a simple message fetcher perfect for using in a daemon.
It implements the following common pattern:
1. Connect to a server
2. Download available messages
3. Send each message to another object for further processing
4. Remove downloaded messages from the remote server
Install using:
script/plugin install svn://rubyforge.org/var/svn/slantwise/fetcher/trunk
== Usage
Create a new fetcher object like the following:
@fetcher = Fetcher.create({:type => :pop,
:receiver => IncomingMailHandler,
:server => 'mail.example.com',
:username => 'jim',
:password => 'test'})
The receiver object is expected to have a receive method that takes a message as it's only argument.
Call fetch to run the process.
@fetcher.fetch
You can also subclass Fetcher::Base or one of the protocol-specific classed to override the standard behavior.



