replyr 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/replyr/reply_email.rb +1 -1
- data/lib/replyr/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +294 -0
- data/test/replyr/emails/reply_plain_signature.eml +14 -0
- data/test/replyr/reply_email_test.rb +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc30e8d36b31046ac18c5ec4447a1ac051a512b2
|
4
|
+
data.tar.gz: ed95db5d8aa64a306fdaad7818dd176ed3393402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab02078a8475a15365ca3add436a3681ce988903eb718eb9eb9059ea424eae52d3a8071ac6b978cb161aa5397c507e09b421a18c0b85cade8c351f6d00804c46
|
7
|
+
data.tar.gz: 49ef7f5734651590f4c6692bd9a046d2f85c97307006584454426c59127869b0ac64ab8c9b76ff4a0911ba59441a0f9e9ce0a25ce6988010837da633c1d4c078
|
data/CHANGELOG.md
CHANGED
data/lib/replyr/reply_email.rb
CHANGED
@@ -38,7 +38,7 @@ module Replyr
|
|
38
38
|
def process
|
39
39
|
if is_reply_email?
|
40
40
|
if reply_address = ReplyAddress.new_from_address(to)
|
41
|
-
reply_address.model.handle_reply(reply_address.user,
|
41
|
+
reply_address.model.handle_reply(reply_address.user, stripped_body, files)
|
42
42
|
true
|
43
43
|
else
|
44
44
|
false
|
data/lib/replyr/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -20705,3 +20705,297 @@ Reply email address invalid.
|
|
20705
20705
|
Reply email address invalid.
|
20706
20706
|
[1m[35m (0.1ms)[0m begin transaction
|
20707
20707
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
20708
|
+
Connecting to database specified by database.yml
|
20709
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE IF EXISTS users[0m
|
20710
|
+
[1m[35m (1.2ms)[0m CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
|
20711
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE IF EXISTS comments[0m
|
20712
|
+
[1m[35m (0.9ms)[0m CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
|
20713
|
+
[1m[36m (1.2ms)[0m [1mDROP TABLE IF EXISTS users[0m
|
20714
|
+
[1m[35m (0.9ms)[0m CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
|
20715
|
+
[1m[36m (1.1ms)[0m [1mDROP TABLE IF EXISTS comments[0m
|
20716
|
+
[1m[35m (0.9ms)[0m CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
|
20717
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20718
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20719
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20721
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20722
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20723
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20724
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20725
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20726
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments"
|
20727
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20728
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", "Ein neuer Kommentar"], ["user_id", nil]]
|
20729
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20730
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments"
|
20731
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20732
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20733
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20734
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20735
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20736
|
+
[1m[35m (1.2ms)[0m commit transaction
|
20737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20738
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", 3]]
|
20739
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20740
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20741
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20742
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20743
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20744
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20745
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20746
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20747
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", 5]]
|
20748
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20749
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20750
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20751
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20753
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20754
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20755
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20756
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20757
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20758
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20759
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20760
|
+
[1m[35m (1.1ms)[0m commit transaction
|
20761
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20762
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20763
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20764
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20765
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20766
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20767
|
+
Reply email address invalid.
|
20768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20769
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20770
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
20771
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20772
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20773
|
+
[1m[35m (1.9ms)[0m commit transaction
|
20774
|
+
[1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1[0m [["id", "8"]]
|
20775
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "10"]]
|
20776
|
+
[1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
20777
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
20778
|
+
Reply email address invalid.
|
20779
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20780
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20781
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20782
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20783
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20784
|
+
[1m[35m (0.7ms)[0m commit transaction
|
20785
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20786
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20787
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
20788
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20789
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20790
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20792
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20793
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20794
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20795
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20796
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20797
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20798
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20799
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20800
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20801
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20802
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20803
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20804
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20805
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20806
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20807
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20808
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20809
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20810
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20811
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20812
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20813
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20814
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20816
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20817
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
20818
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20819
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20820
|
+
[1m[35m (0.6ms)[0m commit transaction
|
20821
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20822
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20823
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
20824
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20825
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20826
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20827
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20828
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20829
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20830
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20831
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20832
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20833
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20834
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20835
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20836
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20837
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20838
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20840
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20841
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20842
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20843
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20844
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20845
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" [0m
|
20846
|
+
[1m[35mComment Load (0.1ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "19"]]
|
20847
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "21"]]
|
20848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20849
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", "Das ist wunderschön"], ["user_id", nil]]
|
20850
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20851
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" [0m
|
20852
|
+
Reply email address invalid.
|
20853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20854
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
20855
|
+
Connecting to database specified by database.yml
|
20856
|
+
[1m[36m (3.4ms)[0m [1mDROP TABLE IF EXISTS users[0m
|
20857
|
+
[1m[35m (1.1ms)[0m CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
|
20858
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE IF EXISTS comments[0m
|
20859
|
+
[1m[35m (0.7ms)[0m CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
|
20860
|
+
[1m[36m (1.3ms)[0m [1mDROP TABLE IF EXISTS users[0m
|
20861
|
+
[1m[35m (1.4ms)[0m CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
|
20862
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE IF EXISTS comments[0m
|
20863
|
+
[1m[35m (1.1ms)[0m CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
|
20864
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20865
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20866
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
20867
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20868
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20869
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20870
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20871
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20872
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20873
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments"
|
20874
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20875
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", "Ein neuer Kommentar"], ["user_id", nil]]
|
20876
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20877
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments"
|
20878
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20879
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20880
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20881
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20882
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20883
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20884
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20885
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", 3]]
|
20886
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20887
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20888
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20889
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20890
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20891
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20892
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20893
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20894
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", 5]]
|
20895
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20896
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20897
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20898
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20899
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20900
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20901
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20902
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20903
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20904
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20905
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20906
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20907
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20908
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20909
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20910
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20911
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20912
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20913
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20914
|
+
Reply email address invalid.
|
20915
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20916
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20917
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
20918
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20919
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20920
|
+
[1m[35m (0.6ms)[0m commit transaction
|
20921
|
+
[1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1[0m [["id", "8"]]
|
20922
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "10"]]
|
20923
|
+
[1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
20924
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
20925
|
+
Reply email address invalid.
|
20926
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20927
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20928
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20929
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20930
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20931
|
+
[1m[35m (0.8ms)[0m commit transaction
|
20932
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20933
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20934
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
20935
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20936
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20937
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20938
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20939
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20940
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
20941
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20942
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20943
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20944
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20945
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20946
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20947
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20948
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20949
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20950
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20951
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20952
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20953
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20954
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20955
|
+
[1m[35m (0.7ms)[0m commit transaction
|
20956
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20957
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20958
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20959
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20960
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20961
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20962
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20963
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
|
20964
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
20965
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20966
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20967
|
+
[1m[35m (0.8ms)[0m commit transaction
|
20968
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20969
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20970
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20971
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20972
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", nil], ["user_id", nil]]
|
20973
|
+
[1m[35m (0.6ms)[0m commit transaction
|
20974
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20975
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20976
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20977
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20978
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20979
|
+
[1m[35m (0.9ms)[0m commit transaction
|
20980
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20981
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20982
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20983
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20984
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20985
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20986
|
+
Reply email address invalid.
|
20987
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
20988
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
|
20989
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
20990
|
+
[1m[35m (0.0ms)[0m begin transaction
|
20991
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", nil]]
|
20992
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20993
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" [0m
|
20994
|
+
[1m[35mComment Load (0.1ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "19"]]
|
20995
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "21"]]
|
20996
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20997
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("body", "user_id") VALUES (?, ?)[0m [["body", "Das ist wunderschön"], ["user_id", nil]]
|
20998
|
+
[1m[35m (1.0ms)[0m commit transaction
|
20999
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" [0m
|
21000
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21001
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Content-Type: text/plain;
|
2
|
+
charset=iso-8859-1
|
3
|
+
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
|
4
|
+
Subject: Re: Aufgabe: Neues Todo
|
5
|
+
From: =?iso-8859-1?Q?Philipp_W=FCllner?= <wursttheke@me.com>
|
6
|
+
Date: Wed, 19 Mar 2014 07:49:15 +0100
|
7
|
+
Content-Transfer-Encoding: quoted-printable
|
8
|
+
Message-Id: <1EACD37B-1E55-482A-8EAA-E0F06E438B4C@me.com>
|
9
|
+
To: reply-t-1-b36712af6a5e7012-73-b2022a46a52075a9@example.com
|
10
|
+
|
11
|
+
Das ist wundersch=F6n=
|
12
|
+
|
13
|
+
--
|
14
|
+
Signature
|
@@ -17,6 +17,14 @@ describe Replyr::ReplyEmail do
|
|
17
17
|
assert_equal "wursttheke@me.com", reply_email.from
|
18
18
|
assert_equal "Das ist wunderschön", reply_email.stripped_body
|
19
19
|
end
|
20
|
+
|
21
|
+
it 'removes signature from message object' do
|
22
|
+
mail = Mail.read('test/replyr/emails/reply_plain_signature.eml')
|
23
|
+
reply_email = Replyr::ReplyEmail.new(mail)
|
24
|
+
assert_equal "wursttheke@me.com", reply_email.from
|
25
|
+
assert_equal "Das ist wunderschön", reply_email.stripped_body
|
26
|
+
end
|
27
|
+
|
20
28
|
end
|
21
29
|
|
22
30
|
describe '#process' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: replyr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philipp Wüllner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mailman
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- test/email_reply_parser/emails/new_content/email_1_2.txt
|
207
207
|
- test/replyr/emails/reply_multipart.eml
|
208
208
|
- test/replyr/emails/reply_plain.eml
|
209
|
+
- test/replyr/emails/reply_plain_signature.eml
|
209
210
|
- test/replyr/emails/reply_with_attachment.eml
|
210
211
|
- test/replyr/handle_reply_test.rb
|
211
212
|
- test/replyr/reply_address_test.rb
|