Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] Ruby 1.9 encoding fixes
@ 2009-12-31 23:36 Rich Lane
  2009-12-31 23:36 ` [sup-devel] [PATCH 01/10] open mail source files as binary Rich Lane
  2010-01-01 19:09 ` [sup-devel] Ruby 1.9 encoding fixes William Morgan
  0 siblings, 2 replies; 19+ messages in thread
From: Rich Lane @ 2009-12-31 23:36 UTC (permalink / raw)
  To: sup-devel

This patchset fixes the string encoding issues on Ruby 1.9.1. The general
strategy is to treat raw messsages as binary and ensure that everything is
passed through Iconv or String#ascii before being displayed or stored. I tested
an earlier version of this patchset (with more debug checks) on around 700
thousand mails including plenty of spam. It'd be nice if someone tested
signed/encrypted mails to make sure I didn't break anything there.

The only effect on Ruby 1.8 should be asciifying the raw header/message view,
and maybe a little speedup due to reusing the RMail message header instead of
parsing it ourselves.

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-01-03 15:49 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-31 23:36 [sup-devel] Ruby 1.9 encoding fixes Rich Lane
2009-12-31 23:36 ` [sup-devel] [PATCH 01/10] open mail source files as binary Rich Lane
2009-12-31 23:36   ` [sup-devel] [PATCH 02/10] display_size is just size on Ruby 1.9 Rich Lane
2009-12-31 23:36     ` [sup-devel] [PATCH 03/10] add String#check Rich Lane
2009-12-31 23:36       ` [sup-devel] [PATCH 04/10] add String#ascii Rich Lane
2009-12-31 23:36         ` [sup-devel] [PATCH 05/10] fixup Iconv#easy_decode for Ruby 1.9 Rich Lane
2009-12-31 23:36           ` [sup-devel] [PATCH 06/10] add String#transcode Rich Lane
2009-12-31 23:36             ` [sup-devel] [PATCH 07/10] transcode output from mime-decode hook too Rich Lane
2009-12-31 23:36               ` [sup-devel] [PATCH 08/10] decode raw header/message to ascii before viewing Rich Lane
2009-12-31 23:36                 ` [sup-devel] [PATCH 09/10] use header from the RMail::Message in Message#parse_header Rich Lane
2009-12-31 23:36                   ` [sup-devel] [PATCH 10/10] decode header fields of enclosed messages Rich Lane
2010-01-01 20:59   ` [sup-devel] [PATCH 01/10] open mail source files as binary Anthony Martinez
2010-01-01 21:43     ` William Morgan
2010-01-01 21:48       ` Rich Lane
2010-01-01 21:57         ` William Morgan
2010-01-02  1:16       ` Anthony Martinez
2010-01-01 19:09 ` [sup-devel] Ruby 1.9 encoding fixes William Morgan
     [not found]   ` <1262442839-sup-7738@peray>
2010-01-03 14:48     ` William Morgan
2010-01-03 15:48       ` Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox