fluent-plugin-mail 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/fluent-plugin-mail.gemspec +1 -1
- data/lib/fluent/plugin/out_mail.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce1428de5b8be38c7464d257acd907a57384eb7d
|
|
4
|
+
data.tar.gz: fed5e53b42c11b651559518f9680dde038b3c575
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd49b7942e142649291f7b33cdaff7e6d0bae71aa49d875b270ae3d0dd03c0b69d6769186ae5b66089a39c38476e90e60c0d4879c97929c681a8e5e340139cac
|
|
7
|
+
data.tar.gz: 3d4281ab00c49b97a49ec2000d8a3e7aecf3e83fed8a3163a331cc481b82458ddd3c95648696e248f0b9e919738793c57e19766d5d2e044c861467d589bb4dca
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/fluent-plugin-mail.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
|
11
11
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
12
12
|
gem.name = "fluent-plugin-mail"
|
|
13
13
|
gem.require_paths = ["lib"]
|
|
14
|
-
gem.version = '0.2.
|
|
14
|
+
gem.version = '0.2.5'
|
|
15
15
|
gem.license = "Apache-2.0"
|
|
16
16
|
|
|
17
17
|
gem.add_runtime_dependency "fluentd"
|
|
@@ -36,6 +36,8 @@ class Fluent::MailOutput < Fluent::Output
|
|
|
36
36
|
config_param :user, :string, :default => nil
|
|
37
37
|
desc "Password for SMTP Auth"
|
|
38
38
|
config_param :password, :string, :default => nil, :secret => true
|
|
39
|
+
desc "Type for SMTP Auth such as 'plain', 'login', and 'cram_md5'"
|
|
40
|
+
config_param :authtype, :string, :default => 'plain'
|
|
39
41
|
desc "MAIL FROM this value"
|
|
40
42
|
config_param :from, :string, :default => 'localhost@localdomain'
|
|
41
43
|
desc "Mail destination (To)"
|
|
@@ -212,10 +214,10 @@ class Fluent::MailOutput < Fluent::Output
|
|
|
212
214
|
smtp = Net::SMTP.new(@host, @port)
|
|
213
215
|
|
|
214
216
|
if @user and @password
|
|
215
|
-
smtp_auth_option = [@domain, @user, @password,
|
|
217
|
+
smtp_auth_option = [@domain, @user, @password, @authtype.to_sym]
|
|
216
218
|
smtp.enable_starttls if @enable_starttls_auto
|
|
217
219
|
smtp.enable_tls if @enable_tls
|
|
218
|
-
smtp.start(@domain
|
|
220
|
+
smtp.start(@domain, @user, @password, @authtype.to_sym)
|
|
219
221
|
else
|
|
220
222
|
smtp.start
|
|
221
223
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-mail
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuichi UEMURA
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2017-11-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fluentd
|
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
95
95
|
version: '0'
|
|
96
96
|
requirements: []
|
|
97
97
|
rubyforge_project:
|
|
98
|
-
rubygems_version: 2.
|
|
98
|
+
rubygems_version: 2.6.13
|
|
99
99
|
signing_key:
|
|
100
100
|
specification_version: 4
|
|
101
101
|
summary: output plugin for Mail
|