I'm having problems getting the "Receiving Email with Ruby PDF"
example with fetcher daemon working, i've seen a few forum posts in
different places mentioning the exact same problem but no solutions.
Does anyone know what is going on??
Here is my origional post:
http://www.ruby-forum.com/topic/178498
It says:
I'm using fetcher_daemon
svn://
rubyforge.org/var/svn/slantwise/fetcher/trunk which is a daemon
that checks a mail server.
When ever I run 'ruby script/mailer_daemon_fetcher start' it works
great, i get my mail once but then after a few seconds i get an error:
$
/opt/local/lib/ruby/1.8/net/imap.rb:288:in `shutdown': Socket is not
connected (Errno::ENOTCONN)
from /opt/local/lib/ruby/1.8/net/imap.rb:288:in `disconnect'
from
contacts/vendor/plugins/fetcher/lib/fetcher/imap.rb:63:in
`close_connection'
from
AptanaStudio/contacts/vendor/plugins/fetcher/lib/fetcher/base.rb:33:in
`fetch'
from script/mailer_daemon_fetcher:17:in `start'
from script/mailer_daemon_fetcher:16:in `loop'
from script/mailer_daemon_fetcher:16:in `start'
from
/AptanaStudio/contacts/lib/daemon.rb:55:in `start'
from AptanaStudio/contacts/lib/daemon.rb:45:in`fork'
from AptanaStudio/contacts/lib/daemon.rb:45:in `start'
from AptanaStudio/contacts/lib/daemon.rb:32:in 'daemonize'
from AptanaStudio/contacts/lib/daemon.rb:14:in'daemonize' from
script/mailer_daemon_fetcher:28
After which I no longer receive mail. Here is a copy of my code inside
of the fetcher daemon
http://pastie.org/387939 .
Does anyone have any hints?