mailhopper 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +4 -4
- data/Rakefile +1 -0
- data/lib/generators/mailhopper/templates/README +3 -3
- data/lib/mailhopper/version.rb +1 -1
- data/test/dummy/log/test.log +24 -0
- data/test/unit/email_test.rb +0 -6
- metadata +14 -14
data/README.rdoc
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
= Mailhopper
|
2
2
|
|
3
|
-
Mailhopper provides
|
3
|
+
Mailhopper provides a simple ActiveRecord-based queue for asynchronous delivery of email in Rails apps.
|
4
4
|
|
5
5
|
Why use Mailhopper to queue your email?
|
6
6
|
* Mailhopper captures the full content and headers of emails at their time of creation. It can handle multiple MIME types and attachments.
|
7
7
|
* If email can't be delivered from your queue (e.g. your smtp server is down), you can retry delivery until successful.
|
8
8
|
* Emails can be accessed at any time, even after they've been sent.
|
9
9
|
|
10
|
-
Mailhopper is intended to be used along with a delivery agent such as DelayedMailhopper, which uses DelayedJob to deliver email from the Mailhopper queue. Without
|
10
|
+
Mailhopper is intended to be used along with a delivery agent such as DelayedMailhopper, which uses DelayedJob to deliver email from the Mailhopper queue. Without a delivery agent, emails will accumulate in the Mailhopper queue but won't be delivered.
|
11
11
|
|
12
12
|
== Requirements
|
13
13
|
|
@@ -31,11 +31,11 @@ Migrate your database:
|
|
31
31
|
|
32
32
|
rake db:migrate
|
33
33
|
|
34
|
-
|
34
|
+
Don't forget to also install a delivery agent, such as DelayedMailhopper, so that emails will be delivered from your queue !!!
|
35
35
|
|
36
36
|
== Configuration
|
37
37
|
|
38
|
-
If you want all of your application's email to be queued
|
38
|
+
If you want all of your application's email to be queued with Mailhopper, configure mailers either in application.rb or your application's environment-specific configuration files:
|
39
39
|
|
40
40
|
MyApp::Application.configure do
|
41
41
|
config.action_mailer.delivery_method = :mailhopper
|
data/Rakefile
CHANGED
@@ -7,19 +7,19 @@ To configure your application to use Mailhopper:
|
|
7
7
|
|
8
8
|
1) Migrate your database with "rake db:migrate".
|
9
9
|
|
10
|
-
2)
|
10
|
+
2) If you want all of your application's email to be queued with Mailhopper, configure mailers either in application.rb or your application's environment-specific configuration files:
|
11
11
|
|
12
12
|
MyApp::Application.configure do
|
13
13
|
config.action_mailer.delivery_method = :mailhopper
|
14
14
|
end
|
15
15
|
|
16
|
-
Alternatively, or additionally,
|
16
|
+
Alternatively, or additionally, configure individual mailers to use Mailhopper:
|
17
17
|
|
18
18
|
class MyMailer < ActionMailer::Base
|
19
19
|
ActionMailer::Base.delivery_method = :mailhopper
|
20
20
|
end
|
21
21
|
|
22
|
-
3) Install a delivery agent, such as DelayedMailhopper,
|
22
|
+
3) Install a delivery agent, such as DelayedMailhopper, to deliver emails from your queue.
|
23
23
|
|
24
24
|
4) Configure a delivery method in "config/initializers/mailhopper" for your delivery agent to use (the default is smtp).
|
25
25
|
|
data/lib/mailhopper/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -396,3 +396,27 @@ Content-Transfer-Encoding: 7bit
|
|
396
396
|
Papaya
|
397
397
|
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "emails"
|
398
398
|
[1m[36mMailhopper::Email Load (0.1ms)[0m [1mSELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1[0m
|
399
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
400
|
+
Migrating to CreateEmails (20110801151741)
|
401
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "emails"
|
402
|
+
Rendered sample_mailer/hello.text.erb (1.2ms)
|
403
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
404
|
+
[1m[35mSQL (12.5ms)[0m INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Thu, 04 Aug 2011 23:15:45 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4e3b60616333a_9402800eb1b01987e@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Fri, 05 Aug 2011 03:15:45 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Fri, 05 Aug 2011 03:15:45 UTC +00:00]]
|
405
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
406
|
+
|
407
|
+
Sent mail to to@example.com (52ms)
|
408
|
+
Date: Thu, 04 Aug 2011 23:15:45 -0400
|
409
|
+
From: from@example.com
|
410
|
+
Reply-To: reply_to@example.com
|
411
|
+
To: to@example.com
|
412
|
+
Cc: cc@example.com
|
413
|
+
Message-ID: <4e3b60616333a_9402800eb1b01987e@dgmpro.local.mail>
|
414
|
+
Subject: Hiya!
|
415
|
+
Mime-Version: 1.0
|
416
|
+
Content-Type: text/plain;
|
417
|
+
charset=UTF-8
|
418
|
+
Content-Transfer-Encoding: 7bit
|
419
|
+
|
420
|
+
Papaya
|
421
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "emails"
|
422
|
+
[1m[36mMailhopper::Email Load (0.1ms)[0m [1mSELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1[0m
|
data/test/unit/email_test.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailhopper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dan Gebhardt
|
@@ -19,9 +19,10 @@ date: 2011-08-04 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
type: :runtime
|
22
23
|
name: rails
|
23
24
|
prerelease: false
|
24
|
-
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
26
|
none: false
|
26
27
|
requirements:
|
27
28
|
- - ~>
|
@@ -34,12 +35,12 @@ dependencies:
|
|
34
35
|
- rc
|
35
36
|
- 5
|
36
37
|
version: 3.1.0.rc5
|
37
|
-
|
38
|
-
version_requirements: *id001
|
38
|
+
requirement: *id001
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
|
+
type: :development
|
40
41
|
name: sqlite3
|
41
42
|
prerelease: false
|
42
|
-
|
43
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
43
44
|
none: false
|
44
45
|
requirements:
|
45
46
|
- - ">="
|
@@ -48,12 +49,12 @@ dependencies:
|
|
48
49
|
segments:
|
49
50
|
- 0
|
50
51
|
version: "0"
|
51
|
-
|
52
|
-
version_requirements: *id002
|
52
|
+
requirement: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
+
type: :development
|
54
55
|
name: shoulda
|
55
56
|
prerelease: false
|
56
|
-
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
57
58
|
none: false
|
58
59
|
requirements:
|
59
60
|
- - ">="
|
@@ -62,9 +63,8 @@ dependencies:
|
|
62
63
|
segments:
|
63
64
|
- 0
|
64
65
|
version: "0"
|
65
|
-
|
66
|
-
|
67
|
-
description: Mailhopper stores your application's emails in a queue for delayed delivery.
|
66
|
+
requirement: *id003
|
67
|
+
description: Mailhopper stores your application's emails in an ActiveRecord queue for asynchronous delivery. Use Mailhopper in combination with a delivery agent such as DelayedMailhopper.
|
68
68
|
email:
|
69
69
|
- support@cerebris.com
|
70
70
|
executables: []
|
@@ -163,7 +163,7 @@ rubyforge_project:
|
|
163
163
|
rubygems_version: 1.4.2
|
164
164
|
signing_key:
|
165
165
|
specification_version: 3
|
166
|
-
summary:
|
166
|
+
summary: A simple ActiveRecord-based solution to queue emails in Rails apps.
|
167
167
|
test_files:
|
168
168
|
- test/dummy/app/assets/javascripts/application.js
|
169
169
|
- test/dummy/app/assets/stylesheets/application.css
|