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

rmail Encoding::CompatibilityError when replying to a message with utf-8 chars in subject #3

Open
wmorgan opened this issue Sep 6, 2011 · 1 comment

Comments

@wmorgan
Copy link
Owner

wmorgan commented Sep 6, 2011

$HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/header.rb:81:in =~': incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string) (Encoding::CompatibilityError) from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/header.rb:81:inparse'
from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/parser.rb:233:in block in parse_header' from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/parser.rb:229:ineach'
from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/parser.rb:229:in parse_header' from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/parser.rb:194:inparse_low'
from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/parser.rb:183:in parse' from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/parser.rb:331:inparse'
from $HOME/.rvm/gems/ruby-1.9.2-p180/gems/rmail-1.0.0/lib/rmail/parser.rb:345:in read' from $HOME/devel/turnsole/lib/turnsole/modes/edit-message-mode.rb:273:inparse_file'
from $HOME/devel/turnsole/lib/turnsole/modes/edit-message-mode.rb:166:in edit_message!' from $HOME/devel/turnsole/lib/turnsole/input.rb:39:inhandle'
from $HOME/devel/turnsole/lib/turnsole/ui.rb:69:in block in step' from $HOME/devel/turnsole/lib/turnsole/ui.rb:94:inblock in spawn_fiber'

@stapelberg
Copy link

I have this issue, too, but when sending an email with UTF-8 characters in the subject, for example ’

$ ruby -I lib -I ../heliotrope/lib bin/turnsole
/home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated
in the future, use String#encode instead.
/home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/header.rb:81:in `=~': incompatible encoding regexp match
(ASCII-8BIT regexp with UTF-8 string) (Encoding::CompatibilityError)
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/header.rb:81:in `parse'
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:233:in `block in parse_header'
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:229:in `each'                 
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:229:in `parse_header'
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:194:in `parse_low'   
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:183:in `parse'    
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:331:in `parse'
    from /home/michael/.rvm/gems/ruby-1.9.3-p0@sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:345:in `read' 
    from /home/michael/turnsole/lib/turnsole/modes/edit-message-mode.rb:273:in `parse_file'                    
    from /home/michael/turnsole/lib/turnsole/modes/edit-message-mode.rb:166:in `edit_message!'
    from /home/michael/turnsole/lib/turnsole/modes/compose-mode.rb:19:in `edit_message!'      
    from /home/michael/turnsole/lib/turnsole/modes/compose-mode.rb:47:in `spawn_nicely' 
    from /home/michael/turnsole/lib/turnsole/global.rb:100:in `do'                     
    from /home/michael/turnsole/lib/turnsole/input.rb:41:in `handle'
    from /home/michael/turnsole/lib/turnsole/ui.rb:69:in `block in step'
    from /home/michael/turnsole/lib/turnsole/ui.rb:100:in `block in spawn_fiber'

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

No branches or pull requests

2 participants