uninitialized constant Vmail::ImapClient #110

gamag opened this Issue Dec 13, 2012 · 5 comments


None yet

6 participants


When running Vmail 2.6.1 on OpenSuse 12.2, Ruby 1.9, gem 1.8

I get the following error:

usr/lib/ruby/gems/1.9.1/gems/vmail-2.6.1/lib/vmail/inbox_poller.rb:4:in <module:Vmail>': uninitialized constant Vmail::ImapClient (NameError)
from /usr/lib/ruby/gems/1.9.1/gems/vmail-2.6.1/lib/vmail/inbox_poller.rb:3:in
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
from /usr/lib/ruby/gems/1.9.1/gems/vmail-2.6.1/lib/vmail.rb:63:in start'
from /usr/lib/ruby/gems/1.9.1/gems/vmail-2.6.1/bin/vmail:14:in
from /usr/bin/vmail:23:in load'
from /usr/bin/vmail:23:in


I managed to fix it by adding something like "require "vmail/imap_client"" to inbox_poller.rb

Since I don't know ruby, i'm not sure if that's the right way ...

@program247365 program247365 added a commit that referenced this issue Dec 14, 2012
@program247365 program247365 Addresses Issue #110
This fixed the same error I got on vmail startup.

I verified what @gamag is saying. Same thing was happening to me. Submitted pull request to fix it.


@program247365 's fix works for me


@program247365 Same issue. Thoughts?


@program247365 Mind posting the PR you used to fix this... I'm getting the same issue.


@dchapman1988 The pull request should be the first comment in this thread. It's



Make sure you're running a valid Ruby version on the commandline when you're calling 'vmail'.

Check your Ruby version by running:

ruby -v

My prompt outputs:

ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.4.0]
@danchoi danchoi closed this in 0865e0a Dec 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment