mail 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mail might be problematic. Click here for more details.
- data/CHANGELOG.rdoc +12 -5
- data/Rakefile +1 -1
- data/lib/mail/body.rb +5 -1
- data/lib/mail/elements/address.rb +2 -0
- data/lib/mail/network/delivery_methods/smtp.rb +5 -0
- data/lib/mail/network/retriever_methods/pop3.rb +5 -0
- data/lib/mail/parsers/address_lists.rb +1 -1
- data/lib/mail/parsers/content_disposition.rb +1 -1
- data/lib/mail/parsers/content_location.rb +1 -1
- data/lib/mail/parsers/content_transfer_encoding.rb +1 -1
- data/lib/mail/parsers/content_type.rb +1 -1
- data/lib/mail/parsers/date_time.rb +1 -1
- data/lib/mail/parsers/envelope_from.rb +1 -1
- data/lib/mail/parsers/message_ids.rb +1 -1
- data/lib/mail/parsers/mime_version.rb +1 -1
- data/lib/mail/parsers/phrase_lists.rb +1 -1
- data/lib/mail/parsers/received.rb +1 -1
- data/lib/mail/parsers/rfc2045.rb +1 -1
- data/lib/mail/parsers/rfc2822.rb +1 -1
- data/lib/mail/parsers/rfc2822_obsolete.rb +1 -1
- data/lib/mail/version.rb +1 -1
- data/lib/vendor/treetop-1.4.3/doc/using_in_ruby.markdown +7 -0
- data/lib/vendor/treetop-1.4.3/lib/treetop.rb +4 -1
- data/lib/vendor/treetop-1.4.3/lib/treetop/compiler/node_classes/declaration_sequence.rb +1 -1
- data/lib/vendor/treetop-1.4.3/spec/spec_helper.rb +1 -0
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
+
== Sun Dec 27 10:38:24 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
2
|
+
|
3
|
+
* Updating treetop and mail to initialize uninitialized instance variables to
|
4
|
+
nil
|
5
|
+
* Version bump to 1.4.1
|
6
|
+
|
1
7
|
== Sun Dec 27 09:51:27 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
2
8
|
|
3
|
-
* Version bump to 1.4 because now :to_s calls :decoded for all fields and body
|
4
|
-
:to_s calls :encoded for Message and Header containers. Makes sense...
|
9
|
+
* Version bump to 1.4 because now :to_s calls :decoded for all fields and body
|
10
|
+
while :to_s calls :encoded for Message and Header containers. Makes sense...
|
11
|
+
really.
|
5
12
|
|
6
13
|
== Sun Dec 27 07:30:02 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
7
14
|
|
8
|
-
* Changed fields to default to :decoded on :to_s, all container objects
|
15
|
+
* Changed fields to default to :decoded on :to_s, all container objects
|
16
|
+
retain :encoded as the default for :to_s
|
9
17
|
|
10
18
|
== Thu Dec 17 06:35:05 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
11
19
|
|
@@ -47,8 +55,7 @@
|
|
47
55
|
|
48
56
|
== Mon Nov 23 22:35:50 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
49
57
|
|
50
|
-
* Changed the way attachments are added so that it does not break depending on the order
|
51
|
-
of the Hash passed in.
|
58
|
+
* Changed the way attachments are added so that it does not break depending on the order of the Hash passed in.
|
52
59
|
* Version bump to 1.3.0 - Now works with Edge ActionMailer, MRI 1.8.6, 1.8.7, 1.9.1, all tests passing
|
53
60
|
|
54
61
|
== Sun Nov 22 12:19:44 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
data/Rakefile
CHANGED
data/lib/mail/body.rb
CHANGED
@@ -27,6 +27,10 @@ module Mail
|
|
27
27
|
class Body
|
28
28
|
|
29
29
|
def initialize(string = '')
|
30
|
+
@boundary = nil
|
31
|
+
@preamble = nil
|
32
|
+
@epilogue = nil
|
33
|
+
@parts = []
|
30
34
|
if string.blank?
|
31
35
|
@raw_source = ''
|
32
36
|
else
|
@@ -168,7 +172,7 @@ module Mail
|
|
168
172
|
end
|
169
173
|
|
170
174
|
def parts
|
171
|
-
@parts
|
175
|
+
@parts
|
172
176
|
end
|
173
177
|
|
174
178
|
def <<( val )
|
data/lib/mail/parsers/rfc2045.rb
CHANGED
data/lib/mail/parsers/rfc2822.rb
CHANGED
data/lib/mail/version.rb
CHANGED
@@ -8,6 +8,13 @@ You can `.treetop` files into Ruby source code with the `tt` command line script
|
|
8
8
|
##Loading A Grammar Directly
|
9
9
|
The Polyglot gem makes it possible to load `.treetop` or `.tt` files directly with `require`. This will invoke `Treetop.load`, which automatically compiles the grammar to Ruby and then evaluates the Ruby source. If you are getting errors in methods you define on the syntax tree, try using the command line compiler for better stack trace feedback. A better solution to this issue is in the works.
|
10
10
|
|
11
|
+
In order to use Polyglot dynamic loading of `.treetop` or `.tt` files though, you need to require the Polyglot gem before you require the Treetop gem as Treetop will only create hooks into Polyglot for the treetop files if Polyglot is already loaded. So you need to use:
|
12
|
+
|
13
|
+
require 'polyglot'
|
14
|
+
require 'treetop'
|
15
|
+
|
16
|
+
in order to use Polyglot auto loading with Treetop in Ruby.
|
17
|
+
|
11
18
|
##Instantiating and Using Parsers
|
12
19
|
If a grammar by the name of `Foo` is defined, the compiled Ruby source will define a `FooParser` class. To parse input, create an instance and call its `parse` method with a string. The parser will return the syntax tree of the match or `nil` if there is a failure.
|
13
20
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'rubygems'
|
1
2
|
|
2
3
|
module Treetop
|
3
4
|
VALID_GRAMMAR_EXT = ['treetop', 'tt']
|
@@ -11,6 +12,8 @@ require File.join(TREETOP_ROOT, "ruby_extensions")
|
|
11
12
|
require File.join(TREETOP_ROOT, "runtime")
|
12
13
|
require File.join(TREETOP_ROOT, "compiler")
|
13
14
|
|
15
|
+
# To have Polyglot extensions loaded, you need to require 'polyglot'
|
16
|
+
# before you require 'treetop'
|
14
17
|
if defined?(Polyglot)
|
15
18
|
Polyglot.register(Treetop::VALID_GRAMMAR_EXT, Treetop)
|
16
|
-
end
|
19
|
+
end
|