msg 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +9 -0
  3. data/Rakefile +35 -0
  4. data/app/assets/images/msg/message.png +0 -0
  5. data/app/assets/images/msg/ping.png +0 -0
  6. data/app/assets/images/msg/sending.png +0 -0
  7. data/app/assets/javascripts/lib/jquery.peity.js +261 -0
  8. data/app/assets/javascripts/msg.js.coffee +6 -0
  9. data/app/assets/stylesheets/msg.css.sass +218 -0
  10. data/app/controllers/msg/bounces_controller.rb +67 -0
  11. data/app/controllers/msg/engine_controller.rb +23 -0
  12. data/app/controllers/msg/envelopes_controller.rb +22 -0
  13. data/app/controllers/msg/messages_controller.rb +85 -0
  14. data/app/controllers/msg/sendings_controller.rb +58 -0
  15. data/app/helpers/msg/msg_helper.rb +40 -0
  16. data/app/mailers/msg/devise_mailer.rb +20 -0
  17. data/app/mailers/msg/msg_mailer.rb +23 -0
  18. data/app/models/msg/bounce.rb +19 -0
  19. data/app/models/msg/envelope.rb +56 -0
  20. data/app/models/msg/message.rb +26 -0
  21. data/app/models/msg/sending.rb +54 -0
  22. data/app/views/layouts/msg/default.html.haml +30 -0
  23. data/app/views/layouts/msg/email.html.haml +10 -0
  24. data/app/views/msg/bounces/_listing.html.haml +5 -0
  25. data/app/views/msg/bounces/_report.html.haml +10 -0
  26. data/app/views/msg/bounces/index.html.haml +5 -0
  27. data/app/views/msg/devise_mailer/confirmation_instructions.en.html.haml +1 -0
  28. data/app/views/msg/devise_mailer/reset_password_instructions.en.html.haml +1 -0
  29. data/app/views/msg/envelopes/_listing.html.haml +5 -0
  30. data/app/views/msg/messages/_action_menu.html.haml +10 -0
  31. data/app/views/msg/messages/_form.html.haml +38 -0
  32. data/app/views/msg/messages/_instructions.html.haml +28 -0
  33. data/app/views/msg/messages/_message.html.haml +11 -0
  34. data/app/views/msg/messages/_saved_messages.html.haml +2 -0
  35. data/app/views/msg/messages/_transactional_messages.html.haml +3 -0
  36. data/app/views/msg/messages/edit.html.haml +7 -0
  37. data/app/views/msg/messages/index.html.haml +23 -0
  38. data/app/views/msg/messages/new.html.haml +7 -0
  39. data/app/views/msg/messages/preview.html.haml +4 -0
  40. data/app/views/msg/messages/show.html.haml +25 -0
  41. data/app/views/msg/msg_mailer/message_in_envelope.html.haml +2 -0
  42. data/app/views/msg/sendings/_form.html.haml +45 -0
  43. data/app/views/msg/sendings/_listing.html.haml +17 -0
  44. data/app/views/msg/sendings/_report.html.haml +8 -0
  45. data/app/views/msg/sendings/_sending.html.haml +22 -0
  46. data/app/views/msg/sendings/_sendings.html.haml +2 -0
  47. data/app/views/msg/sendings/index.html.haml +8 -0
  48. data/app/views/msg/sendings/new.html.haml +9 -0
  49. data/app/views/msg/sendings/review.html.haml +2 -0
  50. data/app/views/msg/sendings/show.html.haml +50 -0
  51. data/app/views/msg/shared/_toolbar.html.haml +17 -0
  52. data/config/cucumber.yml +8 -0
  53. data/config/locales/en.yml +76 -0
  54. data/config/routes.rb +26 -0
  55. data/db/migrate/20130320141926_msg_data.rb +54 -0
  56. data/db/migrate/20130327134754_sending_circumstances.rb +6 -0
  57. data/lib/msg.rb +88 -0
  58. data/lib/msg/engine.rb +23 -0
  59. data/lib/msg/receivers.rb +64 -0
  60. data/lib/msg/version.rb +3 -0
  61. data/lib/tasks/cucumber.rake +65 -0
  62. data/lib/tasks/msg_tasks.rake +4 -0
  63. data/spec/controllers/msg/bounces_controller_spec.rb +48 -0
  64. data/spec/controllers/msg/envelopes_controller_spec.rb +22 -0
  65. data/spec/controllers/msg/messages_controller_spec.rb +9 -0
  66. data/spec/controllers/msg/sendings_controller_spec.rb +47 -0
  67. data/spec/dummy/README.rdoc +261 -0
  68. data/spec/dummy/Rakefile +7 -0
  69. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  70. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  71. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  72. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  73. data/spec/dummy/app/models/user.rb +14 -0
  74. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  75. data/spec/dummy/config.ru +4 -0
  76. data/spec/dummy/config/application.rb +59 -0
  77. data/spec/dummy/config/boot.rb +10 -0
  78. data/spec/dummy/config/database.yml +25 -0
  79. data/spec/dummy/config/environment.rb +5 -0
  80. data/spec/dummy/config/environments/development.rb +37 -0
  81. data/spec/dummy/config/environments/production.rb +67 -0
  82. data/spec/dummy/config/environments/test.rb +41 -0
  83. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  84. data/spec/dummy/config/initializers/devise.rb +285 -0
  85. data/spec/dummy/config/initializers/inflections.rb +15 -0
  86. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  87. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  88. data/spec/dummy/config/initializers/session_store.rb +8 -0
  89. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  90. data/spec/dummy/config/locales/en.yml +5 -0
  91. data/spec/dummy/config/routes.rb +9 -0
  92. data/spec/dummy/db/development.sqlite3 +0 -0
  93. data/spec/dummy/db/migrate/2013032210540_users.rb +49 -0
  94. data/spec/dummy/db/migrate/20130326093048_msg_data.msg.rb +55 -0
  95. data/spec/dummy/db/schema.rb +96 -0
  96. data/spec/dummy/db/test.sqlite3 +0 -0
  97. data/spec/dummy/log/development.log +143 -0
  98. data/spec/dummy/log/test.log +1022 -0
  99. data/spec/dummy/public/404.html +26 -0
  100. data/spec/dummy/public/422.html +26 -0
  101. data/spec/dummy/public/500.html +25 -0
  102. data/spec/dummy/public/favicon.ico +0 -0
  103. data/spec/dummy/script/rails +6 -0
  104. data/spec/factories/msg/bounces.rb +9 -0
  105. data/spec/factories/msg/envelopes.rb +10 -0
  106. data/spec/factories/msg/messages.rb +10 -0
  107. data/spec/factories/msg/sendings.rb +7 -0
  108. data/spec/factories/users.rb +11 -0
  109. data/spec/helpers/msg/msg_helper_spec.rb +17 -0
  110. data/spec/lib/msg_spec.rb +15 -0
  111. data/spec/mailers/msg/devise_mailer_spec.rb +21 -0
  112. data/spec/mailers/msg/msg_mailer_spec.rb +36 -0
  113. data/spec/models/msg/bounce_spec.rb +19 -0
  114. data/spec/models/msg/envelope_spec.rb +62 -0
  115. data/spec/models/msg/message_spec.rb +19 -0
  116. data/spec/models/msg/sending_spec.rb +10 -0
  117. data/spec/routing/sendings_routing_spec.rb +31 -0
  118. data/spec/spec_helper.rb +70 -0
  119. metadata +446 -0
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '4ca8c99c0cad274159f28464981ae7fe60dd73edd8873af814441793a50ca00f28ae42b9d4b68291745a20dc3e87bc807dfe8eb5f9b86284769643ecff774fbb'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,9 @@
1
+ Dummy::Application.routes.draw do
2
+
3
+ mount Msg::Engine => "/msg", :as => :msg
4
+
5
+ devise_for :users
6
+ resources :users
7
+ root :to => "users#index"
8
+
9
+ end
@@ -0,0 +1,49 @@
1
+ class Users < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :name
5
+ t.boolean :admin, :default => false
6
+ t.datetime :activated_at
7
+ t.datetime :invited_at
8
+ t.datetime :invited_by_id
9
+ t.datetime :reminded_at
10
+
11
+ ## Database authenticatable
12
+ t.string :email, :null => false, :default => ""
13
+ t.string :encrypted_password, :null => false, :default => ""
14
+
15
+ ## Recoverable
16
+ t.string :reset_password_token
17
+ t.datetime :reset_password_sent_at
18
+
19
+ ## Rememberable
20
+ t.datetime :remember_created_at
21
+
22
+ ## Trackable
23
+ t.integer :sign_in_count, :default => 0
24
+ t.datetime :current_sign_in_at
25
+ t.datetime :last_sign_in_at
26
+ t.string :current_sign_in_ip
27
+ t.string :last_sign_in_ip
28
+
29
+ ## Confirmable
30
+ # t.string :confirmation_token
31
+ # t.datetime :confirmed_at
32
+ # t.datetime :confirmation_sent_at
33
+ # t.string :unconfirmed_email # Only if using reconfirmable
34
+
35
+ ## Lockable
36
+ # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
37
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
38
+ # t.datetime :locked_at
39
+
40
+ ## Token authenticatable
41
+ t.string :authentication_token
42
+
43
+ ## Encryptable
44
+ t.string :password_salt
45
+
46
+ t.timestamps
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,55 @@
1
+ # This migration comes from msg (originally 20130320141926)
2
+ class MsgData < ActiveRecord::Migration
3
+ def change
4
+ create_table :msg_messages do |t|
5
+ t.string :subject
6
+ t.string :from_address
7
+ t.string :from_name
8
+ t.text :body
9
+ t.string :function
10
+ t.text :description
11
+ t.boolean :transactional, :default => false
12
+ t.boolean :saved, :default => false
13
+ t.integer :created_by_id
14
+ t.timestamps
15
+ end
16
+
17
+ create_table :msg_sendings do |t|
18
+ t.integer :message_id
19
+ t.integer :created_by_id
20
+ t.datetime :sent_at
21
+ t.timestamps
22
+ end
23
+ add_index :msg_sendings, :message_id
24
+ add_index :msg_sendings, :created_by_id
25
+
26
+ create_table :msg_envelopes do |t|
27
+ t.integer :sending_id
28
+ t.integer :receiver_id
29
+ t.integer :email_id
30
+ t.string :receiver_type
31
+ t.string :to_address
32
+ t.string :from_address
33
+ t.string :subject
34
+ t.text :contents
35
+ t.datetime :sent_at
36
+ t.datetime :opened_at
37
+ t.timestamps
38
+ end
39
+ add_index :msg_envelopes, :sending_id
40
+ add_index :msg_envelopes, :email_id
41
+ add_index :msg_envelopes, :receiver_id
42
+ add_index :msg_envelopes, [:receiver_id, :receiver_type]
43
+
44
+ create_table :msg_bounces do |t|
45
+ t.integer :envelope_id
46
+ t.string :bounce_type
47
+ t.string :bounce_subtype
48
+ t.string :reporter
49
+ t.text :raw_message
50
+ t.timestamps
51
+ end
52
+ add_index :msg_bounces, :envelope_id
53
+
54
+ end
55
+ end
@@ -0,0 +1,96 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130326093048) do
15
+
16
+ create_table "msg_bounces", :force => true do |t|
17
+ t.integer "envelope_id"
18
+ t.string "bounce_type"
19
+ t.string "bounce_subtype"
20
+ t.string "reporter"
21
+ t.text "raw_message"
22
+ t.datetime "created_at", :null => false
23
+ t.datetime "updated_at", :null => false
24
+ end
25
+
26
+ add_index "msg_bounces", ["envelope_id"], :name => "index_msg_bounces_on_envelope_id"
27
+
28
+ create_table "msg_envelopes", :force => true do |t|
29
+ t.integer "sending_id"
30
+ t.integer "receiver_id"
31
+ t.integer "email_id"
32
+ t.string "receiver_type"
33
+ t.string "to_address"
34
+ t.string "from_address"
35
+ t.string "subject"
36
+ t.text "contents"
37
+ t.datetime "sent_at"
38
+ t.datetime "opened_at"
39
+ t.datetime "created_at", :null => false
40
+ t.datetime "updated_at", :null => false
41
+ end
42
+
43
+ add_index "msg_envelopes", ["email_id"], :name => "index_msg_envelopes_on_email_id"
44
+ add_index "msg_envelopes", ["receiver_id", "receiver_type"], :name => "index_msg_envelopes_on_receiver_id_and_receiver_type"
45
+ add_index "msg_envelopes", ["receiver_id"], :name => "index_msg_envelopes_on_receiver_id"
46
+ add_index "msg_envelopes", ["sending_id"], :name => "index_msg_envelopes_on_sending_id"
47
+
48
+ create_table "msg_messages", :force => true do |t|
49
+ t.string "subject"
50
+ t.string "from_address"
51
+ t.string "from_name"
52
+ t.text "body"
53
+ t.string "function"
54
+ t.text "description"
55
+ t.boolean "transactional", :default => false
56
+ t.boolean "saved", :default => false
57
+ t.integer "created_by_id"
58
+ t.datetime "created_at", :null => false
59
+ t.datetime "updated_at", :null => false
60
+ end
61
+
62
+ create_table "msg_sendings", :force => true do |t|
63
+ t.integer "message_id"
64
+ t.integer "created_by_id"
65
+ t.datetime "sent_at"
66
+ t.datetime "created_at", :null => false
67
+ t.datetime "updated_at", :null => false
68
+ end
69
+
70
+ add_index "msg_sendings", ["created_by_id"], :name => "index_msg_sendings_on_created_by_id"
71
+ add_index "msg_sendings", ["message_id"], :name => "index_msg_sendings_on_message_id"
72
+
73
+ create_table "users", :force => true do |t|
74
+ t.string "name"
75
+ t.boolean "admin", :default => false
76
+ t.datetime "activated_at"
77
+ t.datetime "invited_at"
78
+ t.datetime "invited_by_id"
79
+ t.datetime "reminded_at"
80
+ t.string "email", :default => "", :null => false
81
+ t.string "encrypted_password", :default => "", :null => false
82
+ t.string "reset_password_token"
83
+ t.datetime "reset_password_sent_at"
84
+ t.datetime "remember_created_at"
85
+ t.integer "sign_in_count", :default => 0
86
+ t.datetime "current_sign_in_at"
87
+ t.datetime "last_sign_in_at"
88
+ t.string "current_sign_in_ip"
89
+ t.string "last_sign_in_ip"
90
+ t.string "authentication_token"
91
+ t.string "password_salt"
92
+ t.datetime "created_at", :null => false
93
+ t.datetime "updated_at", :null => false
94
+ end
95
+
96
+ end
@@ -0,0 +1,143 @@
1
+ Connecting to database specified by database.yml
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6
+ Connecting to database specified by database.yml
7
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
8
+ Connecting to database specified by database.yml
9
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
10
+ Migrating to Users (2013032210540)
11
+  (0.1ms) select sqlite_version(*)
12
+  (0.0ms) begin transaction
13
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
14
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('2013032210540')
15
+  (1.0ms) commit transaction
16
+ Migrating to MsgData (20130325160526)
17
+  (0.0ms) begin transaction
18
+  (0.5ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
19
+  (0.1ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
20
+  (0.1ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
21
+  (0.1ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
22
+  (0.1ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
23
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
24
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
25
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
26
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
27
+  (0.1ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
28
+  (0.1ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
29
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130325160526')
30
+  (0.9ms) commit transaction
31
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
32
+ Connecting to database specified by database.yml
33
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
34
+  (0.2ms) select sqlite_version(*)
35
+  (2.1ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
36
+  (1.5ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
37
+  (1.2ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
38
+  (1.3ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
39
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
40
+  (0.8ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
41
+  (1.1ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
42
+  (1.3ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
43
+  (0.8ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
44
+  (0.7ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
45
+  (0.6ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
46
+  (1.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
47
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
48
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
49
+  (0.1ms) SELECT version FROM "schema_migrations"
50
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325160526')
51
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2013032210540')
52
+ Connecting to database specified by database.yml
53
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54
+  (0.7ms) select sqlite_version(*)
55
+  (1.7ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
56
+  (1.2ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
57
+  (1.2ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
58
+  (1.4ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
59
+  (0.8ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
60
+  (1.1ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
61
+  (0.8ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
62
+  (1.1ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
63
+  (0.8ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
64
+  (0.7ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
65
+  (0.7ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
66
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
67
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
68
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
69
+  (0.1ms) SELECT version FROM "schema_migrations"
70
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325160526')
71
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2013032210540')
72
+ Connecting to database specified by database.yml
73
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
74
+  (0.2ms) select sqlite_version(*)
75
+  (1.6ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
76
+  (1.1ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
77
+  (0.8ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
78
+  (1.1ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
79
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
80
+  (1.0ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
81
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
82
+  (1.0ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
83
+  (1.0ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
84
+  (0.7ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
85
+  (0.8ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
86
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
87
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
88
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
89
+  (0.1ms) SELECT version FROM "schema_migrations"
90
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325160526')
91
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2013032210540')
92
+ Connecting to database specified by database.yml
93
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
94
+  (0.2ms) select sqlite_version(*)
95
+  (1.4ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
96
+  (0.9ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
97
+  (0.7ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
98
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
99
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
100
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
101
+  (0.9ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
102
+  (1.0ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
103
+  (0.8ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
104
+  (0.7ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
105
+  (1.0ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
106
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
107
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
108
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
109
+  (0.1ms) SELECT version FROM "schema_migrations"
110
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325160526')
111
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2013032210540')
112
+ Connecting to database specified by database.yml
113
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
114
+  (0.3ms) select sqlite_version(*)
115
+  (1.6ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
116
+  (0.9ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
117
+  (0.9ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
118
+  (1.1ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
119
+  (0.9ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
120
+  (0.8ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
121
+  (0.8ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
122
+  (0.9ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
123
+  (1.2ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
124
+  (1.1ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
125
+  (0.7ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
126
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
127
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
128
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
129
+  (0.1ms) SELECT version FROM "schema_migrations"
130
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325160526')
131
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2013032210540')
132
+ Connecting to database specified by database.yml
133
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
134
+ Connecting to database specified by database.yml
135
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
136
+ Connecting to database specified by database.yml
137
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
138
+ Connecting to database specified by database.yml
139
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
140
+ Connecting to database specified by database.yml
141
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
142
+ Connecting to database specified by database.yml
143
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
@@ -0,0 +1,1022 @@
1
+ Connecting to database specified by database.yml
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6
+ Migrating to Users (2013032210540)
7
+  (0.0ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+ Connecting to database specified by database.yml
10
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
11
+ Migrating to Users (2013032210540)
12
+  (0.0ms) select sqlite_version(*)
13
+  (0.0ms) begin transaction
14
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
15
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('2013032210540')
16
+  (1.5ms) commit transaction
17
+ Migrating to MsgData (20130325160526)
18
+  (0.0ms) begin transaction
19
+  (0.4ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
20
+  (0.1ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
21
+  (0.1ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
22
+  (0.1ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
23
+  (0.1ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
24
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
25
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
26
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
27
+  (0.1ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
28
+  (0.1ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
29
+  (0.1ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
30
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130325160526')
31
+  (1.0ms) commit transaction
32
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
33
+ Connecting to database specified by database.yml
34
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
35
+  (0.2ms) select sqlite_version(*)
36
+  (1.5ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
37
+  (1.1ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
38
+  (1.1ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
39
+  (1.0ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
40
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
41
+  (1.2ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
42
+  (1.1ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
43
+  (1.4ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
44
+  (1.3ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
45
+  (1.0ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
46
+  (1.0ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
47
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
48
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
49
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50
+  (0.1ms) SELECT version FROM "schema_migrations"
51
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325160526')
52
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2013032210540')
53
+ Connecting to database specified by database.yml
54
+ Connecting to database specified by database.yml
55
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
56
+  (0.2ms) select sqlite_version(*)
57
+  (1.4ms) CREATE TABLE "msg_bounces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "envelope_id" integer, "bounce_type" varchar(255), "bounce_subtype" varchar(255), "reporter" varchar(255), "raw_message" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
58
+  (0.8ms) CREATE INDEX "index_msg_bounces_on_envelope_id" ON "msg_bounces" ("envelope_id")
59
+  (1.1ms) CREATE TABLE "msg_envelopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sending_id" integer, "receiver_id" integer, "email_id" integer, "receiver_type" varchar(255), "to_address" varchar(255), "from_address" varchar(255), "subject" varchar(255), "contents" text, "sent_at" datetime, "opened_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
60
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_email_id" ON "msg_envelopes" ("email_id")
61
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_receiver_id_and_receiver_type" ON "msg_envelopes" ("receiver_id", "receiver_type")
62
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_receiver_id" ON "msg_envelopes" ("receiver_id")
63
+  (0.7ms) CREATE INDEX "index_msg_envelopes_on_sending_id" ON "msg_envelopes" ("sending_id")
64
+  (1.2ms) CREATE TABLE "msg_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "from_address" varchar(255), "from_name" varchar(255), "body" text, "function" varchar(255), "description" text, "transactional" boolean DEFAULT 'f', "saved" boolean DEFAULT 'f', "created_by_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
65
+  (0.7ms) CREATE TABLE "msg_sendings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer, "created_by_id" integer, "sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
66
+  (0.7ms) CREATE INDEX "index_msg_sendings_on_created_by_id" ON "msg_sendings" ("created_by_id")
67
+  (0.8ms) CREATE INDEX "index_msg_sendings_on_message_id" ON "msg_sendings" ("message_id")
68
+  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
69
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
70
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
71
+  (0.1ms) SELECT version FROM "schema_migrations"
72
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130325160526')
73
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2013032210540')
74
+ Connecting to database specified by database.yml
75
+ Connecting to database specified by database.yml
76
+ Connecting to database specified by database.yml
77
+ Connecting to database specified by database.yml
78
+ Connecting to database specified by database.yml
79
+ Connecting to database specified by database.yml
80
+  (0.9ms) DELETE FROM "msg_bounces";
81
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'msg_bounces';
82
+  (1.1ms) DELETE FROM "msg_envelopes";
83
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_envelopes';
84
+  (0.5ms) DELETE FROM "msg_messages";
85
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_messages';
86
+  (0.6ms) DELETE FROM "msg_sendings";
87
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_sendings';
88
+  (0.7ms) DELETE FROM "users";
89
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';
90
+ Connecting to database specified by database.yml
91
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
92
+ Connecting to database specified by database.yml
93
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
94
+ Connecting to database specified by database.yml
95
+  (2.1ms) DELETE FROM "msg_bounces";
96
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_bounces';
97
+  (3.9ms) DELETE FROM "msg_envelopes";
98
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_envelopes';
99
+  (0.8ms) DELETE FROM "msg_messages";
100
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_messages';
101
+  (0.8ms) DELETE FROM "msg_sendings";
102
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_sendings';
103
+  (1.8ms) DELETE FROM "users";
104
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
105
+ Connecting to database specified by database.yml
106
+ >>> Msg.add_receiving_class User
107
+  (1.0ms) DELETE FROM "msg_bounces";
108
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_bounces';
109
+  (0.9ms) DELETE FROM "msg_envelopes";
110
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_envelopes';
111
+  (0.6ms) DELETE FROM "msg_messages";
112
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_messages';
113
+  (0.7ms) DELETE FROM "msg_sendings";
114
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'msg_sendings';
115
+  (0.9ms) DELETE FROM "users";
116
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';
117
+  (0.0ms) begin transaction
118
+  (0.0ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+  (0.0ms) rollback transaction
121
+  (0.0ms) begin transaction
122
+  (0.0ms) rollback transaction
123
+  (0.0ms) begin transaction
124
+  (0.0ms) rollback transaction
125
+  (0.1ms) begin transaction
126
+  (0.0ms) rollback transaction
127
+  (0.0ms) begin transaction
128
+  (0.1ms) rollback transaction
129
+  (0.0ms) begin transaction
130
+  (0.0ms) rollback transaction
131
+  (0.0ms) begin transaction
132
+  (0.0ms) rollback transaction
133
+  (0.0ms) begin transaction
134
+  (0.0ms) rollback transaction
135
+  (0.0ms) begin transaction
136
+  (0.0ms) SAVEPOINT active_record_1
137
+ SQL (0.4ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139
+  (0.0ms) SAVEPOINT active_record_1
140
+ SQL (4.7ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142
+  (0.0ms) SAVEPOINT active_record_1
143
+ SQL (0.3ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
145
+  (0.0ms) SAVEPOINT active_record_1
146
+ SQL (0.3ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
147
+
148
+ Sent mail to bob@example.com (39ms)
149
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
150
+ From: bill <bill@example.com>
151
+ To: bob <bob@example.com>
152
+ Message-ID: 1
153
+ Subject: title
154
+ Mime-Version: 1.0
155
+ Content-Type: text/html;
156
+ charset=UTF-8
157
+ Content-Transfer-Encoding: 7bit
158
+
159
+ <!DOCTYPE html>
160
+ <html lang='en'>
161
+ <head>
162
+ <title>
163
+
164
+ </title>
165
+ </head>
166
+ <body>
167
+ <div id='content'>
168
+ lorem ipsum
169
+ <img src='http://localhost/msg/envelopes/1'>
170
+
171
+ </div>
172
+ </body>
173
+ </html>
174
+
175
+ setting envelope.sent_at to
176
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.445153', "updated_at" = '2013-03-28 17:57:11.445153', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.558506' WHERE "msg_envelopes"."id" = 1
177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
178
+  (0.0ms) SAVEPOINT active_record_1
179
+ SQL (0.3ms) INSERT INTO "msg_bounces" ("bounce_subtype", "bounce_type", "created_at", "envelope_id", "raw_message", "reporter", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["bounce_subtype", nil], ["bounce_type", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["envelope_id", 1], ["raw_message", nil], ["reporter", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
181
+  (1.0ms) rollback transaction
182
+  (0.1ms) begin transaction
183
+  (0.0ms) SAVEPOINT active_record_1
184
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
186
+  (0.0ms) SAVEPOINT active_record_1
187
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189
+  (0.0ms) SAVEPOINT active_record_1
190
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
192
+  (0.0ms) SAVEPOINT active_record_1
193
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
194
+
195
+ Sent mail to bob@example.com (5ms)
196
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
197
+ From: bill <bill@example.com>
198
+ To: bob <bob@example.com>
199
+ Message-ID: 1
200
+ Subject: title
201
+ Mime-Version: 1.0
202
+ Content-Type: text/html;
203
+ charset=UTF-8
204
+ Content-Transfer-Encoding: 7bit
205
+
206
+ <!DOCTYPE html>
207
+ <html lang='en'>
208
+ <head>
209
+ <title>
210
+
211
+ </title>
212
+ </head>
213
+ <body>
214
+ <div id='content'>
215
+ lorem ipsum
216
+ <img src='http://localhost/msg/envelopes/1'>
217
+
218
+ </div>
219
+ </body>
220
+ </html>
221
+
222
+ setting envelope.sent_at to
223
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.578567', "updated_at" = '2013-03-28 17:57:11.578567', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.597848' WHERE "msg_envelopes"."id" = 1
224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
225
+  (0.5ms) rollback transaction
226
+  (0.0ms) begin transaction
227
+  (0.0ms) SAVEPOINT active_record_1
228
+ SQL (0.2ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230
+  (0.0ms) SAVEPOINT active_record_1
231
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
233
+  (0.0ms) SAVEPOINT active_record_1
234
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
236
+  (0.0ms) SAVEPOINT active_record_1
237
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
238
+
239
+ Sent mail to bob@example.com (5ms)
240
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
241
+ From: bill <bill@example.com>
242
+ To: bob <bob@example.com>
243
+ Message-ID: 1
244
+ Subject: title
245
+ Mime-Version: 1.0
246
+ Content-Type: text/html;
247
+ charset=UTF-8
248
+ Content-Transfer-Encoding: 7bit
249
+
250
+ <!DOCTYPE html>
251
+ <html lang='en'>
252
+ <head>
253
+ <title>
254
+
255
+ </title>
256
+ </head>
257
+ <body>
258
+ <div id='content'>
259
+ lorem ipsum
260
+ <img src='http://localhost/msg/envelopes/1'>
261
+
262
+ </div>
263
+ </body>
264
+ </html>
265
+
266
+ setting envelope.sent_at to
267
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.608313', "updated_at" = '2013-03-28 17:57:11.608313', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.628166' WHERE "msg_envelopes"."id" = 1
268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
269
+  (0.5ms) rollback transaction
270
+  (0.0ms) begin transaction
271
+  (0.0ms) SAVEPOINT active_record_1
272
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
274
+  (0.0ms) SAVEPOINT active_record_1
275
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
277
+  (0.0ms) SAVEPOINT active_record_1
278
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
280
+  (0.0ms) SAVEPOINT active_record_1
281
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
282
+
283
+ Sent mail to bob@example.com (5ms)
284
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
285
+ From: bill <bill@example.com>
286
+ To: bob <bob@example.com>
287
+ Message-ID: 1
288
+ Subject: title
289
+ Mime-Version: 1.0
290
+ Content-Type: text/html;
291
+ charset=UTF-8
292
+ Content-Transfer-Encoding: 7bit
293
+
294
+ <!DOCTYPE html>
295
+ <html lang='en'>
296
+ <head>
297
+ <title>
298
+
299
+ </title>
300
+ </head>
301
+ <body>
302
+ <div id='content'>
303
+ lorem ipsum
304
+ <img src='http://localhost/msg/envelopes/1'>
305
+
306
+ </div>
307
+ </body>
308
+ </html>
309
+
310
+ setting envelope.sent_at to
311
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.636413', "updated_at" = '2013-03-28 17:57:11.636413', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.656019' WHERE "msg_envelopes"."id" = 1
312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
313
+  (0.6ms) rollback transaction
314
+  (0.0ms) begin transaction
315
+  (0.0ms) SAVEPOINT active_record_1
316
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
318
+  (0.0ms) SAVEPOINT active_record_1
319
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
321
+  (0.0ms) SAVEPOINT active_record_1
322
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324
+  (0.0ms) SAVEPOINT active_record_1
325
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
326
+
327
+ Sent mail to bob@example.com (5ms)
328
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
329
+ From: bill <bill@example.com>
330
+ To: bob <bob@example.com>
331
+ Message-ID: 1
332
+ Subject: title
333
+ Mime-Version: 1.0
334
+ Content-Type: text/html;
335
+ charset=UTF-8
336
+ Content-Transfer-Encoding: 7bit
337
+
338
+ <!DOCTYPE html>
339
+ <html lang='en'>
340
+ <head>
341
+ <title>
342
+
343
+ </title>
344
+ </head>
345
+ <body>
346
+ <div id='content'>
347
+ lorem ipsum
348
+ <img src='http://localhost/msg/envelopes/1'>
349
+
350
+ </div>
351
+ </body>
352
+ </html>
353
+
354
+ setting envelope.sent_at to
355
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.664437', "updated_at" = '2013-03-28 17:57:11.664437', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.684397' WHERE "msg_envelopes"."id" = 1
356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
357
+ SQL (0.1ms) UPDATE "msg_envelopes" SET "opened_at" = '2013-03-28 17:57:11.686195' WHERE "msg_envelopes"."id" = 1
358
+  (0.5ms) rollback transaction
359
+  (0.0ms) begin transaction
360
+  (0.0ms) SAVEPOINT active_record_1
361
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
363
+  (0.0ms) SAVEPOINT active_record_1
364
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
366
+  (0.0ms) SAVEPOINT active_record_1
367
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
369
+  (0.0ms) SAVEPOINT active_record_1
370
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
371
+
372
+ Sent mail to bob@example.com (6ms)
373
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
374
+ From: bill <bill@example.com>
375
+ To: bob <bob@example.com>
376
+ Message-ID: 1
377
+ Subject: title
378
+ Mime-Version: 1.0
379
+ Content-Type: text/html;
380
+ charset=UTF-8
381
+ Content-Transfer-Encoding: 7bit
382
+
383
+ <!DOCTYPE html>
384
+ <html lang='en'>
385
+ <head>
386
+ <title>
387
+
388
+ </title>
389
+ </head>
390
+ <body>
391
+ <div id='content'>
392
+ lorem ipsum
393
+ <img src='http://localhost/msg/envelopes/1'>
394
+
395
+ </div>
396
+ </body>
397
+ </html>
398
+
399
+ setting envelope.sent_at to
400
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.692945', "updated_at" = '2013-03-28 17:57:11.692945', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.738289' WHERE "msg_envelopes"."id" = 1
401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
402
+  (0.8ms) rollback transaction
403
+  (0.0ms) begin transaction
404
+  (0.0ms) SAVEPOINT active_record_1
405
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
407
+  (0.0ms) SAVEPOINT active_record_1
408
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
410
+  (0.0ms) SAVEPOINT active_record_1
411
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
413
+  (0.0ms) SAVEPOINT active_record_1
414
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
415
+
416
+ Sent mail to bob@example.com (5ms)
417
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
418
+ From: bill <bill@example.com>
419
+ To: bob <bob@example.com>
420
+ Message-ID: 1
421
+ Subject: title
422
+ Mime-Version: 1.0
423
+ Content-Type: text/html;
424
+ charset=UTF-8
425
+ Content-Transfer-Encoding: 7bit
426
+
427
+ <!DOCTYPE html>
428
+ <html lang='en'>
429
+ <head>
430
+ <title>
431
+
432
+ </title>
433
+ </head>
434
+ <body>
435
+ <div id='content'>
436
+ lorem ipsum
437
+ <img src='http://localhost/msg/envelopes/1'>
438
+
439
+ </div>
440
+ </body>
441
+ </html>
442
+
443
+ setting envelope.sent_at to
444
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.748066', "updated_at" = '2013-03-28 17:57:11.748066', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.768093' WHERE "msg_envelopes"."id" = 1
445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
446
+  (0.5ms) rollback transaction
447
+  (0.0ms) begin transaction
448
+  (0.0ms) SAVEPOINT active_record_1
449
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
451
+  (0.0ms) SAVEPOINT active_record_1
452
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
454
+  (0.0ms) SAVEPOINT active_record_1
455
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
457
+  (0.0ms) SAVEPOINT active_record_1
458
+ SQL (0.3ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
459
+
460
+ Sent mail to bob@example.com (6ms)
461
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
462
+ From: bill <bill@example.com>
463
+ To: bob <bob@example.com>
464
+ Message-ID: 1
465
+ Subject: title
466
+ Mime-Version: 1.0
467
+ Content-Type: text/html;
468
+ charset=UTF-8
469
+ Content-Transfer-Encoding: 7bit
470
+
471
+ <!DOCTYPE html>
472
+ <html lang='en'>
473
+ <head>
474
+ <title>
475
+
476
+ </title>
477
+ </head>
478
+ <body>
479
+ <div id='content'>
480
+ lorem ipsum
481
+ <img src='http://localhost/msg/envelopes/1'>
482
+
483
+ </div>
484
+ </body>
485
+ </html>
486
+
487
+ setting envelope.sent_at to
488
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.778887', "updated_at" = '2013-03-28 17:57:11.778887', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.800289' WHERE "msg_envelopes"."id" = 1
489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
490
+  (0.5ms) rollback transaction
491
+  (0.0ms) begin transaction
492
+  (0.0ms) SAVEPOINT active_record_1
493
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
495
+  (0.1ms) SAVEPOINT active_record_1
496
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
498
+  (0.0ms) SAVEPOINT active_record_1
499
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
501
+  (0.0ms) SAVEPOINT active_record_1
502
+ SQL (0.3ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
503
+
504
+ Sent mail to bob@example.com (6ms)
505
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
506
+ From: bill <bill@example.com>
507
+ To: bob <bob@example.com>
508
+ Message-ID: 1
509
+ Subject: title
510
+ Mime-Version: 1.0
511
+ Content-Type: text/html;
512
+ charset=UTF-8
513
+ Content-Transfer-Encoding: 7bit
514
+
515
+ <!DOCTYPE html>
516
+ <html lang='en'>
517
+ <head>
518
+ <title>
519
+
520
+ </title>
521
+ </head>
522
+ <body>
523
+ <div id='content'>
524
+ lorem ipsum
525
+ <img src='http://localhost/msg/envelopes/1'>
526
+
527
+ </div>
528
+ </body>
529
+ </html>
530
+
531
+ setting envelope.sent_at to
532
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.809739', "updated_at" = '2013-03-28 17:57:11.809739', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.830625' WHERE "msg_envelopes"."id" = 1
533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
534
+  (0.6ms) rollback transaction
535
+  (0.0ms) begin transaction
536
+  (0.0ms) SAVEPOINT active_record_1
537
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
539
+  (0.1ms) SAVEPOINT active_record_1
540
+ SQL (0.5ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
542
+  (0.0ms) SAVEPOINT active_record_1
543
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
545
+  (0.0ms) SAVEPOINT active_record_1
546
+ SQL (0.3ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
547
+
548
+ Sent mail to bob@example.com (31ms)
549
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
550
+ From: bill <bill@example.com>
551
+ To: bob <bob@example.com>
552
+ Message-ID: 1
553
+ Subject: title
554
+ Mime-Version: 1.0
555
+ Content-Type: text/html;
556
+ charset=UTF-8
557
+ Content-Transfer-Encoding: 7bit
558
+
559
+ <!DOCTYPE html>
560
+ <html lang='en'>
561
+ <head>
562
+ <title>
563
+
564
+ </title>
565
+ </head>
566
+ <body>
567
+ <div id='content'>
568
+ lorem ipsum
569
+ <img src='http://localhost/msg/envelopes/1'>
570
+
571
+ </div>
572
+ </body>
573
+ </html>
574
+
575
+ setting envelope.sent_at to
576
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.841660', "updated_at" = '2013-03-28 17:57:11.841660', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.888907' WHERE "msg_envelopes"."id" = 1
577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
578
+  (1.1ms) rollback transaction
579
+  (0.0ms) begin transaction
580
+  (0.0ms) SAVEPOINT active_record_1
581
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
583
+  (0.0ms) SAVEPOINT active_record_1
584
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
586
+  (0.0ms) SAVEPOINT active_record_1
587
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
589
+  (0.0ms) SAVEPOINT active_record_1
590
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
591
+
592
+ Sent mail to bob@example.com (6ms)
593
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
594
+ From: bill <bill@example.com>
595
+ To: bob <bob@example.com>
596
+ Message-ID: 1
597
+ Subject: title
598
+ Mime-Version: 1.0
599
+ Content-Type: text/html;
600
+ charset=UTF-8
601
+ Content-Transfer-Encoding: 7bit
602
+
603
+ <!DOCTYPE html>
604
+ <html lang='en'>
605
+ <head>
606
+ <title>
607
+
608
+ </title>
609
+ </head>
610
+ <body>
611
+ <div id='content'>
612
+ lorem ipsum
613
+ <img src='http://localhost/msg/envelopes/1'>
614
+
615
+ </div>
616
+ </body>
617
+ </html>
618
+
619
+ setting envelope.sent_at to
620
+  (0.3ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.899070', "updated_at" = '2013-03-28 17:57:11.899070', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.921352' WHERE "msg_envelopes"."id" = 1
621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
622
+
623
+ Sent mail to bob@example.com (6ms)
624
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
625
+ From: bill <bill@example.com>
626
+ To: bob <bob@example.com>
627
+ Message-ID: 1
628
+ Subject: title
629
+ Mime-Version: 1.0
630
+ Content-Type: text/html;
631
+ charset=UTF-8
632
+ Content-Transfer-Encoding: 7bit
633
+
634
+ <!DOCTYPE html>
635
+ <html lang='en'>
636
+ <head>
637
+ <title>
638
+
639
+ </title>
640
+ </head>
641
+ <body>
642
+ <div id='content'>
643
+ lorem ipsum
644
+ <img src='http://localhost/msg/envelopes/1'>
645
+
646
+ </div>
647
+ </body>
648
+ </html>
649
+
650
+ setting envelope.sent_at to
651
+  (0.1ms) SAVEPOINT active_record_1
652
+  (0.1ms) UPDATE "msg_envelopes" SET "sent_at" = '2013-03-28 17:57:11.944709', "updated_at" = '2013-03-28 17:57:11.945577' WHERE "msg_envelopes"."id" = 1
653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
654
+  (1.1ms) rollback transaction
655
+  (0.0ms) begin transaction
656
+  (0.0ms) rollback transaction
657
+  (0.0ms) begin transaction
658
+  (0.0ms) rollback transaction
659
+  (0.0ms) begin transaction
660
+  (0.0ms) SAVEPOINT active_record_1
661
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
663
+  (0.0ms) SAVEPOINT active_record_1
664
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
666
+  (0.0ms) SAVEPOINT active_record_1
667
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
669
+  (0.0ms) SAVEPOINT active_record_1
670
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:11 UTC +00:00]]
671
+
672
+ Sent mail to bob@example.com (5ms)
673
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
674
+ From: bill <bill@example.com>
675
+ To: bob <bob@example.com>
676
+ Message-ID: 1
677
+ Subject: title
678
+ Mime-Version: 1.0
679
+ Content-Type: text/html;
680
+ charset=UTF-8
681
+ Content-Transfer-Encoding: 7bit
682
+
683
+ <!DOCTYPE html>
684
+ <html lang='en'>
685
+ <head>
686
+ <title>
687
+
688
+ </title>
689
+ </head>
690
+ <body>
691
+ <div id='content'>
692
+ lorem ipsum
693
+ <img src='http://localhost/msg/envelopes/1'>
694
+
695
+ </div>
696
+ </body>
697
+ </html>
698
+
699
+ setting envelope.sent_at to
700
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:11.960119', "updated_at" = '2013-03-28 17:57:11.960119', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:11.979921' WHERE "msg_envelopes"."id" = 1
701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
702
+
703
+ Sent mail to bob@example.com (5ms)
704
+ Date: Thu, 28 Mar 2013 17:57:11 +0000
705
+ From: bill <bill@example.com>
706
+ To: bob <bob@example.com>
707
+ Message-ID: 1
708
+ Subject: title
709
+ Mime-Version: 1.0
710
+ Content-Type: text/html;
711
+ charset=UTF-8
712
+ Content-Transfer-Encoding: 7bit
713
+
714
+ <!DOCTYPE html>
715
+ <html lang='en'>
716
+ <head>
717
+ <title>
718
+
719
+ </title>
720
+ </head>
721
+ <body>
722
+ <div id='content'>
723
+ lorem ipsum
724
+ <img src='http://localhost/msg/envelopes/1'>
725
+
726
+ </div>
727
+ </body>
728
+ </html>
729
+
730
+  (1.0ms) rollback transaction
731
+  (0.0ms) begin transaction
732
+  (0.0ms) SAVEPOINT active_record_1
733
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
735
+  (0.0ms) SAVEPOINT active_record_1
736
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
738
+  (0.0ms) SAVEPOINT active_record_1
739
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
741
+  (0.0ms) SAVEPOINT active_record_1
742
+ SQL (0.2ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
743
+
744
+ Sent mail to bob@example.com (6ms)
745
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
746
+ From: bill <bill@example.com>
747
+ To: bob <bob@example.com>
748
+ Message-ID: 1
749
+ Subject: title
750
+ Mime-Version: 1.0
751
+ Content-Type: text/html;
752
+ charset=UTF-8
753
+ Content-Transfer-Encoding: 7bit
754
+
755
+ <!DOCTYPE html>
756
+ <html lang='en'>
757
+ <head>
758
+ <title>
759
+
760
+ </title>
761
+ </head>
762
+ <body>
763
+ <div id='content'>
764
+ lorem ipsum
765
+ <img src='http://localhost/msg/envelopes/1'>
766
+
767
+ </div>
768
+ </body>
769
+ </html>
770
+
771
+ setting envelope.sent_at to
772
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:12.013345', "updated_at" = '2013-03-28 17:57:12.013345', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:12.059812' WHERE "msg_envelopes"."id" = 1
773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
774
+
775
+ Sent mail to bob@example.com (5ms)
776
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
777
+ From: bill <bill@example.com>
778
+ To: bob <bob@example.com>
779
+ Message-ID: 1
780
+ Subject: title
781
+ Mime-Version: 1.0
782
+ Content-Type: text/html;
783
+ charset=UTF-8
784
+ Content-Transfer-Encoding: 7bit
785
+
786
+ <!DOCTYPE html>
787
+ <html lang='en'>
788
+ <head>
789
+ <title>
790
+
791
+ </title>
792
+ </head>
793
+ <body>
794
+ <div id='content'>
795
+ lorem ipsum
796
+ <img src='http://localhost/msg/envelopes/1'>
797
+
798
+ </div>
799
+ </body>
800
+ </html>
801
+
802
+  (1.0ms) rollback transaction
803
+  (0.0ms) begin transaction
804
+  (0.0ms) SAVEPOINT active_record_1
805
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
807
+  (0.0ms) SAVEPOINT active_record_1
808
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
810
+  (0.0ms) SAVEPOINT active_record_1
811
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
813
+  (0.0ms) SAVEPOINT active_record_1
814
+ SQL (0.3ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
815
+
816
+ Sent mail to bob@example.com (6ms)
817
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
818
+ From: bill <bill@example.com>
819
+ To: bob <bob@example.com>
820
+ Message-ID: 1
821
+ Subject: title
822
+ Mime-Version: 1.0
823
+ Content-Type: text/html;
824
+ charset=UTF-8
825
+ Content-Transfer-Encoding: 7bit
826
+
827
+ <!DOCTYPE html>
828
+ <html lang='en'>
829
+ <head>
830
+ <title>
831
+
832
+ </title>
833
+ </head>
834
+ <body>
835
+ <div id='content'>
836
+ lorem ipsum
837
+ <img src='http://localhost/msg/envelopes/1'>
838
+
839
+ </div>
840
+ </body>
841
+ </html>
842
+
843
+ setting envelope.sent_at to
844
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:12.091964', "updated_at" = '2013-03-28 17:57:12.091964', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:12.113010' WHERE "msg_envelopes"."id" = 1
845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
846
+
847
+ Sent mail to bob@example.com (5ms)
848
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
849
+ From: bill <bill@example.com>
850
+ To: bob <bob@example.com>
851
+ Message-ID: 1
852
+ Subject: title
853
+ Mime-Version: 1.0
854
+ Content-Type: text/html;
855
+ charset=UTF-8
856
+ Content-Transfer-Encoding: 7bit
857
+
858
+ <!DOCTYPE html>
859
+ <html lang='en'>
860
+ <head>
861
+ <title>
862
+
863
+ </title>
864
+ </head>
865
+ <body>
866
+ <div id='content'>
867
+ lorem ipsum
868
+ <img src='http://localhost/msg/envelopes/1'>
869
+
870
+ </div>
871
+ </body>
872
+ </html>
873
+
874
+  (0.5ms) rollback transaction
875
+  (0.1ms) begin transaction
876
+  (0.0ms) SAVEPOINT active_record_1
877
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
879
+  (0.0ms) SAVEPOINT active_record_1
880
+ SQL (0.4ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
882
+  (0.0ms) SAVEPOINT active_record_1
883
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
885
+  (0.1ms) SAVEPOINT active_record_1
886
+ SQL (0.3ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
887
+
888
+ Sent mail to bob@example.com (6ms)
889
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
890
+ From: bill <bill@example.com>
891
+ To: bob <bob@example.com>
892
+ Message-ID: 1
893
+ Subject: title
894
+ Mime-Version: 1.0
895
+ Content-Type: text/html;
896
+ charset=UTF-8
897
+ Content-Transfer-Encoding: 7bit
898
+
899
+ <!DOCTYPE html>
900
+ <html lang='en'>
901
+ <head>
902
+ <title>
903
+
904
+ </title>
905
+ </head>
906
+ <body>
907
+ <div id='content'>
908
+ lorem ipsum
909
+ <img src='http://localhost/msg/envelopes/1'>
910
+
911
+ </div>
912
+ </body>
913
+ </html>
914
+
915
+ setting envelope.sent_at to
916
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:12.144070', "updated_at" = '2013-03-28 17:57:12.144070', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:12.164973' WHERE "msg_envelopes"."id" = 1
917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
918
+
919
+ Sent mail to bob@example.com (6ms)
920
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
921
+ From: bill <bill@example.com>
922
+ To: bob <bob@example.com>
923
+ Message-ID: 1
924
+ Subject: title
925
+ Mime-Version: 1.0
926
+ Content-Type: text/html;
927
+ charset=UTF-8
928
+ Content-Transfer-Encoding: 7bit
929
+
930
+ <!DOCTYPE html>
931
+ <html lang='en'>
932
+ <head>
933
+ <title>
934
+
935
+ </title>
936
+ </head>
937
+ <body>
938
+ <div id='content'>
939
+ lorem ipsum
940
+ <img src='http://localhost/msg/envelopes/1'>
941
+
942
+ </div>
943
+ </body>
944
+ </html>
945
+
946
+  (0.9ms) rollback transaction
947
+  (0.1ms) begin transaction
948
+  (0.0ms) SAVEPOINT active_record_1
949
+ SQL (0.3ms) INSERT INTO "users" ("email", "name") VALUES (?, ?) [["email", "bob@example.com"], ["name", "bob"]]
950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
951
+  (0.0ms) SAVEPOINT active_record_1
952
+ SQL (0.5ms) INSERT INTO "msg_messages" ("body", "created_at", "created_by_id", "description", "from_address", "from_name", "function", "saved", "subject", "transactional", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "lorem ipsum"], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["description", nil], ["from_address", "bill@example.com"], ["from_name", "bill"], ["function", nil], ["saved", false], ["subject", "title"], ["transactional", false], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
954
+  (0.0ms) SAVEPOINT active_record_1
955
+ SQL (0.2ms) INSERT INTO "msg_sendings" ("created_at", "created_by_id", "message_id", "sent_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["created_by_id", nil], ["message_id", 1], ["sent_at", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
957
+  (0.0ms) SAVEPOINT active_record_1
958
+ SQL (0.3ms) INSERT INTO "msg_envelopes" ("contents", "created_at", "email_id", "from_address", "opened_at", "receiver_id", "receiver_type", "sending_id", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["contents", nil], ["created_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00], ["email_id", nil], ["from_address", nil], ["opened_at", nil], ["receiver_id", 1], ["receiver_type", "User"], ["sending_id", 1], ["sent_at", nil], ["subject", nil], ["to_address", nil], ["updated_at", Thu, 28 Mar 2013 17:57:12 UTC +00:00]]
959
+
960
+ Sent mail to bob@example.com (5ms)
961
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
962
+ From: bill <bill@example.com>
963
+ To: bob <bob@example.com>
964
+ Message-ID: 1
965
+ Subject: title
966
+ Mime-Version: 1.0
967
+ Content-Type: text/html;
968
+ charset=UTF-8
969
+ Content-Transfer-Encoding: 7bit
970
+
971
+ <!DOCTYPE html>
972
+ <html lang='en'>
973
+ <head>
974
+ <title>
975
+
976
+ </title>
977
+ </head>
978
+ <body>
979
+ <div id='content'>
980
+ lorem ipsum
981
+ <img src='http://localhost/msg/envelopes/1'>
982
+
983
+ </div>
984
+ </body>
985
+ </html>
986
+
987
+ setting envelope.sent_at to
988
+  (0.2ms) UPDATE "msg_envelopes" SET "receiver_id" = 1, "receiver_type" = 'User', "sending_id" = 1, "created_at" = '2013-03-28 17:57:12.224210', "updated_at" = '2013-03-28 17:57:12.224210', "email_id" = 1, "subject" = 'title', "from_address" = 'bill <bill@example.com>', "to_address" = 'bob@example.com', "contents" = 'lorem ipsum', "sent_at" = '2013-03-28 17:57:12.245058' WHERE "msg_envelopes"."id" = 1
989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
990
+
991
+ Sent mail to bob@example.com (5ms)
992
+ Date: Thu, 28 Mar 2013 17:57:12 +0000
993
+ From: bill <bill@example.com>
994
+ To: bob <bob@example.com>
995
+ Message-ID: 1
996
+ Subject: title
997
+ Mime-Version: 1.0
998
+ Content-Type: text/html;
999
+ charset=UTF-8
1000
+ Content-Transfer-Encoding: 7bit
1001
+
1002
+ <!DOCTYPE html>
1003
+ <html lang='en'>
1004
+ <head>
1005
+ <title>
1006
+
1007
+ </title>
1008
+ </head>
1009
+ <body>
1010
+ <div id='content'>
1011
+ lorem ipsum
1012
+ <img src='http://localhost/msg/envelopes/1'>
1013
+
1014
+ </div>
1015
+ </body>
1016
+ </html>
1017
+
1018
+  (1.0ms) rollback transaction
1019
+  (0.0ms) begin transaction
1020
+  (0.0ms) rollback transaction
1021
+  (0.0ms) begin transaction
1022
+  (0.0ms) rollback transaction