Permalink
Commits on Apr 15, 2010
  1. Allow bundler to automatically build a gem directly from git

    emk committed Apr 15, 2010
    Using bundler (now included with Rails 3.0), it's possible to fetch gems
    directly from specific branches in a git repository.  This is very handy
    for contributors and people who need to make small fixes.
    
    With this patch applied, it's possible to include the following line
    in a Gemfile:
    
      gem 'mail', :git => 'git://github.com/mikel/mail.git'
    
    Then you can install the latest master branch using bundler:
    
      bundle install
    
    This patch changes two things about the development process.  First,
    gems are now built using:
    
      rake build
    
    ...or:
    
      gem build mail.gemspec
    
    Second, the generated gemfile now appears in the top-level directory,
    and not in a pkg/ subdirectory.
  2. Handle multiple quoted words in Encodings.unquote_and_convert_to

    emk committed Apr 15, 2010
    The function Encodings.unquote_and_convert_to isn't used anywhere in the
    current source tree, but it's necessary to correctly handle headers with
    non-ASCII, non-UTF-8 character sets under Ruby 1.8.
    
    For example, we can force the unquoting of the 'To' header as UTF-8 using
    the following code:
    
      to_field = mail.header['to']
      Mail::Encodings.unquote_and_convert_to(to_field.value, 'utf-8')
    
    This patch adds support for multiple quoted chunks in the same header.
    For example:
    
      To: =?Shift_JIS?Q?=93=FA=96{=8C=EA=?= <a@example.com>, \
              =?Shift_JIS?Q?=93=FA=96{=8C=EA=?= <b@example.com>
    
    All that was actually needed was a regular expression tweak to prevent
    the two quoted chunks from being matched as one giant, malformed chunk.
    
    Note that we still don't make any attempt to correctly deal with headers
    that mix different encodings in the same header.  I'm sure these exist
    somewhere in the wild, but I haven't seen them yet.
    
    Ideally, all this code should go away and be replaced with a more
    robust implementation of field.charset and field.decoded.
Commits on Apr 11, 2010
  1. Updating readme

    mikel committed Apr 11, 2010
  2. Updating change log

    mikel committed Apr 11, 2010
  3. Version bump to 2.2.0

    mikel committed Apr 11, 2010
  4. Removing useless code

    mikel committed Apr 11, 2010
  5. Cleanup spec for Ruby 1.9.1

    mikel committed Apr 11, 2010
  6. Massive cleanup in encoding to not split multibyte chars and make it …

    mikel committed Apr 11, 2010
    …all work on Ruby 1.8.7
Commits on Apr 10, 2010
  1. Merge branch 'master' into encode

    mikel committed Apr 10, 2010
  2. Fixing dependency to approx 2.3.6

    mikel committed Apr 10, 2010
  3. Fixing up more encoding issues, being sure to call mb_chars where nee…

    mikel committed Apr 10, 2010
    …ded, and fixing adjacent decoding of QP
  4. Version bump to 2.1.5.7

    mikel committed Apr 10, 2010
Commits on Apr 9, 2010
  1. Updating Roadmap

    mikel committed Apr 9, 2010
Commits on Apr 8, 2010
Commits on Apr 4, 2010
  1. Changing encoding strategy from breaking on word boundaries, to space…

    mikel committed Apr 4, 2010
    …s, also clean up of charset assignment
  2. Reworking the encoded word header substitution, much cleaner now, han…

    mikel committed Apr 4, 2010
    …dles white space between words correctly
Commits on Apr 3, 2010
  1. Changing the default behaviour of line wrapping, now is a LOT more co…

    mikel committed Apr 3, 2010
    …nservative in how it wraps, means more lines, but less chance of failure
Commits on Mar 31, 2010
Commits on Mar 29, 2010
  1. Merge branch 'master' into encode

    mikel committed Mar 29, 2010
    Conflicts:
    	CHANGELOG.rdoc
    	lib/mail.rb
    	lib/mail/field.rb
    	lib/mail/fields/common/common_address.rb
    	lib/mail/fields/common/common_field.rb
    	lib/mail/fields/common/common_message_id.rb
    	lib/mail/fields/content_transfer_encoding_field.rb
    	lib/mail/fields/unstructured_field.rb
    	spec/mail/fields/content_type_field_spec.rb
    	spec/mail/header_spec.rb
  2. Version bump to 2.1.5.3 - Changing to Treetop 1.4.5 as a gem dep and …

    mikel committed Mar 29, 2010
    …removing the vendor
Commits on Mar 28, 2010
  1. Version bump to 2.1.5.2

    mikel committed Mar 28, 2010
  2. Closes #46 - header fields downcased

    mikel committed Mar 28, 2010