Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3682012
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:44:55+00:00 2026-05-19T03:44:55+00:00

I installed ruby-mbox by doing gem install ruby-mbox Running this: #!/usr/bin/ruby require ‘rubygems’ require

  • 0

I installed ruby-mbox by doing gem install ruby-mbox

Running this:

#!/usr/bin/ruby
require 'rubygems'
require 'mbox'
m = IO.read('test.eml')
puts m.size
m = Mbox.new(m)
puts m

produces this exception (at line 7):

/Library/Ruby/Gems/1.8/gems/ruby-mbox-0.0.2/lib/mbox/mbox.rb:45:in `initialize’: uninitialized constant Mbox::StringIO (NameError)

I have proved that “m” is assigned a string containing the contents of the file, just before Mbox.new(m) is called.

It looks as though the Mbox::StringIO should have been defined by hasn’t been.

What’s going wrong here?

Ruby version:

ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

(That’s the default ruby installed on OS X 10.6.6)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:44:55+00:00Added an answer on May 19, 2026 at 3:44 am

    Sorry people, I should have looked harder before posting here…

    Fixed it:

    Just inserted the line require ‘stringio’ to give this:

    #!/usr/bin/ruby
    require 'rubygems'
    require 'stringio'
    require 'mbox'
    m = IO.read('test.eml')
    puts m.size
    m = Mbox.new(m)
    puts m
    

    It looks like stringio is assumed to be loaded – but isn’t loaded explicitly by ruby-mbox…

    Oddly, the example scripts don’t load it either…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran: sudo gem install ruby-mbox Then: require rubygems require ruby-mbox mbox = Mbox.new(Inbox)
I just installed ruby on rails on windows. install mysql and created a new
I installed ruby 1.9.1 on my Debian Squeeze. After that I tried to install
I've installed Ruby (1.8.7 via apt-get) and I installed Rails (2.3.2 via rubygems) but
This is really odd: I installed ruby 1.9.1 using a 191 suffix so that
On Ruby 1.8.7 and rails 2.3.5 I get: gem install rmagick ERROR: Error installing
I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions
So I installed Ruby On Rails using the Windows Installer. Now the startup guides
I'm having significant trouble installing Ruby on Rails. I installed Ruby with apt-get When
I'm trying to install some Ruby Gems so I can use Ruby to notify

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.