Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when polling for new messages #310

Closed
traylenator opened this issue May 12, 2014 · 2 comments
Closed

Crash when polling for new messages #310

traylenator opened this issue May 12, 2014 · 2 comments

Comments

@traylenator
Copy link

After sup starts it hangs showing

'Polling for new messages...'

if i press e.g a navigation key sup imediatly exits.

--- Encoding::CompatibilityError from thread: poll after loading inbox
incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/header.rb:81:in `=~'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/header.rb:81:in `parse'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:233:in `block in parse_header'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:229:in `each'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:229:in `parse_header'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:194:in `parse_low'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:183:in `parse'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:331:in `parse'
/usr/local/share/gems/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:345:in `read'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/message.rb:481:in `message_to_chunks'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/message.rb:462:in `block in message_to_chunks'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/message.rb:462:in `map'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/message.rb:462:in `message_to_chunks'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/message.rb:265:in `load_from_source!'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/message.rb:362:in `build_from_source'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:204:in `block in poll_from'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/maildir.rb:150:in `block in poll'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/maildir.rb:149:in `each'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/maildir.rb:149:in `each_with_index'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/maildir.rb:149:in `poll'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:201:in `poll_from'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:146:in `block (2 levels) in do_poll'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:136:in `each'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:136:in `block in do_poll'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:135:in `synchronize'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:135:in `do_poll'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/util.rb:658:in `method_missing'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/modes/poll_mode.rb:15:in `poll'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:58:in `poll_with_sources'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/poll.rb:94:in `poll'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup/util.rb:658:in `method_missing'
/usr/local/share/gems/gems/sup-0.17.0/bin/sup:220:in `block (2 levels) in <module:Redwood>'
/usr/local/share/gems/gems/sup-0.17.0/lib/sup.rb:86:in `block in reporting_thread'

versions

$ ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
[straylen@pb-d-128-141-28-12 ~]$ gem list

*** LOCAL GEMS ***

addressable (2.3.6)
bigdecimal (1.2.0)
blankslate (2.1.2.4)
chronic (0.9.1)
daemons (1.1.9)
em-websocket (0.3.8)
eventmachine (1.0.3)
gettext (3.1.1)
gli (2.10.0)
highline (1.6.11)
htmlentities (4.3.1)
iconv (1.0.4)
io-console (0.4.2)
json (1.7.7)
locale (2.1.0)
lockfile (1.4.3)
mime-types (1.19)
mini_portile (0.5.3)
ncursesw (1.4.7)
net-ssh (2.6.6)
nokogiri (1.6.1)
parslet (1.6.0)
psych (2.0.0)
rack (1.5.2)
rack-protection (1.5.3)
rake (10.0.4)
rdoc (4.0.1)
redcarpet (3.1.1)
rmail (1.0.0)
rmail-sup (1.0.1)
showoff (0.9.8.1)
sinatra (1.4.5)
sinatra-websocket (0.3.0)
sup (0.17.0)
text (1.2.3)
thin (1.6.2)
tilt (1.4.1)
trollop (2.0)
unicode (0.4.4.1)
xapian-ruby (1.2.17)
@traylenator
Copy link
Author

In fact if I set my LANG=C then I can continue.

@gauteh
Copy link
Member

gauteh commented May 12, 2014

This is most likely related to a malformed header field of an incoming
mail. #214 does fix the issue, but it isn't really a usable fix (probably
breaks other things). RMail is deprecated and we haven't gotten around to
changing to Mail yet (#127). Closing this as a duplicate. It is interesting
though, that it works with LANG=C.

On Mon, May 12, 2014 at 2:49 PM, Steve Traylen [email protected]:

In fact if I set my LANG=C then I can continue.


Reply to this email directly or view it on GitHubhttps://github.com//issues/310#issuecomment-42827450
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants