public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Fixed that if charset was found that the end of a mime part declaration 
TMail would throw an error #919 [lon@speedymac.com] Fixed that 
TMail::Unquoter would fail to recognize quoting method if it was in 
lowercase #919 [lon@speedymac.com] Fixed that TMail::Encoder would fail 
when it attempts to parse e-mail addresses which are encoded using 
something other than the messages encoding method #919 [lon@speedymac.com]


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@997 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Sat Mar 26 05:14:54 -0800 2005
commit  87b1d3834f135390375f2fa06e9b2a22ade0b5cb
tree    27820e0ae0b55153fd49c9e9fcca54c6210ec464
parent  df7a4d498c542a57d99622e160b3ede3d8b688a9
...
1
2
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
0
@@ -1,5 +1,11 @@
0
 *SVN*
0
 
0
+* Fixed that if charset was found that the end of a mime part declaration TMail would throw an error #919 [lon@speedymac.com]
0
+
0
+* Fixed that TMail::Unquoter would fail to recognize quoting method if it was in lowercase #919 [lon@speedymac.com]
0
+
0
+* Fixed that TMail::Encoder would fail when it attempts to parse e-mail addresses which are encoded using something other than the messages encoding method #919 [lon@speedymac.com]
0
+
0
 * Added rescue for missing iconv library and throws warnings if subject/body is called on a TMail object without it instead
0
 
0
 
...
295
296
297
298
 
299
300
301
...
295
296
297
 
298
299
300
301
0
@@ -295,7 +295,7 @@ module TMail
0
         else
0
           raise 'TMail FATAL: encoder scan fail'
0
         end
0
- str = m.post_match
0
+ (str = m.post_match) unless m.nil?
0
       end
0
 
0
       do_encode types, strs
...
281
282
283
 
 
284
285
286
...
281
282
283
284
285
286
287
288
0
@@ -281,6 +281,8 @@ module TMail
0
         when /\AFrom (\S+)/
0
           unixfrom = $1
0
 
0
+ when /^charset=.*/
0
+
0
         else
0
           raise SyntaxError, "wrong mail header: '#{line.inspect}'"
0
         end
...
35
36
37
38
 
39
40
41
...
35
36
37
 
38
39
40
41
0
@@ -35,7 +35,7 @@ begin
0
             from_charset = $1
0
             quoting_method = $2
0
             text = $3
0
- case quoting_method
0
+ case quoting_method.upcase
0
               when "Q" then
0
                 unquote_quoted_printable_and_convert_to(text, from_charset, to_charset)
0
               when "B" then

Comments

    No one has commented yet.