omah 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/omah.rb +11 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b0eed64f7bc4d7b8509d0a14c2fb70aabcbf79a
|
4
|
+
data.tar.gz: ca652583c540eb51550a1b0817e5dec91a93123d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7bff761bdba46898e18031571752cd2ef730780d8cbc8a4851dfe6f43870e952f54732eac781b2ef36b3a323c3f435dd62ba702f4bf7f3f816d4b151c3edb71
|
7
|
+
data.tar.gz: ed23df7a2e7cb0167667c1893bab1e22a7ff01021f66a13e6476816a0175561c580e1b0ee90b5755dbe253d471c152fe003ac5efb7fc08702fc6ff37c49b4d41
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/omah.rb
CHANGED
@@ -78,6 +78,7 @@ class Omah
|
|
78
78
|
|
79
79
|
ordinal = a.any? ? '.' + a.length.to_s : ''
|
80
80
|
|
81
|
+
x_file = title + ordinal
|
81
82
|
txt_file = title + ordinal + '.txt'
|
82
83
|
html_file = title + ordinal + '.html'
|
83
84
|
kvx_file = title + ordinal + '.kvx'
|
@@ -85,7 +86,8 @@ class Omah
|
|
85
86
|
id = msg[:msg_id]
|
86
87
|
next if @dd.find_by_msg_id id
|
87
88
|
|
88
|
-
path = archive()
|
89
|
+
path = archive()
|
90
|
+
x_filepath = File.join(path, x_file)
|
89
91
|
txt_filepath = File.join(path, txt_file)
|
90
92
|
html_filepath = File.join(path, html_file)
|
91
93
|
kvx_filepath = File.join(path, kvx_file)
|
@@ -93,13 +95,18 @@ class Omah
|
|
93
95
|
|
94
96
|
FileUtils.mkdir_p path
|
95
97
|
|
98
|
+
if msg[:raw_source] then
|
99
|
+
File.write File.join(@filepath_user, x_filepath + '.eml'), \
|
100
|
+
msg[:raw_source]
|
101
|
+
end
|
102
|
+
|
96
103
|
header = %i(from to subject).inject({}) {|r,x| r.merge(x => msg[x]) }
|
97
|
-
Kvx.new(header).save File.join(@filepath_user,
|
104
|
+
Kvx.new(header).save File.join(@filepath_user, x_filepath + '.kvx')
|
98
105
|
|
99
|
-
File.write File.join(@filepath_user,
|
106
|
+
File.write File.join(@filepath_user, x_filepath + '.txt'), \
|
100
107
|
text_sanitiser(msg[:body_text].to_s)
|
101
108
|
|
102
|
-
File.write File.join(@filepath_user,
|
109
|
+
File.write File.join(@filepath_user, x_filepath + '.html'), \
|
103
110
|
html_sanitiser(msg[:body_html].to_s)
|
104
111
|
|
105
112
|
parts_path = []
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
N1BI64rCS5pjMp5bkuPQ9SW7LhtXi9JEvA5ZQ5Jc6WAXHnLkaZWdZIaKGPWTlKJz
|
32
32
|
eKzlH2B0/wHCRg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-07-
|
34
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex-daily
|
metadata.gz.sig
CHANGED
Binary file
|