# Mail Daemon Error

**URL:** <https://www.ruby-forum.com/t/mail-daemon-error/160219>\
**Category:** Rails\
**Created:** [February 13, 2009, 5:44am UTC](https://www.ruby-forum.com/t/mail-daemon-error/160219 "2009-02-13T05:44:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![indigoi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b3f665/32.png) [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Post date:** [February 13, 2009, 5:44am UTC](https://www.ruby-forum.com/t/mail-daemon-error/160219/1 "2009-02-13T05:44:19Z")

</div>

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 but then i get an error:

richard-schneemans-macbook-pro:contacts richardschneeman$  
/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  
/Users/richardschneeman/Documents/AptanaStudio/contacts/vendor/plugins/fetcher/lib/fetcher/imap.rb:63:in  
`close_connection' from /Users/richardschneeman/Documents/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 /Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:55:in `start’  
from  
/Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:45:in  
`fork' from /Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:45:in `start’  
from  
/Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:32:in  
`daemonize' from /Users/richardschneeman/Documents/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](http://pastie.org/387939) .

Does anyone have any hints?

---

<div class="post-metadata">

**Author:** ![indigoi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b3f665/32.png) [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Post date:** [February 13, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/mail-daemon-error/160219/2 "2009-02-13T18:03:30Z")

</div>

Anybody??

---

<div class="post-metadata">

**Author:** ![indigoi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b3f665/32.png) [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Post date:** [April 30, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/mail-daemon-error/160219/3 "2009-04-30T22:19:29Z")

</div>

fixed here…

[http://groups.google.com/group/peepcode/browse\_thread/thread/39cb413c4c926490?fwc=1&pli=1](http://groups.google.com/group/peepcode/browse_thread/thread/39cb413c4c926490?fwc=1&pli=1)

Richard,  
[www.uniteddictionary.com](http://www.uniteddictionary.com)
