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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4ab32f91ad6dd35165e78d5f3dbfbd0302fb25f
4
- data.tar.gz: afa297e123932876c743ffae28fb1b4cc9e57ab9
3
+ metadata.gz: afc68c1baff8bb72fb5352105c5523b4e94a452d
4
+ data.tar.gz: f4fee65055132094cb78f10fa018ca99b84f1cde
5
5
  SHA512:
6
- metadata.gz: 9dd942a89824d65f87ec4b79953d3eec79d03dc9c09d0d40dc5a61ad2adbc79756821f9e580ad44d4fd8d9192e1dd18de73e6534d9ddcf13912bb62adaddeabe
7
- data.tar.gz: c9e3d4263d3fdd0c096d2c44b5d2813b9cf3596835f3edf576774dfce683707a0f371e499ed843b14e51ee5b840ab3a66f40f8f7049f0bc4413f40e214b15a56
6
+ metadata.gz: a1f4d1a4d314e44b5e377edd841e1fbfa4618dddb0b49aadbd51f3a075e55c4787fa83a56fc43c87ca15623c57303ddf43a605c75321f994e5529b791d3bd6f4
7
+ data.tar.gz: 8d5aa57e07bcbc0386cdaac1a7af95233a13ca9a543348aba795428babc150b47dbffdebb22f16643aea5b66827ad3f9300ba70ca86373c46ab00dd3174b6267
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -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 = begin
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
@@ -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.8 ruby lib
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.8"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailarchiva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David John