html-griddler 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
data/lib/html-griddler/email.rb
CHANGED
@@ -28,7 +28,7 @@ class HtmlGriddler::Email
|
|
28
28
|
attr_reader :params
|
29
29
|
|
30
30
|
def config
|
31
|
-
|
31
|
+
HtmlGriddler.configuration
|
32
32
|
end
|
33
33
|
|
34
34
|
def extract_address(address, type)
|
@@ -70,7 +70,7 @@ class HtmlGriddler::Email
|
|
70
70
|
elsif params.key? :text
|
71
71
|
clean_html(params[:text])
|
72
72
|
else
|
73
|
-
raise
|
73
|
+
raise HtmlGriddler::Errors::EmailBodyNotFound
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
@@ -22,7 +22,7 @@ module EmailParser
|
|
22
22
|
|
23
23
|
def self.extract_reply_body(body)
|
24
24
|
if body
|
25
|
-
delimeter =
|
25
|
+
delimeter = HtmlGriddler.configuration.reply_delimiter
|
26
26
|
body.split(delimeter).first.
|
27
27
|
split(/^\s*[-]+\s*Original Message\s*[-]+\s*$/).first.
|
28
28
|
split(/^\s*--\s*$/).first.
|
data/lib/html-griddler/errors.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module HtmlGriddler
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
2
|
+
VERSION = "0.1.8"
|
3
|
+
end
|