mailarchiva 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/mailarchiva/message.rb +5 -3
- data/lib/mailarchiva/soap_client.rb +0 -1
- data/mailarchiva.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afc68c1baff8bb72fb5352105c5523b4e94a452d
|
4
|
+
data.tar.gz: f4fee65055132094cb78f10fa018ca99b84f1cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f4d1a4d314e44b5e377edd841e1fbfa4618dddb0b49aadbd51f3a075e55c4787fa83a56fc43c87ca15623c57303ddf43a605c75321f994e5529b791d3bd6f4
|
7
|
+
data.tar.gz: 8d5aa57e07bcbc0386cdaac1a7af95233a13ca9a543348aba795428babc150b47dbffdebb22f16643aea5b66827ad3f9300ba70ca86373c46ab00dd3174b6267
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/lib/mailarchiva/message.rb
CHANGED
@@ -41,10 +41,12 @@ module Mailarchiva
|
|
41
41
|
undisclosed_recipients? ? mail_message.header.fields.select{|field| field.name =~ /received/i && field.value =~ /\sfor\s<(.*)>/i }.collect{|field| field.value.match(/\sfor\s<(.*)>/).captures.first}.uniq.join : @to.match(/<(.*)>/).captures.first
|
42
42
|
end
|
43
43
|
|
44
|
+
def raw_message
|
45
|
+
@raw_message ||= @client.get_message(@blob_id, @volume_id)
|
46
|
+
end
|
47
|
+
|
44
48
|
def mail_message
|
45
|
-
@mail_message
|
46
|
-
@client.get_message(@blob_id, @volume_id)
|
47
|
-
end
|
49
|
+
@mail_message ||= Mail.new(raw_message)
|
48
50
|
end
|
49
51
|
|
50
52
|
def undisclosed_recipients?
|
@@ -40,7 +40,6 @@ module Mailarchiva
|
|
40
40
|
blob_response = soap_client.call(:get_blob, message: { 'blobID' =>{ 'blobID' => blob_id, 'volumeID' => volume_id } })
|
41
41
|
encoded_message = blob_response.body[:get_blob_response][:return][:blob]
|
42
42
|
decoded_message = Base64.decode64(encoded_message)
|
43
|
-
Mail.new(decoded_message)
|
44
43
|
end
|
45
44
|
|
46
45
|
def wsdl
|
data/mailarchiva.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: mailarchiva 0.0.
|
5
|
+
# stub: mailarchiva 0.0.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "mailarchiva"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.9"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|