segmentation fault - Ruby on Rails IMAP segfaults with Ruby 1.9.2 -


I was trying to do a simple test to get the following emails from Gmail. However, when I do this with Ruby 1.9.2p136 then throws a partition error on this line:

  imap = Net :: IMAP.new ('imap.gmail.com', 993, true)   

Using 1.8.7.334 This works fine. I was running in a similar problem where the action maker would send SMTP to 1.9.2 in Segfault and 1.8.7 would work fine. I found that the setting indicates enable_starttls_auto = & gt; False . However, I do not think there is any way to do this through IMAP though, it seems related.

add the following environment variable:

export RUBYOPT = -r openssl

You can do this from within your profile or view:

Comments