mailarchiva 0.0.12 → 1.0.0
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 +2 -2
- data/mailarchiva.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f1713727ef58449b3942faeb09527721fd65e9f
|
4
|
+
data.tar.gz: 486bd1d8b6a5cb2af3e4a80d3d0c4120b3bb65cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197333831456c17db58ef0a9ce55cc1a7aa31d1278a70e39bb45e23b5a5a2d3983238f099e51e31d230fe71829f9e082f19ab031f8c8ec46a2d659ec2a8a310e
|
7
|
+
data.tar.gz: ba3283bac0d2e957ffe2cc6b1fcae62d07bc7e356b6ad021f3b85c02817f63b069feb0b6132d3ed3c9f306c25accf56c3f9664e689f8e0cbfa0193e2045690d9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
1.0.0
|
data/lib/mailarchiva/message.rb
CHANGED
@@ -39,9 +39,9 @@ module Mailarchiva
|
|
39
39
|
|
40
40
|
def to
|
41
41
|
if undisclosed_recipients?
|
42
|
-
mail_message.header.fields.select{|field| field.name =~ /received/i && field.value =~ /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/i }.collect{|field| field.value.match( /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/).captures.first}.uniq.
|
42
|
+
mail_message.header.fields.select{|field| field.name =~ /received/i && field.value =~ /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/i }.collect{|field| field.value.match( /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/).captures.first}.uniq.compact
|
43
43
|
elsif raw_to
|
44
|
-
raw_to.match(/<(.*)>/).captures.first
|
44
|
+
[raw_to.match(/<(.*)>/).captures.first].compact
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
data/mailarchiva.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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 1.0.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "mailarchiva"
|
9
|
-
s.version = "0.0
|
9
|
+
s.version = "1.0.0"
|
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"]
|
13
13
|
s.authors = ["David John"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-08-24"
|
15
15
|
s.description = "A gem to access the Mailarchiva API"
|
16
16
|
s.email = "dj@dbjohn.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailarchiva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David John
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|