classic_omah 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +1 -2
- data.tar.gz.sig +0 -0
- data/lib/classic_omah.rb +24 -7
- metadata +36 -32
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 343c022ccdf398e3a1eb42ad3508e8c409e5a2f57fac88125953806feabca058
|
4
|
+
data.tar.gz: 6830ab5e859a70d251679d5330a414f5031a9ef18da7e4d3b6daf675501ed65e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68755e14004dc44fada37e14e1a3124cbed2104e50093724e309eec644e4082b137b5ea0e779642f6d08bd6cffc2172ec89c2c6546d1dfc57e607c4bae5c1068
|
7
|
+
data.tar.gz: b02eb98c137fd552ea3c47c49ec4b029af7d24b20864a97a9f9fc4e6f00b7f551a8d41f40ae0cedf4bf8c4e54d993e352fbee784be3a47b96f5ef043a0e7e3fe
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
L|}a���}��>�������J�u�S@=Z�\�
|
1
|
+
�K�<C���>� *��٘������xZ�IN�:X�ց*��R�������g���:�8���*T*����rd�67^-��;�"��ʭ�U���o��i��9����p���`�bN��/#4���t�=7 ������)��'�n�S�px�ޮ��B��08k&J[�8��f�*����p*���l�v�����&L��q�L��{
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/classic_omah.rb
CHANGED
@@ -11,9 +11,12 @@ end
|
|
11
11
|
|
12
12
|
class ClassicOmah < Omah
|
13
13
|
|
14
|
-
def initialize(user: 'user', filepath: '.', mail: {}, port: 110,
|
15
|
-
|
14
|
+
def initialize(user: 'user', filepath: '.', mail: {}, port: 110,
|
15
|
+
email_address: nil, options: {xslt: 'listing.xsl'},
|
16
|
+
plugins: [], debug: false)
|
16
17
|
|
18
|
+
puts 'inside ClassicOmah::initialize' if debug
|
19
|
+
|
17
20
|
@mail = { address: '',
|
18
21
|
port: port,
|
19
22
|
user_name: '',
|
@@ -27,26 +30,40 @@ class ClassicOmah < Omah
|
|
27
30
|
@variables = {user_name: @mail[:user_name] , \
|
28
31
|
address: @mail[:address], email_address: email_address}
|
29
32
|
|
30
|
-
super(user: user, filepath: filepath, plugins: plugins,
|
33
|
+
super(user: user, filepath: filepath, plugins: plugins,
|
34
|
+
options: options, debug: debug)
|
35
|
+
|
36
|
+
puts 'initialize ClassicOmah complete' if @debug
|
31
37
|
|
32
38
|
|
33
39
|
end
|
34
40
|
|
35
41
|
def fetch_email()
|
36
42
|
|
43
|
+
puts 'inside fetch_email' if @debug
|
37
44
|
mail = @mail
|
45
|
+
puts 'mail: ' + mail.inspect if @debug
|
46
|
+
|
38
47
|
Mail.defaults { retriever_method(:pop3, mail) }
|
39
|
-
|
48
|
+
|
49
|
+
puts 'before Mail.all' if @debug
|
40
50
|
email = Mail.all
|
51
|
+
puts 'after Mail.all' if @debug
|
41
52
|
|
42
53
|
return 'no new messages' unless email.any?
|
54
|
+
|
55
|
+
puts 'before email.map' if @debug
|
43
56
|
|
44
57
|
messages = email.map.with_index.inject([]) do |r, x|
|
45
58
|
|
59
|
+
|
60
|
+
puts 'x: ' + x.inspect if @debug
|
61
|
+
|
46
62
|
msg, i = x
|
47
63
|
|
64
|
+
|
48
65
|
begin
|
49
|
-
r << {
|
66
|
+
r << [x, {
|
50
67
|
msg_id: msg.message_id,
|
51
68
|
from: msg.from.is_a?(Array) ? msg.from.join(', ') : msg.from,
|
52
69
|
to: msg.to.is_a?(Array) ? msg.to.join(', ') : msg.to,
|
@@ -56,7 +73,7 @@ class ClassicOmah < Omah
|
|
56
73
|
body_html: (msg.html_part ? msg.html_part.body.decoded : msg.body),
|
57
74
|
attachments: msg.attachments.map {|x| [x.filename, x.body.decoded] },
|
58
75
|
raw_source: msg.raw_source
|
59
|
-
}
|
76
|
+
}]
|
60
77
|
rescue
|
61
78
|
puts 'warning: ' + ($!).inspect
|
62
79
|
end
|
@@ -72,4 +89,4 @@ class ClassicOmah < Omah
|
|
72
89
|
|
73
90
|
messages.length.to_s + " new messages"
|
74
91
|
end
|
75
|
-
end
|
92
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: classic_omah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwOTI2MTg0NDI4WhcN
|
15
|
+
MTkwOTI2MTg0NDI4WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDMky+9
|
17
|
+
BpYxO4jKke6nO082dagJsNfilZXu5RF6KziKFPK/vuhY6hO8Jnq8dXVuapmxOtY9
|
18
|
+
8cibMrExiY6pqHpD+CGEHnL2KQtoCzhhefJPgkKk5rDqoJu7uRbKpptJWUqzbEX2
|
19
|
+
UPc4r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VeQWdg8Dda+qmU4dQjgdrD8jq8IIZRb+A1G
|
34
|
+
bRkVAU9iKWCOVT/IW20c5lAyG36hcJwrzmJwFZIsx8NVjpg+4UlsCnPzDrVhdH0U
|
35
|
+
arfozlrPilEhqUQPNQQZuyD2SViOE/UW+pAOMc6+HWbdnAPX/Emz5JDPZhJCDACT
|
36
|
+
kYDXZbU2L2L9+YOvQTsQ1WzB
|
33
37
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
38
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
35
39
|
dependencies:
|
36
40
|
- !ruby/object:Gem::Dependency
|
37
41
|
name: omah
|
@@ -39,42 +43,42 @@ dependencies:
|
|
39
43
|
requirements:
|
40
44
|
- - "~>"
|
41
45
|
- !ruby/object:Gem::Version
|
42
|
-
version: '0.
|
46
|
+
version: '0.9'
|
43
47
|
- - ">="
|
44
48
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
49
|
+
version: 0.9.1
|
46
50
|
type: :runtime
|
47
51
|
prerelease: false
|
48
52
|
version_requirements: !ruby/object:Gem::Requirement
|
49
53
|
requirements:
|
50
54
|
- - "~>"
|
51
55
|
- !ruby/object:Gem::Version
|
52
|
-
version: '0.
|
56
|
+
version: '0.9'
|
53
57
|
- - ">="
|
54
58
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
59
|
+
version: 0.9.1
|
56
60
|
- !ruby/object:Gem::Dependency
|
57
61
|
name: mail
|
58
62
|
requirement: !ruby/object:Gem::Requirement
|
59
63
|
requirements:
|
60
64
|
- - "~>"
|
61
65
|
- !ruby/object:Gem::Version
|
62
|
-
version: '2.
|
66
|
+
version: '2.7'
|
63
67
|
- - ">="
|
64
68
|
- !ruby/object:Gem::Version
|
65
|
-
version: 2.
|
69
|
+
version: 2.7.0
|
66
70
|
type: :runtime
|
67
71
|
prerelease: false
|
68
72
|
version_requirements: !ruby/object:Gem::Requirement
|
69
73
|
requirements:
|
70
74
|
- - "~>"
|
71
75
|
- !ruby/object:Gem::Version
|
72
|
-
version: '2.
|
76
|
+
version: '2.7'
|
73
77
|
- - ">="
|
74
78
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
79
|
+
version: 2.7.0
|
76
80
|
description:
|
77
|
-
email: james@
|
81
|
+
email: james@jamesrobertson.eu
|
78
82
|
executables: []
|
79
83
|
extensions: []
|
80
84
|
extra_rdoc_files: []
|
@@ -100,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
104
|
version: '0'
|
101
105
|
requirements: []
|
102
106
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.7.6
|
104
108
|
signing_key:
|
105
109
|
specification_version: 4
|
106
110
|
summary: Mail gem + Omah (Offline Mail Helper) gem
|
metadata.gz.sig
CHANGED
Binary file
|