mail 2.2.6 → 2.2.6.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 CHANGED
@@ -1,3 +1,8 @@
1
+ == Mon Sep 13 02:31:21 UTC 2010 Mikel Lindsaar <mikel@rubyx.com>
2
+
3
+ * Replace some missing documentation
4
+ * Version bump to 2.2.6.1
5
+
1
6
  == Sat 11 Sep 2010 05:13:36 UTC Mikel Lindsaar <mikel@rubyx.com>
2
7
 
3
8
  * Fixed parsing an email with an empty In-Reply-To header (Reported by Eugene Pimenov)
data/README.rdoc CHANGED
@@ -257,8 +257,13 @@ Sending via sendmail can be done like so:
257
257
 
258
258
  mail.deliver
259
259
 
260
- mail.deliver!
260
+ {Learn more about SMTP Delivery}[link:classes/Mail/SMTP.html]
261
261
 
262
+ {Learn more about File Delivery}[link:classes/Mail/FileDelivery.html]
263
+
264
+ {Learn more about Sendmail Delivery}[link:classes/Mail/Sendmail.html]
265
+
266
+ {Learn more about Test Email Delivery}[link:classes/Mail/TestMailer.html]
262
267
 
263
268
  === Getting emails from a pop server:
264
269
 
@@ -305,6 +310,10 @@ Or even all emails:
305
310
 
306
311
  emails.length #=> LOTS!
307
312
 
313
+ {Learn more about POP3}[link:classes/Mail/POP3.html]
314
+
315
+ {Learn more about IMAP}[link:classes/Mail/IMAP.html]
316
+
308
317
  === Reading an Email
309
318
 
310
319
  require 'mail'
data/Rakefile CHANGED
@@ -27,10 +27,18 @@ end
27
27
 
28
28
  Rake::RDocTask.new(:rdoc) do |rdoc|
29
29
  rdoc.rdoc_dir = 'rdoc'
30
- rdoc.title = 'Mail'
31
- rdoc.options << '--line-numbers' << '--inline-source'
30
+ rdoc.title = 'Mail - A Ruby Mail Library'
31
+
32
+ rdoc.options << '-c' << 'utf-8'
33
+ rdoc.options << '--line-numbers'
34
+ rdoc.options << '--inline-source'
35
+ rdoc.options << '-m' << 'README.rdoc'
36
+
32
37
  rdoc.rdoc_files.include('README.rdoc')
33
38
  rdoc.rdoc_files.include('lib/**/*.rb')
39
+ rdoc.rdoc_files.include('lib/network/**/*.rb')
40
+ rdoc.rdoc_files.exclude('lib/parsers/*')
41
+
34
42
  end
35
43
 
36
44
  # load custom rake tasks
data/lib/VERSION CHANGED
@@ -1,4 +1,4 @@
1
1
  patch:6
2
2
  major:2
3
- build:
3
+ build:1
4
4
  minor:2
data/lib/mail/mail.rb CHANGED
@@ -15,11 +15,11 @@ module Mail
15
15
  # string << 'Subject: This is an email\r\n'
16
16
  # string << '\r\n'
17
17
  # string << 'This is the body'
18
- # self.new(string)
18
+ # Mail.new(string)
19
19
  #
20
20
  # Or creating via a block:
21
21
  #
22
- # message = self.new do
22
+ # message = Mail.new do
23
23
  # to 'mikel@test.lindsaar.net'
24
24
  # from 'bob@test.lindsaar.net'
25
25
  # subject 'This is an email'
@@ -28,7 +28,7 @@ module Mail
28
28
  #
29
29
  # Or creating via a hash (or hash like object):
30
30
  #
31
- # message = self.new({:to => 'mikel@test.lindsaar.net',
31
+ # message = Mail.new({:to => 'mikel@test.lindsaar.net',
32
32
  # 'from' => 'bob@test.lindsaar.net',
33
33
  # :subject 'This is an email',
34
34
  # :body 'This is the body' })
@@ -41,7 +41,7 @@ module Mail
41
41
  # a Mail::Message object directly and then passing in values via string,
42
42
  # symbol or direct method calls. See Mail::Message for more information.
43
43
  #
44
- # mail = self.new
44
+ # mail = Mail.new
45
45
  # mail.to = 'mikel@test.lindsaar.net'
46
46
  # mail[:from] = 'bob@test.lindsaar.net'
47
47
  # mail['subject'] = 'This is an email'
@@ -57,7 +57,7 @@ module Mail
57
57
  # So sending a new email, if you have an SMTP server running on localhost is
58
58
  # as easy as:
59
59
  #
60
- # self.deliver do
60
+ # Mail.deliver do
61
61
  # to 'mikel@test.lindsaar.net'
62
62
  # from 'bob@test.lindsaar.net'
63
63
  # subject 'hi there!'
@@ -67,7 +67,7 @@ module Mail
67
67
  # If you do not specify anything, you will get the following equivalent code set in
68
68
  # every new mail object:
69
69
  #
70
- # self.defaults do
70
+ # Mail.defaults do
71
71
  # delivery_method :smtp, { :address => "localhost",
72
72
  # :port => 25,
73
73
  # :domain => 'localhost.localdomain',
@@ -83,10 +83,10 @@ module Mail
83
83
  # :enable_ssl => true }
84
84
  # end
85
85
  #
86
- # self.delivery_method.new #=> Mail::SMTP instance
87
- # self.retriever_method.new #=> Mail::POP3 instance
86
+ # Mail.delivery_method.new #=> Mail::SMTP instance
87
+ # Mail.retriever_method.new #=> Mail::POP3 instance
88
88
  #
89
- # Each mail object inherits the default set in self.delivery_method, however, on
89
+ # Each mail object inherits the default set in Mail.delivery_method, however, on
90
90
  # a per email basis, you can override the method:
91
91
  #
92
92
  # mail.delivery_method :sendmail
@@ -122,7 +122,7 @@ module Mail
122
122
  #
123
123
  # If you do not specify a delivery type, SMTP will be used.
124
124
  #
125
- # self.deliver do
125
+ # Mail.deliver do
126
126
  # to 'mikel@test.lindsaar.net'
127
127
  # from 'ada@test.lindsaar.net'
128
128
  # subject 'This is a test email'
@@ -131,7 +131,7 @@ module Mail
131
131
  #
132
132
  # You can also do:
133
133
  #
134
- # mail = self.read('email.eml')
134
+ # mail = Mail.read('email.eml')
135
135
  # mail.deliver!
136
136
  #
137
137
  # And your email object will be created and sent.
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 101
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
9
  - 6
10
- version: 2.2.6
10
+ - 1
11
+ version: 2.2.6.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Mikel Lindsaar
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-09-11 00:00:00 +10:00
19
+ date: 2010-09-13 00:00:00 +10:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency